diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.json b/descriptions-next/api.github.com/api.github.com.2022-11-28.json index f322ee590..063ea4e03 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.json @@ -29229,313 +29229,6 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { - "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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" - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } - } - ], - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - } - }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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, - "category": "teams", - "subcategory": "discussions" - } - }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - } - }, "/orgs/{org}/teams/{team_slug}/invitations": { "get": { "summary": "List pending team invitations", @@ -65341,304 +65034,6 @@ "deprecated": true } }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, "/teams/{team_id}/invitations": { "get": { "summary": "List pending team invitations (Legacy)", @@ -121745,139 +121140,6 @@ "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": { - "anyOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/simple-user" - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "$ref": "#/components/schemas/reaction-rollup" - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, "team-membership": { "title": "Team Membership", "description": "Team Membership", @@ -298853,158 +298115,6 @@ } } }, - "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", - "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", - "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", - "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-membership-response-if-user-is-a-team-maintainer": { "summary": "Response if user is a team maintainer", "value": { @@ -320040,15 +319150,6 @@ "type": "string" } }, - "discussion-number": { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, "security-product": { "name": "security_product", "in": "path", diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml index 66da12ce3..1ebfd4466 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml @@ -21111,231 +21111,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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" - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - 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 - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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 - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/invitations": get: summary: List pending team invitations @@ -47378,235 +47153,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -88329,105 +87875,6 @@ components: - 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: - anyOf: - - type: 'null' - - "$ref": "#/components/schemas/simple-user" - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted to team - members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: - "$ref": "#/components/schemas/reaction-rollup" - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url team-membership: title: Team Membership description: Team Membership @@ -221027,144 +220474,6 @@ components: 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - 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-membership-response-if-user-is-a-team-maintainer: summary: Response if user is a team maintainer value: @@ -239354,13 +238663,6 @@ components: required: true schema: type: string - discussion-number: - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer security-product: name: security_product in: path diff --git a/descriptions-next/api.github.com/api.github.com.json b/descriptions-next/api.github.com/api.github.com.json index f322ee590..063ea4e03 100644 --- a/descriptions-next/api.github.com/api.github.com.json +++ b/descriptions-next/api.github.com/api.github.com.json @@ -29229,313 +29229,6 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { - "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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" - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } - } - ], - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - } - }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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, - "category": "teams", - "subcategory": "discussions" - } - }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - } - }, "/orgs/{org}/teams/{team_slug}/invitations": { "get": { "summary": "List pending team invitations", @@ -65341,304 +65034,6 @@ "deprecated": true } }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, "/teams/{team_id}/invitations": { "get": { "summary": "List pending team invitations (Legacy)", @@ -121745,139 +121140,6 @@ "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": { - "anyOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/simple-user" - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "$ref": "#/components/schemas/reaction-rollup" - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, "team-membership": { "title": "Team Membership", "description": "Team Membership", @@ -298853,158 +298115,6 @@ } } }, - "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", - "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", - "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", - "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-membership-response-if-user-is-a-team-maintainer": { "summary": "Response if user is a team maintainer", "value": { @@ -320040,15 +319150,6 @@ "type": "string" } }, - "discussion-number": { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, "security-product": { "name": "security_product", "in": "path", diff --git a/descriptions-next/api.github.com/api.github.com.yaml b/descriptions-next/api.github.com/api.github.com.yaml index 66da12ce3..1ebfd4466 100644 --- a/descriptions-next/api.github.com/api.github.com.yaml +++ b/descriptions-next/api.github.com/api.github.com.yaml @@ -21111,231 +21111,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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" - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - 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 - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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 - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/invitations": get: summary: List pending team invitations @@ -47378,235 +47153,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -88329,105 +87875,6 @@ components: - 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: - anyOf: - - type: 'null' - - "$ref": "#/components/schemas/simple-user" - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted to team - members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: - "$ref": "#/components/schemas/reaction-rollup" - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url team-membership: title: Team Membership description: Team Membership @@ -221027,144 +220474,6 @@ components: 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - 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-membership-response-if-user-is-a-team-maintainer: summary: Response if user is a team maintainer value: @@ -239354,13 +238663,6 @@ components: required: true schema: type: string - discussion-number: - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer security-product: name: security_product in: path diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index e852876e8..407ba2157 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -229707,17 +229707,17 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { + "/orgs/{org}/teams/{team_slug}/invitations": { "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + "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]\n> 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-discussions-in-org", + "operationId": "teams/list-pending-invitations-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#list-discussions" + "url": "https://docs.github.com/rest/teams/members#list-pending-team-invitations" }, "parameters": [ { @@ -229739,17 +229739,376 @@ } }, { - "name": "direction", - "description": "The direction to sort the results by.", + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Organization Invitation", + "description": "Organization Invitation", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "login": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "role": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "failed_at": { + "type": [ + "string", + "null" + ] + }, + "failed_reason": { + "type": [ + "string", + "null" + ] + }, + "inviter": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "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" + ] + }, + "team_count": { + "type": "integer" + }, + "node_id": { + "type": "string", + "examples": [ + "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + ] + }, + "invitation_teams_url": { + "type": "string", + "examples": [ + "\"https://api.github.com/organizations/16/invitations/1/teams\"" + ] + }, + "invitation_source": { + "type": "string", + "examples": [ + "\"member\"" + ] + } + }, + "required": [ + "id", + "login", + "email", + "role", + "created_at", + "inviter", + "team_count", + "invitation_teams_url", + "node_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 1, + "login": "monalisa", + "node_id": "MDQ6VXNlcjE=", + "email": "octocat@github.com", + "role": "direct_member", + "created_at": "2016-11-30T06:46:10-08:00", + "failed_at": "", + "failed_reason": "", + "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_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", + "invitation_source": "member" + } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" + } + } + }, + "/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/teams/members#list-team-members" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role", + "description": "Filters members returned by their role in the team.", "in": "query", "required": false, "schema": { "type": "string", "enum": [ - "asc", - "desc" + "member", + "maintainer", + "all" ], - "default": "desc" + "default": "all" } }, { @@ -229769,15 +230128,6 @@ "type": "integer", "default": 1 } - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } } ], "responses": { @@ -229788,346 +230138,170 @@ "schema": { "type": "array", "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Simple User", + "description": "A GitHub user.", "type": "object", "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } + "name": { + "type": [ + "string", + "null" ] }, - "body": { - "description": "The main text of the discussion.", + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { "type": "string", "examples": [ - "Please suggest improvements to our workflow in comments." + "octocat" ] }, - "body_html": { - "type": "string", + "id": { + "type": "integer", + "format": "int64", "examples": [ - "

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

" + 1 ] }, - "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.", + "node_id": { "type": "string", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "MDQ6VXNlcjE=" ] }, - "created_at": { + "avatar_url": { "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://github.com/images/error/octocat_happy.gif" ] }, - "last_edited_at": { + "gravatar_id": { "type": [ "string", "null" ], - "format": "date-time" + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] }, "html_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" + "https://github.com/octocat" ] }, - "node_id": { + "followers_url": { "type": "string", + "format": "uri", "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + "https://api.github.com/users/octocat/followers" ] }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", + "following_url": { + "type": "string", "examples": [ - 42 + "https://api.github.com/users/octocat/following{/other_user}" ] }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", + "gists_url": { + "type": "string", "examples": [ - true + "https://api.github.com/users/octocat/gists{/gist_id}" ] }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", + "starred_url": { + "type": "string", "examples": [ - true + "https://api.github.com/users/octocat/starred{/owner}{/repo}" ] }, - "team_url": { + "subscriptions_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027" + "https://api.github.com/users/octocat/subscriptions" ] }, - "title": { - "description": "The title of the discussion.", + "organizations_url": { "type": "string", + "format": "uri", "examples": [ - "How can we improve our workflow?" + "https://api.github.com/users/octocat/orgs" ] }, - "updated_at": { + "repos_url": { "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/users/octocat/repos" ] }, - "url": { + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "https://api.github.com/users/octocat/received_events" ] }, - "reactions": { - "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" + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", - "updated_at", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", "url" ] } @@ -230136,52 +230310,24 @@ "default": { "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", - "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 - } + "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 } ] } @@ -230202,19 +230348,126 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" + } + } + }, + "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/teams/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/teams/members#get-team-membership-for-a-user" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "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", + "type": "string", + "examples": [ + "member" + ] + }, + "state": { + "description": "The state of the user's membership in the team.", + "type": "string", + "enum": [ + "active", + "pending" + ] + } + }, + "required": [ + "role", + "state", + "url" + ] + }, + "examples": { + "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" + } + } + } + } + } + }, + "404": { + "description": "if user has no team membership" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" } }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "put": { + "summary": "Add or update team membership for a user", + "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.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]\n> 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/create-discussion-in-org", + "operationId": "teams/add-or-update-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion" + "url": "https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user" }, "parameters": [ { @@ -230234,39 +230487,40 @@ "schema": { "type": "string" } + }, + { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { - "title": { - "type": "string", - "description": "The discussion post's title." - }, - "body": { + "role": { "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 + "description": "The role that this user should have in the team.", + "enum": [ + "member", + "maintainer" + ], + "default": "member" } - }, - "required": [ - "title", - "body" - ] + } }, "examples": { "default": { + "summary": "Add or update team membership for an organization member", "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "role": "maintainer" } } } @@ -230274,430 +230528,83 @@ } }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Team Membership", + "description": "Team Membership", "type": "object", "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { + "url": { "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] + "format": "uri" }, - "last_edited_at": { - "type": [ - "string", - "null" + "role": { + "description": "The role of the user in the team.", + "enum": [ + "member", + "maintainer" ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { + "default": "member", "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "member" ] }, - "url": { + "state": { + "description": "The state of the user's membership in the team.", "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" + "enum": [ + "active", + "pending" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", + "role", + "state", "url" ] }, "examples": { - "default": { + "response-if-users-membership-with-team-is-now-pending": { + "summary": "Response if user's membership with team is now pending", "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", - "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 - } + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "pending" } } } } } + }, + "403": { + "description": "Forbidden if team synchronization is set up" + }, + "422": { + "description": "Unprocessable Entity if you attempt to add an organization to a team" } }, "x-github": { - "triggersNotification": true, "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" } - } - }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + }, + "delete": { + "summary": "Remove team membership for a user", + "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> 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/get-discussion-in-org", + "operationId": "teams/remove-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#get-a-discussion" + "url": "https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user" }, "parameters": [ { @@ -230719,437 +230626,42 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", + "name": "username", + "description": "The handle for the GitHub user account.", "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } } ], "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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", - "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 - } - } - } - } - } - } + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden if team synchronization is set up" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" } - }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + } + }, + "/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]\n> 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/update-discussion-in-org", + "operationId": "teams/list-repos-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion" + "url": "https://docs.github.com/rest/teams/teams#list-team-repositories" }, "parameters": [ { @@ -231171,604 +230683,62 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", "schema": { - "type": "integer" + "type": "integer", + "default": 30 } - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "title": "Welcome to our first team post" - } - } - } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 } } - }, + ], "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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 + "type": "array", + "items": { + "title": "Minimal Repository", + "description": "Minimal Repository", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1296269 + ] }, - "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", - "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 - } - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - } - }, - "/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]\n> 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/teams/members#list-pending-team-invitations" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Organization Invitation", - "description": "Organization Invitation", - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "login": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" ] }, - "role": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "failed_at": { - "type": [ - "string", - "null" + "name": { + "type": "string", + "examples": [ + "Hello-World" ] }, - "failed_reason": { - "type": [ - "string", - "null" + "full_name": { + "type": "string", + "examples": [ + "octocat/Hello-World" ] }, - "inviter": { + "owner": { "title": "Simple User", "description": "A GitHub user.", "type": "object", @@ -231936,337 +230906,659 @@ "url" ] }, - "team_count": { - "type": "integer" + "private": { + "type": "boolean" }, - "node_id": { + "html_url": { "type": "string", + "format": "uri", "examples": [ - "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + "https://github.com/octocat/Hello-World" ] }, - "invitation_teams_url": { + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "This your first repo!" + ] + }, + "fork": { + "type": "boolean" + }, + "url": { "type": "string", + "format": "uri", "examples": [ - "\"https://api.github.com/organizations/16/invitations/1/teams\"" + "https://api.github.com/repos/octocat/Hello-World" ] }, - "invitation_source": { + "archive_url": { "type": "string", "examples": [ - "\"member\"" + "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" ] - } - }, - "required": [ - "id", - "login", - "email", - "role", - "created_at", - "inviter", - "team_count", - "invitation_teams_url", - "node_id" - ] - } - }, - "examples": { - "default": { - "value": [ - { - "id": 1, - "login": "monalisa", - "node_id": "MDQ6VXNlcjE=", - "email": "octocat@github.com", - "role": "direct_member", - "created_at": "2016-11-30T06:46:10-08:00", - "failed_at": "", - "failed_reason": "", - "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_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", - "invitation_source": "member" - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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/teams/members#list-team-members" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "role", - "description": "Filters members returned by their role in the team.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "member", - "maintainer", - "all" - ], - "default": "all" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" + }, + "assignees_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" ] }, - "email": { - "type": [ - "string", - "null" + "blobs_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" ] }, - "login": { + "branches_url": { "type": "string", "examples": [ - "octocat" + "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" ] }, - "id": { - "type": "integer", - "format": "int64", + "collaborators_url": { + "type": "string", "examples": [ - 1 + "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" ] }, - "node_id": { + "comments_url": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" + "http://api.github.com/repos/octocat/Hello-World/comments{/number}" ] }, - "avatar_url": { + "commits_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" + ] + }, + "compare_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + ] + }, + "contents_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" + ] + }, + "contributors_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/images/error/octocat_happy.gif" + "http://api.github.com/repos/octocat/Hello-World/contributors" ] }, - "gravatar_id": { - "type": [ - "string", - "null" - ], + "deployments_url": { + "type": "string", + "format": "uri", "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "http://api.github.com/repos/octocat/Hello-World/deployments" ] }, - "url": { + "downloads_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "http://api.github.com/repos/octocat/Hello-World/downloads" ] }, - "html_url": { + "events_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/octocat" + "http://api.github.com/repos/octocat/Hello-World/events" ] }, - "followers_url": { + "forks_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "http://api.github.com/repos/octocat/Hello-World/forks" ] }, - "following_url": { + "git_commits_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" ] }, - "gists_url": { + "git_refs_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" ] }, - "starred_url": { + "git_tags_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" ] }, - "subscriptions_url": { + "git_url": { + "type": "string" + }, + "issue_comment_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + ] + }, + "issue_events_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + ] + }, + "issues_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/issues{/number}" + ] + }, + "keys_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + ] + }, + "labels_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/labels{/name}" + ] + }, + "languages_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "http://api.github.com/repos/octocat/Hello-World/languages" ] }, - "organizations_url": { + "merges_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "http://api.github.com/repos/octocat/Hello-World/merges" ] }, - "repos_url": { + "milestones_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" + ] + }, + "notifications_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + ] + }, + "pulls_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" + ] + }, + "releases_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + ] + }, + "ssh_url": { + "type": "string" + }, + "stargazers_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "http://api.github.com/repos/octocat/Hello-World/stargazers" ] }, - "events_url": { + "statuses_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" ] }, - "received_events_url": { + "subscribers_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "http://api.github.com/repos/octocat/Hello-World/subscribers" ] }, - "type": { + "subscription_url": { "type": "string", + "format": "uri", "examples": [ - "User" + "http://api.github.com/repos/octocat/Hello-World/subscription" ] }, - "site_admin": { - "type": "boolean" + "tags_url": { + "type": "string", + "format": "uri", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/tags" + ] }, - "starred_at": { + "teams_url": { "type": "string", + "format": "uri", "examples": [ - "\"2020-07-09T00:17:55Z\"" + "http://api.github.com/repos/octocat/Hello-World/teams" ] }, - "user_view_type": { + "trees_url": { "type": "string", "examples": [ - "public" + "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + ] + }, + "clone_url": { + "type": "string" + }, + "mirror_url": { + "type": [ + "string", + "null" + ] + }, + "hooks_url": { + "type": "string", + "format": "uri", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/hooks" + ] + }, + "svn_url": { + "type": "string" + }, + "homepage": { + "type": [ + "string", + "null" + ] + }, + "language": { + "type": [ + "string", + "null" + ] + }, + "forks_count": { + "type": "integer" + }, + "stargazers_count": { + "type": "integer" + }, + "watchers_count": { + "type": "integer" + }, + "size": { + "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", + "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" + }, + "has_discussions": { + "type": "boolean" + }, + "archived": { + "type": "boolean" + }, + "disabled": { + "type": "boolean" + }, + "visibility": { + "type": "string" + }, + "pushed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2011-01-26T19:06:43Z" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2011-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2011-01-26T19:14:43Z" + ] + }, + "permissions": { + "type": "object", + "properties": { + "admin": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "pull": { + "type": "boolean" + } + } + }, + "role_name": { + "type": "string", + "examples": [ + "admin" + ] + }, + "temp_clone_token": { + "type": "string" + }, + "delete_branch_on_merge": { + "type": "boolean" + }, + "subscribers_count": { + "type": "integer" + }, + "network_count": { + "type": "integer" + }, + "code_of_conduct": { + "title": "Code Of Conduct", + "description": "Code Of Conduct", + "type": "object", + "properties": { + "key": { + "type": "string", + "examples": [ + "contributor_covenant" + ] + }, + "name": { + "type": "string", + "examples": [ + "Contributor Covenant" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/codes_of_conduct/contributor_covenant" + ] + }, + "body": { + "type": "string", + "examples": [ + "# 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](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n" + ] + }, + "html_url": { + "type": [ + "string", + "null" + ], + "format": "uri" + } + }, + "required": [ + "url", + "html_url", + "key", + "name" + ] + }, + "license": { + "type": [ + "object", + "null" + ], + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "spdx_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "node_id": { + "type": "string" + } + } + }, + "forks": { + "type": "integer", + "examples": [ + 0 + ] + }, + "open_issues": { + "type": "integer", + "examples": [ + 0 + ] + }, + "watchers": { + "type": "integer", + "examples": [ + 0 + ] + }, + "allow_forking": { + "type": "boolean" + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false ] + }, + "security_and_analysis": { + "type": [ + "object", + "null" + ], + "properties": { + "advanced_security": { + "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "code_security": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "dependabot_security_updates": { + "description": "Enable or disable Dependabot security updates for the repository.", + "type": "object", + "properties": { + "status": { + "description": "The enablement status of Dependabot security updates for the repository.", + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning_push_protection": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning_non_provider_patterns": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + } + } + }, + "custom_properties": { + "type": "object", + "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + "additionalProperties": true } }, "required": [ - "avatar_url", + "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", - "followers_url", - "following_url", - "gists_url", - "gravatar_id", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", "html_url", "id", "node_id", - "login", - "organizations_url", - "received_events_url", - "repos_url", - "site_admin", - "starred_url", - "subscriptions_url", - "type", + "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" ] } @@ -232275,301 +231567,157 @@ "default": { "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 - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/teams/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/teams/members#get-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } - } - } - } - }, - "404": { - "description": "if user has no team membership" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - }, - "put": { - "summary": "Add or update team membership for a user", - "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.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]\n> 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/teams/members#add-or-update-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "role": { - "type": "string", - "description": "The role that this user should have in the team.", - "enum": [ - "member", - "maintainer" - ], - "default": "member" - } - } - }, - "examples": { - "default": { - "summary": "Add or update team membership for an organization member", - "value": { - "role": "maintainer" + "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": false, + "topics": [ + "octocat", + "atom", + "electron", + "api" + ], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "has_discussions": false, + "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 + }, + "security_and_analysis": { + "advanced_security": { + "status": "enabled" + }, + "secret_scanning": { + "status": "enabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + } + } + } + ] } } } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } + "type": "string" } } } - }, - "403": { - "description": "Forbidden if team synchronization is set up" - }, - "422": { - "description": "Unprocessable Entity if you attempt to add an organization to a team" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "members" + "subcategory": "teams" } - }, - "delete": { - "summary": "Remove team membership for a user", - "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/memberships/{username}`.", + } + }, + "/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/using-the-rest-api/getting-started-with-the-rest-api#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\nIf the repository is private, you must have at least `read` permission for that repository, and your token must have the `repo` or `admin:org` scope. Otherwise, you will receive a `404 Not Found` response status.\n\n> [!NOTE]\n> 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/remove-membership-for-user-in-org", + "operationId": "teams/check-permissions-for-repo-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user" + "url": "https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository" }, "parameters": [ { @@ -232591,47 +231739,8 @@ } }, { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "403": { - "description": "Forbidden if team synchronization is set up" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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/rest/teams/teams#list-team-repositories" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.", "in": "path", "required": true, "schema": { @@ -232639,1207 +231748,133 @@ } }, { - "name": "team_slug", - "description": "The slug of the team name.", + "name": "repo", + "description": "The name of the repository without the `.git` extension. The name is not case sensitive.", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } } ], "responses": { "200": { - "description": "Response", + "description": "Alternative response with repository permissions", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "title": "Minimal Repository", - "description": "Minimal Repository", - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1296269 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" - ] - }, - "name": { - "type": "string", - "examples": [ - "Hello-World" - ] - }, - "full_name": { - "type": "string", - "examples": [ - "octocat/Hello-World" - ] - }, - "owner": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] + "title": "Team Repository", + "description": "A team's access to a repository.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the repository", + "type": "integer", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "description": "The name of the repository.", + "type": "string", + "examples": [ + "Team Environment" + ] + }, + "full_name": { + "type": "string", + "examples": [ + "octocat/Hello-World" + ] + }, + "license": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "License Simple", + "description": "License Simple", + "type": "object", + "properties": { + "key": { + "type": "string", + "examples": [ + "mit" + ] + }, + "name": { + "type": "string", + "examples": [ + "MIT License" + ] + }, + "url": { + "type": [ + "string", + "null" + ], + "format": "uri", + "examples": [ + "https://api.github.com/licenses/mit" + ] + }, + "spdx_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "MIT" + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDc6TGljZW5zZW1pdA==" + ] + }, + "html_url": { + "type": "string", + "format": "uri" + } }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } + "required": [ + "key", + "name", + "url", + "spdx_id", + "node_id" + ] + } + ] + }, + "forks": { + "type": "integer" + }, + "permissions": { + "type": "object", + "properties": { + "admin": { + "type": "boolean" }, - "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" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "This your first repo!" - ] - }, - "fork": { - "type": "boolean" - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/repos/octocat/Hello-World" - ] - }, - "archive_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" - ] - }, - "assignees_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" - ] - }, - "blobs_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" - ] - }, - "branches_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" - ] - }, - "collaborators_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" - ] - }, - "comments_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/comments{/number}" - ] - }, - "commits_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" - ] - }, - "compare_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" - ] - }, - "contents_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" - ] - }, - "contributors_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contributors" - ] - }, - "deployments_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/deployments" - ] - }, - "downloads_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/downloads" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/events" - ] - }, - "forks_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/forks" - ] - }, - "git_commits_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" - ] - }, - "git_refs_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" - ] - }, - "git_tags_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" - ] - }, - "git_url": { - "type": "string" - }, - "issue_comment_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" - ] - }, - "issue_events_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/issues{/number}" - ] - }, - "keys_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" - ] - }, - "labels_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/labels{/name}" - ] - }, - "languages_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/languages" - ] - }, - "merges_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/merges" - ] - }, - "milestones_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" - ] - }, - "notifications_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" - ] - }, - "pulls_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" - ] - }, - "releases_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/releases{/id}" - ] - }, - "ssh_url": { - "type": "string" - }, - "stargazers_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/stargazers" - ] - }, - "statuses_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" - ] - }, - "subscribers_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/subscribers" - ] - }, - "subscription_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/subscription" - ] - }, - "tags_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/tags" - ] - }, - "teams_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/teams" - ] - }, - "trees_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" - ] - }, - "clone_url": { - "type": "string" - }, - "mirror_url": { - "type": [ - "string", - "null" - ] - }, - "hooks_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/hooks" - ] - }, - "svn_url": { - "type": "string" - }, - "homepage": { - "type": [ - "string", - "null" - ] - }, - "language": { - "type": [ - "string", - "null" - ] - }, - "forks_count": { - "type": "integer" - }, - "stargazers_count": { - "type": "integer" - }, - "watchers_count": { - "type": "integer" - }, - "size": { - "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - "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" - }, - "has_discussions": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "disabled": { - "type": "boolean" - }, - "visibility": { - "type": "string" - }, - "pushed_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2011-01-26T19:06:43Z" - ] - }, - "created_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2011-01-26T19:01:12Z" - ] - }, - "updated_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2011-01-26T19:14:43Z" - ] - }, - "permissions": { - "type": "object", - "properties": { - "admin": { - "type": "boolean" - }, - "maintain": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "triage": { - "type": "boolean" - }, - "pull": { - "type": "boolean" - } - } - }, - "role_name": { - "type": "string", - "examples": [ - "admin" - ] - }, - "temp_clone_token": { - "type": "string" - }, - "delete_branch_on_merge": { - "type": "boolean" - }, - "subscribers_count": { - "type": "integer" - }, - "network_count": { - "type": "integer" - }, - "code_of_conduct": { - "title": "Code Of Conduct", - "description": "Code Of Conduct", - "type": "object", - "properties": { - "key": { - "type": "string", - "examples": [ - "contributor_covenant" - ] - }, - "name": { - "type": "string", - "examples": [ - "Contributor Covenant" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/codes_of_conduct/contributor_covenant" - ] - }, - "body": { - "type": "string", - "examples": [ - "# 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](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n" - ] - }, - "html_url": { - "type": [ - "string", - "null" - ], - "format": "uri" - } - }, - "required": [ - "url", - "html_url", - "key", - "name" - ] - }, - "license": { - "type": [ - "object", - "null" - ], - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "spdx_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "node_id": { - "type": "string" - } - } - }, - "forks": { - "type": "integer", - "examples": [ - 0 - ] - }, - "open_issues": { - "type": "integer", - "examples": [ - 0 - ] - }, - "watchers": { - "type": "integer", - "examples": [ - 0 - ] - }, - "allow_forking": { - "type": "boolean" - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "security_and_analysis": { - "type": [ - "object", - "null" - ], - "properties": { - "advanced_security": { - "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "code_security": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "dependabot_security_updates": { - "description": "Enable or disable Dependabot security updates for the repository.", - "type": "object", - "properties": { - "status": { - "description": "The enablement status of Dependabot security updates for the repository.", - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning_push_protection": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning_non_provider_patterns": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning_ai_detection": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - } - } - }, - "custom_properties": { - "type": "object", - "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - "additionalProperties": true - } - }, - "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" - ] - } - }, - "examples": { - "default": { - "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": false, - "topics": [ - "octocat", - "atom", - "electron", - "api" - ], - "has_issues": true, - "has_projects": true, - "has_wiki": true, - "has_pages": false, - "has_downloads": true, - "has_discussions": false, - "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 - }, - "security_and_analysis": { - "advanced_security": { - "status": "enabled" - }, - "secret_scanning": { - "status": "enabled" - }, - "secret_scanning_push_protection": { - "status": "disabled" - }, - "secret_scanning_non_provider_patterns": { - "status": "disabled" - } - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "teams" - } - } - }, - "/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/using-the-rest-api/getting-started-with-the-rest-api#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\nIf the repository is private, you must have at least `read` permission for that repository, and your token must have the `repo` or `admin:org` scope. Otherwise, you will receive a `404 Not Found` response status.\n\n> [!NOTE]\n> 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/rest/teams/teams#check-team-permissions-for-a-repository" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "owner", - "description": "The account owner of the repository. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "repo", - "description": "The name of the repository without the `.git` extension. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Alternative response with repository permissions", - "content": { - "application/json": { - "schema": { - "title": "Team Repository", - "description": "A team's access to a repository.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the repository", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" - ] - }, - "name": { - "description": "The name of the repository.", - "type": "string", - "examples": [ - "Team Environment" - ] - }, - "full_name": { - "type": "string", - "examples": [ - "octocat/Hello-World" - ] - }, - "license": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "License Simple", - "description": "License Simple", - "type": "object", - "properties": { - "key": { - "type": "string", - "examples": [ - "mit" - ] - }, - "name": { - "type": "string", - "examples": [ - "MIT License" - ] - }, - "url": { - "type": [ - "string", - "null" - ], - "format": "uri", - "examples": [ - "https://api.github.com/licenses/mit" - ] - }, - "spdx_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "MIT" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDc6TGljZW5zZW1pdA==" - ] - }, - "html_url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "key", - "name", - "url", - "spdx_id", - "node_id" - ] - } - ] - }, - "forks": { - "type": "integer" - }, - "permissions": { - "type": "object", - "properties": { - "admin": { - "type": "boolean" - }, - "pull": { - "type": "boolean" - }, - "triage": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "maintain": { - "type": "boolean" + "pull": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" } }, "required": [ @@ -620222,1752 +618257,122 @@ "type": "string" }, "documentation_url": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "search", - "subcategory": "search" - } - } - }, - "/teams/{team_id}": { - "get": { - "summary": "Get a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/teams#get-a-team-by-name) endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/teams#get-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } - } - } - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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]\n> 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/rest/teams/teams#update-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "notification_setting": { - "type": "string", - "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ] - }, - "permission": { - "type": "string", - "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - "enum": [ - "pull", - "push", - "admin" - ], - "default": "pull" - }, - "parent_team_id": { - "type": [ - "integer", - "null" - ], - "description": "The ID of a team to set as the parent team." - } - }, - "required": [ - "name" - ] - }, - "examples": { - "default": { - "value": { - "name": "new team name", - "description": "new team description", - "privacy": "closed", - "notification_setting": "notifications_enabled" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response when the updated information already exists", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } + "type": "string" } } } } } }, - "201": { + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "search", + "subcategory": "search" + } + } + }, + "/teams/{team_id}": { + "get": { + "summary": "Get a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/teams#get-a-team-by-name) endpoint.", + "tags": [ + "teams" + ], + "operationId": "teams/get-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/teams/teams#get-a-team-legacy" + }, + "parameters": [ + { + "name": "team_id", + "description": "The unique identifier of the team.", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { "description": "Response", "content": { "application/json": { @@ -622744,245 +619149,6 @@ } } } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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/rest/teams/teams#delete-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } } }, "x-github": { @@ -622994,501 +619160,17 @@ "subcategory": "teams" }, "deprecated": true - } - }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#list-discussions-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "direction", - "description": "The direction to sort the results by.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "desc" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - } - }, - "examples": { - "default": { - "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", - "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 - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "patch": { + "summary": "Update a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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]\n> With nested teams, the `privacy` for parent teams cannot be `secret`.", "tags": [ "teams" ], - "operationId": "teams/create-discussion-legacy", + "operationId": "teams/update-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy" + "url": "https://docs.github.com/rest/teams/teams#update-a-team-legacy" }, "parameters": [ { @@ -623508,30 +619190,59 @@ "schema": { "type": "object", "properties": { - "title": { + "name": { "type": "string", - "description": "The discussion post's title." + "description": "The name of the team." }, - "body": { + "description": { "type": "string", - "description": "The discussion post's body text." + "description": "The description of the team." }, - "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 + "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" + ] + }, + "notification_setting": { + "type": "string", + "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ] + }, + "permission": { + "type": "string", + "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + "enum": [ + "pull", + "push", + "admin" + ], + "default": "pull" + }, + "parent_team_id": { + "type": [ + "integer", + "null" + ], + "description": "The ID of a team to set as the parent team." } }, "required": [ - "title", - "body" + "name" ] }, "examples": { "default": { "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "name": "new team name", + "description": "new team description", + "privacy": "closed", + "notification_setting": "notifications_enabled" } } } @@ -623539,495 +619250,120 @@ } }, "responses": { - "201": { - "description": "Response", + "200": { + "description": "Response when the updated information already exists", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", "examples": [ - "

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

" + 42 ] }, - "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.", + "node_id": { "type": "string", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "MDQ6VGVhbTE=" ] }, - "created_at": { + "url": { + "description": "URL for the team", "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1" ] }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, "html_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" + "https://github.com/orgs/rails/teams/core" ] }, - "node_id": { + "name": { + "description": "Name of the team", "type": "string", "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + "Developers" ] }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", + "slug": { + "type": "string", "examples": [ - 42 + "justice-league" ] }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", + "description": { + "type": [ + "string", + "null" + ], "examples": [ - true + "A great team." ] }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], "examples": [ - true + "closed" ] }, - "team_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], "examples": [ - "https://api.github.com/organizations/1/team/2343027" + "notifications_enabled" ] }, - "title": { - "description": "The title of the discussion.", + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "How can we improve our workflow?" + "push" ] }, - "updated_at": { + "members_url": { "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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", - "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 - } - } - } - } - } - } - } - }, - "x-github": { - "triggersNotification": true, - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#get-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -624035,472 +619371,751 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" } } } } } } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "title": "Welcome to our first team post" - } - } - } - } - } - }, - "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "author": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Developers" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], + "examples": [ + "notifications_enabled" + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "push" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -624508,361 +620123,763 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" + } + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } } } } } } } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } } }, "x-github": { @@ -624871,20 +620888,20 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true }, "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "summary": "Delete a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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-discussion-legacy", + "operationId": "teams/delete-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy" + "url": "https://docs.github.com/rest/teams/teams#delete-a-team-legacy" }, "parameters": [ { @@ -624895,20 +620912,112 @@ "schema": { "type": "integer" } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } } ], "responses": { "204": { "description": "Response" + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } } }, "x-github": { @@ -624917,7 +621026,7 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true } diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index c5ea72e87..f136965b0 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -1071,7 +1071,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/global-advisories#get-a-global-security-advisory parameters: - - &618 + - &615 name: ghsa_id description: The GHSA (GitHub Security Advisory) identifier of the advisory. in: path @@ -9170,7 +9170,7 @@ paths: Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. schema: type: string - - &457 + - &454 name: has in: query description: |- @@ -9290,7 +9290,7 @@ paths: - direct - transitive - - security_advisory: &458 + security_advisory: &455 type: object description: Details for the GitHub Security Advisory. readOnly: true @@ -9558,7 +9558,7 @@ paths: and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - auto_dismissed_at: &459 + auto_dismissed_at: &456 type: - string - 'null' @@ -9566,7 +9566,7 @@ paths: ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissal_request: &460 + dismissal_request: &457 title: Dependabot alert dismissal request description: Information about an active dismissal request for this Dependabot alert. @@ -10957,7 +10957,7 @@ paths: properties: action: type: string - discussion: &711 + discussion: &706 title: Discussion description: A Discussion in a repository. type: object @@ -11743,7 +11743,7 @@ paths: - hooray - eyes - rocket - sub_issues_summary: &630 + sub_issues_summary: &627 title: Sub-issues Summary type: object properties: @@ -11764,7 +11764,7 @@ paths: - string - 'null' format: uri - issue_dependencies_summary: &631 + issue_dependencies_summary: &628 title: Issue Dependencies Summary type: object properties: @@ -11783,7 +11783,7 @@ paths: - total_blocking issue_field_values: type: array - items: &632 + items: &629 title: Issue Field Value description: A value assigned to an issue field type: object @@ -11896,7 +11896,7 @@ paths: action: type: string issue: *71 - comment: &507 + comment: &504 title: Issue Comment description: Comments provide a way for people to collaborate on an issue. @@ -12619,7 +12619,7 @@ paths: type: string release: allOf: - - &563 + - &560 title: Release description: A release. type: object @@ -12701,7 +12701,7 @@ paths: author: *4 assets: type: array - items: &564 + items: &561 title: Release Asset description: Data related to a release. type: object @@ -13304,7 +13304,7 @@ paths: url: type: string format: uri - user: &640 + user: &635 title: Public User description: Public User type: object @@ -16661,14 +16661,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/events#list-public-events-for-a-network-of-repositories parameters: - - &311 + - &308 name: owner description: The account owner of the repository. The name is not case sensitive. in: path required: true schema: type: string - - &312 + - &309 name: repo description: The name of the repository without the `.git` extension. The name is not case sensitive. @@ -16730,7 +16730,7 @@ paths: '404': *6 '403': *27 '304': *35 - '301': &315 + '301': &312 description: Moved permanently content: application/json: @@ -16752,7 +16752,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user parameters: - - &537 + - &534 name: all description: If `true`, show notifications marked as read. in: query @@ -16760,7 +16760,7 @@ paths: schema: type: boolean default: false - - &538 + - &535 name: participating description: If `true`, only shows notifications in which the user is directly participating or mentioned. @@ -16770,7 +16770,7 @@ paths: type: boolean default: false - *77 - - &539 + - &536 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: @@ -17306,7 +17306,7 @@ paths: - url - subscription_url examples: - default: &540 + default: &537 value: - id: '1' repository: @@ -18333,7 +18333,7 @@ paths: - property_name - value examples: - default: &546 + default: &543 value: - property_name: environment value: production @@ -18383,7 +18383,7 @@ paths: required: - properties examples: - default: &547 + default: &544 value: properties: - property_name: environment @@ -18957,7 +18957,7 @@ paths: required: false schema: type: string - - &688 + - &683 name: model description: The model name to query usage for. The name is not case sensitive. in: query @@ -19103,7 +19103,7 @@ paths: parameters: - *66 - *108 - - &689 + - &684 name: month description: If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the @@ -19215,7 +19215,7 @@ paths: - *108 - *110 - *109 - - &690 + - &685 name: repository description: The repository name to query for usage in the format owner/repository. in: query @@ -19223,7 +19223,7 @@ paths: schema: type: string - *111 - - &691 + - &686 name: sku description: The SKU to query for usage. in: query @@ -20202,7 +20202,7 @@ paths: type: integer repository_cache_usages: type: array - items: &322 + items: &319 title: Actions Cache Usage by repository description: GitHub Actions Cache Usage by repository. type: object @@ -21440,7 +21440,7 @@ paths: - all - local_only - selected - selected_actions_url: &328 + selected_actions_url: &325 type: string description: The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` @@ -21523,7 +21523,7 @@ paths: description: Response content: application/json: - schema: &332 + schema: &329 type: object properties: days: @@ -21565,7 +21565,7 @@ paths: required: true content: application/json: - schema: &333 + schema: &330 type: object properties: days: @@ -21622,7 +21622,7 @@ paths: required: - approval_policy examples: - default: &334 + default: &331 value: approval_policy: first_time_contributors '404': *6 @@ -21681,7 +21681,7 @@ paths: description: Response content: application/json: - schema: &335 + schema: &332 type: object required: - run_workflows_from_fork_pull_requests @@ -21735,7 +21735,7 @@ paths: required: true content: application/json: - schema: &336 + schema: &333 type: object required: - run_workflows_from_fork_pull_requests @@ -22370,7 +22370,7 @@ paths: description: Response content: application/json: - schema: &337 + schema: &334 type: object properties: default_workflow_permissions: &138 @@ -22421,7 +22421,7 @@ paths: required: false content: application/json: - schema: &338 + schema: &335 type: object properties: default_workflow_permissions: *138 @@ -22914,7 +22914,7 @@ paths: type: array items: *145 examples: - default: &643 + default: &638 value: total_count: 1 repositories: @@ -23561,7 +23561,7 @@ paths: application/json: schema: type: array - items: &339 + items: &336 title: Runner Application description: Runner Application type: object @@ -23586,7 +23586,7 @@ paths: - download_url - filename examples: - default: &340 + default: &337 value: - os: osx architecture: x64 @@ -23672,7 +23672,7 @@ paths: - no-gpu work_folder: _work responses: - '201': &341 + '201': &338 description: Response content: application/json: @@ -23787,7 +23787,7 @@ paths: - token - expires_at examples: - default: &342 + default: &339 value: token: LLBF3JGZDX3P5PMEXLND6TS6FCWO6 expires_at: '2020-01-22T12:13:35.123-08:00' @@ -23826,7 +23826,7 @@ paths: application/json: schema: *149 examples: - default: &343 + default: &340 value: token: AABF3JGZDX3P5PMEXLND6TS6FCWO6 expires_at: '2020-01-29T12:13:35.123-08:00' @@ -23860,7 +23860,7 @@ paths: application/json: schema: *147 examples: - default: &344 + default: &341 value: id: 23 name: MBP @@ -24086,7 +24086,7 @@ paths: - *66 - *146 responses: - '200': &345 + '200': &342 description: Response content: application/json: @@ -24143,7 +24143,7 @@ paths: parameters: - *66 - *146 - - &346 + - &343 name: name description: The name of a self-hosted runner's custom label. in: path @@ -24275,7 +24275,7 @@ paths: description: Response content: application/json: - schema: &358 + schema: &355 title: ActionsPublicKey description: The public key used for setting Actions Secrets. type: object @@ -24310,7 +24310,7 @@ paths: - key_id - key examples: - default: &359 + default: &356 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -24723,7 +24723,7 @@ paths: url: https://docs.github.com/rest/actions/variables#list-organization-variables parameters: - *66 - - &327 + - &324 name: per_page description: The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." @@ -25885,12 +25885,12 @@ paths: required: - subject_digests examples: - default: &670 + default: &665 value: subject_digests: - sha256:abc123 - sha512:def456 - withPredicateType: &671 + withPredicateType: &666 value: subject_digests: - sha256:abc123 @@ -25949,7 +25949,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: &672 + default: &667 value: attestations_subject_digests: - sha256:abc: @@ -26298,7 +26298,7 @@ paths: initiator: type: string examples: - default: &372 + default: &369 value: attestations: - bundle: @@ -27254,7 +27254,7 @@ paths: url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization parameters: - *66 - - &396 + - &393 name: tool_name description: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, @@ -27264,7 +27264,7 @@ paths: schema: &170 type: string description: The name of the tool used to generate the code scanning analysis. - - &397 + - &394 name: tool_guid description: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in @@ -27288,7 +27288,7 @@ paths: be returned. in: query required: false - schema: &399 + schema: &396 type: string description: State of a code scanning alert. enum: @@ -27311,7 +27311,7 @@ paths: be returned. in: query required: false - schema: &400 + schema: &397 type: string description: Severity of a code scanning alert. enum: @@ -27345,7 +27345,7 @@ paths: updated_at: *165 url: *166 html_url: *167 - instances_url: &401 + instances_url: &398 type: string description: The REST API URL for fetching the list of instances for an alert. @@ -27367,7 +27367,7 @@ paths: - type: 'null' - *4 dismissed_at: *169 - dismissed_reason: &402 + dismissed_reason: &399 type: - string - 'null' @@ -27378,14 +27378,14 @@ paths: - won't fix - used in tests - - dismissed_comment: &403 + dismissed_comment: &400 type: - string - 'null' description: The dismissal comment associated with the dismissal of the alert. maxLength: 280 - rule: &404 + rule: &401 type: object properties: id: @@ -27446,7 +27446,7 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: &405 + tool: &402 type: object properties: name: *170 @@ -27457,26 +27457,26 @@ paths: description: The version of the tool used to generate the code scanning analysis. guid: *171 - most_recent_instance: &406 + most_recent_instance: &403 type: object properties: - ref: &398 + ref: &395 type: string description: |- The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, `refs/heads/` or simply ``. - analysis_key: &416 + analysis_key: &413 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. - environment: &417 + environment: &414 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. - category: &418 + category: &415 type: string description: Identifies the configuration under which the analysis was executed. Used to distinguish between multiple @@ -27490,7 +27490,7 @@ paths: properties: text: type: string - location: &419 + location: &416 type: object description: Describe a region within a file for the alert. properties: @@ -27511,7 +27511,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: &420 + items: &417 type: - string - 'null' @@ -28805,7 +28805,7 @@ paths: machine: anyOf: - type: 'null' - - &432 + - &429 type: object title: Codespace machine description: A description of the machine powering a codespace. @@ -29757,7 +29757,7 @@ paths: - updated_at - visibility examples: - default: &433 + default: &430 value: total_count: 2 secrets: @@ -29795,7 +29795,7 @@ paths: description: Response content: application/json: - schema: &434 + schema: &431 title: CodespacesPublicKey description: The public key used for setting Codespaces secrets. type: object @@ -29830,7 +29830,7 @@ paths: - key_id - key examples: - default: &435 + default: &432 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -29862,7 +29862,7 @@ paths: application/json: schema: *179 examples: - default: &437 + default: &434 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -31485,7 +31485,7 @@ paths: description: Response content: application/json: - schema: &463 + schema: &460 title: DependabotPublicKey description: The public key used for setting Dependabot Secrets. type: object @@ -31504,7 +31504,7 @@ paths: - key_id - key examples: - default: &464 + default: &461 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -33332,7 +33332,7 @@ paths: application/json: schema: *20 examples: - default: &502 + default: &499 value: id: 1 account: @@ -33560,7 +33560,7 @@ paths: required: true content: application/json: - schema: &503 + schema: &500 title: Interaction Restrictions description: Limit interactions to a specific type of user for a specified duration @@ -34420,7 +34420,7 @@ paths: application/json: schema: *221 examples: - default: &431 + default: &428 value: id: 1 name: monalisa-octocat-hello-world-g4wpq6h95q @@ -35682,7 +35682,7 @@ paths: parameters: - *66 - *228 - - &655 + - &650 name: repo_name description: repo_name parameter in: path @@ -36741,7 +36741,7 @@ paths: - nuget - container - *66 - - &656 + - &651 name: visibility description: |- The selected visibility of the packages. This parameter is optional and only filters an existing result set. @@ -36782,7 +36782,7 @@ paths: default: *234 '403': *27 '401': *23 - '400': &658 + '400': &653 description: The value of `per_page` multiplied by `page` cannot be greater than 10000. x-github: @@ -38608,7 +38608,7 @@ paths: latest_status_update: anyOf: - type: 'null' - - &739 + - &734 title: Projects v2 Status Update description: An status update belonging to a project type: object @@ -38882,7 +38882,7 @@ paths: content: oneOf: - *71 - - &446 + - &443 title: Pull Request Simple description: Pull Request Simple type: object @@ -39127,7 +39127,7 @@ paths: - review_comment - self author_association: *72 - auto_merge: &549 + auto_merge: &546 title: Auto merge description: The status of auto merging a pull request. type: @@ -39509,7 +39509,7 @@ paths: - updated_at - project_url examples: - default: &675 + default: &670 value: - id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -39686,7 +39686,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: &676 + items: &671 type: object properties: name: @@ -39722,7 +39722,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: &677 + iteration_configuration: &672 type: object description: The configuration for iteration fields. properties: @@ -39771,7 +39771,7 @@ paths: value: name: Due date data_type: date - single_select_field: &678 + single_select_field: &673 summary: Create a single select field value: name: Priority @@ -39798,7 +39798,7 @@ paths: description: raw: High priority items html: High priority items - iteration_field: &679 + iteration_field: &674 summary: Create an iteration field value: name: Sprint @@ -39824,7 +39824,7 @@ paths: application/json: schema: *254 examples: - text_field: &680 + text_field: &675 value: id: 24680 node_id: PVTF_lADOABCD2468024680 @@ -39833,7 +39833,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-05-15T08:00:00Z' updated_at: '2022-05-15T08:00:00Z' - number_field: &681 + number_field: &676 value: id: 13579 node_id: PVTF_lADOABCD1357913579 @@ -39842,7 +39842,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-01T14:30:00Z' updated_at: '2022-06-01T14:30:00Z' - date_field: &682 + date_field: &677 value: id: 98765 node_id: PVTF_lADOABCD9876598765 @@ -39851,7 +39851,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-10T09:15:00Z' updated_at: '2022-06-10T09:15:00Z' - single_select_field: &683 + single_select_field: &678 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -39885,7 +39885,7 @@ paths: raw: High priority items created_at: '2022-04-28T12:00:00Z' updated_at: '2022-04-28T12:00:00Z' - iteration_field: &684 + iteration_field: &679 value: id: 11223 node_id: PVTF_lADOABCD1122311223 @@ -39931,7 +39931,7 @@ paths: url: https://docs.github.com/rest/projects/fields#get-project-field-for-organization parameters: - *251 - - &685 + - &680 name: field_id description: The unique identifier of the field. in: path @@ -39946,7 +39946,7 @@ paths: application/json: schema: *254 examples: - default: &686 + default: &681 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -41083,7 +41083,7 @@ paths: parameters: - *251 - *66 - - &687 + - &682 name: view_number description: The number that identifies the project view. in: path @@ -42018,7 +42018,7 @@ paths: description: Response content: application/json: - schema: &314 + schema: &311 title: Full Repository description: Full Repository type: object @@ -42483,7 +42483,7 @@ paths: description: Whether anonymous git access is allowed. default: true type: boolean - code_of_conduct: &451 + code_of_conduct: &448 title: Code Of Conduct Simple description: Code of Conduct Simple type: object @@ -42597,7 +42597,7 @@ paths: - network_count - subscribers_count examples: - default: &316 + default: &313 value: id: 1296269 node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 @@ -43118,7 +43118,7 @@ paths: - *66 - *17 - *19 - - &571 + - &568 name: targets description: | A comma-separated list of rule targets to filter by. @@ -43404,7 +43404,7 @@ paths: - object rules: type: array - items: &572 + items: &569 title: Repository Rule type: object description: A repository rule. @@ -43466,7 +43466,7 @@ paths: type: string enum: - required_linear_history - - &570 + - &567 title: merge_queue description: Merges must be performed via a merge queue. type: object @@ -44362,7 +44362,7 @@ paths: url: https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites parameters: - *66 - - &573 + - &570 name: ref description: The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit @@ -44377,7 +44377,7 @@ paths: in: query schema: type: string - - &574 + - &571 name: time_period description: |- The time period to filter by. @@ -44393,14 +44393,14 @@ paths: - week - month default: day - - &575 + - &572 name: actor_name description: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. in: query schema: type: string - - &576 + - &573 name: rule_suite_result description: The rule suite results to filter on. When specified, only suites with this result will be returned. @@ -44420,7 +44420,7 @@ paths: description: Response content: application/json: - schema: &577 + schema: &574 title: Rule Suites description: Response type: array @@ -44476,7 +44476,7 @@ paths: whether rules would pass or fail if all rules in the rule suite were `active`. examples: - default: &578 + default: &575 value: - id: 21 actor_id: 12 @@ -44520,7 +44520,7 @@ paths: url: https://docs.github.com/rest/orgs/rule-suites#get-an-organization-rule-suite parameters: - *66 - - &579 + - &576 name: rule_suite_id description: |- The unique identifier of the rule suite result. @@ -44536,7 +44536,7 @@ paths: description: Response content: application/json: - schema: &580 + schema: &577 title: Rule Suite description: Response type: object @@ -44643,7 +44643,7 @@ paths: description: The detailed failure message for the rule. Null if the rule passed. examples: - default: &581 + default: &578 value: id: 21 actor_id: 12 @@ -44889,7 +44889,7 @@ paths: type: string format: date-time examples: - default: &583 + default: &580 value: - version_id: 3 actor: @@ -44942,7 +44942,7 @@ paths: description: Response content: application/json: - schema: &584 + schema: &581 allOf: - *295 - type: object @@ -45014,7 +45014,7 @@ paths: url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization parameters: - *66 - - &585 + - &582 name: state in: query description: Set to `open` or `resolved` to only list secret scanning alerts @@ -45025,7 +45025,7 @@ paths: enum: - open - resolved - - &586 + - &583 name: secret_type in: query description: A comma-separated list of secret types to return. All default @@ -45035,7 +45035,7 @@ paths: required: false schema: type: string - - &587 + - &584 name: resolution in: query description: A comma-separated list of resolutions. Only secret scanning alerts @@ -45044,7 +45044,7 @@ paths: required: false schema: type: string - - &588 + - &585 name: assignee in: query description: Filters alerts by assignee. Use `*` to get all assigned alerts, @@ -45063,7 +45063,7 @@ paths: all-unassigned: value: none summary: Filter for all unassigned alerts - - &589 + - &586 name: sort description: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. @@ -45078,7 +45078,7 @@ paths: - *51 - *19 - *17 - - &590 + - &587 name: before description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To @@ -45088,7 +45088,7 @@ paths: required: false schema: type: string - - &591 + - &588 name: after description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To @@ -45098,7 +45098,7 @@ paths: required: false schema: type: string - - &592 + - &589 name: validity in: query description: A comma-separated list of validities that, when present, will @@ -45107,7 +45107,7 @@ paths: required: false schema: type: string - - &593 + - &590 name: is_publicly_leaked in: query description: A boolean value representing whether or not to filter alerts @@ -45116,7 +45116,7 @@ paths: schema: type: boolean default: false - - &594 + - &591 name: is_multi_repo in: query description: A boolean value representing whether or not to filter alerts @@ -45125,7 +45125,7 @@ paths: schema: type: boolean default: false - - &595 + - &592 name: hide_secret in: query description: A boolean value representing whether or not to hide literal secrets @@ -45157,14 +45157,14 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: &596 + state: &593 description: Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. type: string enum: - open - resolved - resolution: &597 + resolution: &594 type: - string - 'null' @@ -45271,14 +45271,14 @@ paths: first_location_detected: anyOf: - type: 'null' - - &598 + - &595 description: 'Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request. ' oneOf: - - &600 + - &597 description: Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. @@ -45335,7 +45335,7 @@ paths: - blob_url - commit_sha - commit_url - - &601 + - &598 description: Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. @@ -45396,7 +45396,7 @@ paths: - page_url - commit_sha - commit_url - - &602 + - &599 description: Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. @@ -45411,7 +45411,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_title_url - - &603 + - &600 description: Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. @@ -45426,7 +45426,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_body_url - - &604 + - &601 description: Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. @@ -45441,7 +45441,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - issue_comment_url - - &605 + - &602 description: Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. @@ -45456,7 +45456,7 @@ paths: - https://github.com/community/community/discussions/39082 required: - discussion_title_url - - &606 + - &603 description: Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. @@ -45471,7 +45471,7 @@ paths: - https://github.com/community/community/discussions/39082#discussion-4566270 required: - discussion_body_url - - &607 + - &604 description: Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. @@ -45486,7 +45486,7 @@ paths: - https://github.com/community/community/discussions/39082#discussioncomment-4158232 required: - discussion_comment_url - - &608 + - &605 description: Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. @@ -45501,7 +45501,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_title_url - - &609 + - &606 description: Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. @@ -45516,7 +45516,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_body_url - - &610 + - &607 description: Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. @@ -45531,7 +45531,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - pull_request_comment_url - - &611 + - &608 description: Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. @@ -45546,7 +45546,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80 required: - pull_request_review_url - - &612 + - &609 description: Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull @@ -46046,7 +46046,7 @@ paths: application/json: schema: type: array - items: &616 + items: &613 description: A repository security advisory. type: object properties: @@ -46365,7 +46365,7 @@ paths: - private_fork additionalProperties: false examples: - default: &617 + default: &614 value: - ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -48227,464 +48227,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#list-discussions - parameters: - - *66 - - *67 - - *51 - - *17 - - *19 - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: &307 - title: Team Discussion - description: A team discussion is a persistent record of a free-form - conversation within a team. - type: object - properties: - author: - anyOf: - - type: 'null' - - *4 - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned - for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted - to team members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: *73 - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url - examples: - default: &634 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - headers: - Link: *57 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion - parameters: - - *66 - - *67 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *307 - examples: - default: &308 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#get-a-discussion - parameters: - - *66 - - *67 - - &309 - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: *308 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion - parameters: - - *66 - - *67 - - *309 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: &635 - 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 - 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 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion - parameters: - - *66 - - *67 - - *309 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/invitations": get: summary: List pending team invitations @@ -48797,7 +48339,7 @@ paths: description: Response content: application/json: - schema: &310 + schema: &307 title: Team Membership description: Team Membership type: object @@ -48825,7 +48367,7 @@ paths: - state - url examples: - response-if-user-is-a-team-maintainer: &636 + response-if-user-is-a-team-maintainer: &631 summary: Response if user is a team maintainer value: url: https://api.github.com/teams/1/memberships/octocat @@ -48888,9 +48430,9 @@ paths: description: Response content: application/json: - schema: *310 + schema: *307 examples: - response-if-users-membership-with-team-is-now-pending: &637 + response-if-users-membership-with-team-is-now-pending: &632 summary: Response if user's membership with team is now pending value: url: https://api.github.com/teams/1/memberships/octocat @@ -48997,14 +48539,14 @@ paths: parameters: - *66 - *67 - - *311 - - *312 + - *308 + - *309 responses: '200': description: Alternative response with repository permissions content: application/json: - schema: &638 + schema: &633 title: Team Repository description: A team's access to a repository. type: object @@ -49647,8 +49189,8 @@ paths: parameters: - *66 - *67 - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -49695,8 +49237,8 @@ paths: parameters: - *66 - *67 - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -49733,7 +49275,7 @@ paths: type: array items: *180 examples: - response-if-child-teams-exist: &639 + response-if-child-teams-exist: &634 value: - id: 2 node_id: MDQ6VGVhbTI= @@ -49887,7 +49429,7 @@ paths: resources: type: object properties: - core: &313 + core: &310 title: Rate Limit type: object properties: @@ -49904,21 +49446,21 @@ paths: - remaining - reset - used - graphql: *313 - search: *313 - code_search: *313 - source_import: *313 - integration_manifest: *313 - code_scanning_upload: *313 - actions_runner_registration: *313 - scim: *313 - dependency_snapshots: *313 - dependency_sbom: *313 - code_scanning_autofix: *313 + graphql: *310 + search: *310 + code_search: *310 + source_import: *310 + integration_manifest: *310 + code_scanning_upload: *310 + actions_runner_registration: *310 + scim: *310 + dependency_snapshots: *310 + dependency_sbom: *310 + code_scanning_autofix: *310 required: - core - search - rate: *313 + rate: *310 required: - rate - resources @@ -50023,14 +49565,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#get-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *314 + schema: *311 examples: default-response: summary: Default response @@ -50531,7 +50073,7 @@ paths: status: disabled '403': *27 '404': *6 - '301': *315 + '301': *312 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -50549,8 +50091,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#update-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -50798,10 +50340,10 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 - '307': &317 + default: *313 + '307': &314 description: Temporary Redirect content: application/json: @@ -50830,8 +50372,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#delete-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -50853,7 +50395,7 @@ paths: value: message: Organization members cannot delete repositories. documentation_url: https://docs.github.com/rest/repos/repos#delete-a-repository - '307': *317 + '307': *314 '404': *6 '409': *50 x-github: @@ -50877,11 +50419,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#list-artifacts-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - - &350 + - &347 name: name description: The name field of an artifact. When specified, only artifacts with this name will be returned. @@ -50904,7 +50446,7 @@ paths: type: integer artifacts: type: array - items: &318 + items: &315 title: Artifact description: An artifact type: object @@ -50999,7 +50541,7 @@ paths: - expires_at - updated_at examples: - default: &351 + default: &348 value: total_count: 2 artifacts: @@ -51060,9 +50602,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#get-an-artifact parameters: - - *311 - - *312 - - &319 + - *308 + - *309 + - &316 name: artifact_id description: The unique identifier of the artifact. in: path @@ -51074,7 +50616,7 @@ paths: description: Response content: application/json: - schema: *318 + schema: *315 examples: default: value: @@ -51112,9 +50654,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#delete-an-artifact parameters: - - *311 - - *312 - - *319 + - *308 + - *309 + - *316 responses: '204': description: Response @@ -51138,9 +50680,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#download-an-artifact parameters: - - *311 - - *312 - - *319 + - *308 + - *309 + - *316 - name: archive_format in: path required: true @@ -51154,7 +50696,7 @@ paths: 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 - '410': &506 + '410': &503 description: Gone content: application/json: @@ -51179,14 +50721,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#get-github-actions-cache-retention-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &320 + schema: &317 title: Actions cache retention limit for a repository description: GitHub Actions cache retention policy for a repository. type: object @@ -51220,13 +50762,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#set-github-actions-cache-retention-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *320 + schema: *317 examples: selected_actions: *40 responses: @@ -51255,14 +50797,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#get-github-actions-cache-storage-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &321 + schema: &318 title: Actions cache storage limit for a repository description: GitHub Actions cache storage policy for a repository. type: object @@ -51296,13 +50838,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#set-github-actions-cache-storage-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *321 + schema: *318 examples: selected_actions: *42 responses: @@ -51333,14 +50875,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *322 + schema: *319 examples: default: value: @@ -51366,11 +50908,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - - &323 + - &320 name: ref description: The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference @@ -51404,7 +50946,7 @@ paths: description: Response content: application/json: - schema: &324 + schema: &321 title: Repository actions caches description: Repository actions caches type: object @@ -51454,7 +50996,7 @@ paths: - total_count - actions_caches examples: - default: &325 + default: &322 value: total_count: 1 actions_caches: @@ -51486,23 +51028,23 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key parameters: - - *311 - - *312 + - *308 + - *309 - name: key description: A key for identifying the cache. in: query required: true schema: type: string - - *323 + - *320 responses: '200': description: Response content: application/json: - schema: *324 + schema: *321 examples: - default: *325 + default: *322 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -51522,8 +51064,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id parameters: - - *311 - - *312 + - *308 + - *309 - name: cache_id description: The unique identifier of the GitHub Actions cache. in: path @@ -51554,9 +51096,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#get-a-job-for-a-workflow-run parameters: - - *311 - - *312 - - &326 + - *308 + - *309 + - &323 name: job_id description: The unique identifier of the job. in: path @@ -51568,7 +51110,7 @@ paths: description: Response content: application/json: - schema: &354 + schema: &351 title: Job description: Information of a job execution in a workflow run type: object @@ -51915,9 +51457,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run parameters: - - *311 - - *312 - - *326 + - *308 + - *309 + - *323 responses: '302': description: Response @@ -51945,9 +51487,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run parameters: - - *311 - - *312 - - *326 + - *308 + - *309 + - *323 requestBody: required: false content: @@ -51993,8 +51535,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Status response @@ -52044,8 +51586,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -52108,8 +51650,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#list-repository-organization-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -52127,7 +51669,7 @@ paths: type: integer secrets: type: array - items: &356 + items: &353 title: Actions Secret description: Set secrets for GitHub Actions. type: object @@ -52148,7 +51690,7 @@ paths: - created_at - updated_at examples: - default: &357 + default: &354 value: total_count: 2 secrets: @@ -52181,9 +51723,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#list-repository-organization-variables parameters: - - *311 - - *312 - - *327 + - *308 + - *309 + - *324 - *19 responses: '200': @@ -52200,7 +51742,7 @@ paths: type: integer variables: type: array - items: &360 + items: &357 title: Actions Variable type: object properties: @@ -52234,7 +51776,7 @@ paths: - created_at - updated_at examples: - default: &361 + default: &358 value: total_count: 2 variables: @@ -52267,8 +51809,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-github-actions-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52277,11 +51819,11 @@ paths: schema: type: object properties: - enabled: &329 + enabled: &326 type: boolean description: Whether GitHub Actions is enabled on the repository. allowed_actions: *130 - selected_actions_url: *328 + selected_actions_url: *325 sha_pinning_required: *131 required: - enabled @@ -52310,8 +51852,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-github-actions-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -52322,7 +51864,7 @@ paths: schema: type: object properties: - enabled: *329 + enabled: *326 allowed_actions: *130 sha_pinning_required: *131 required: @@ -52354,14 +51896,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &330 + schema: &327 type: object properties: access_level: @@ -52378,7 +51920,7 @@ paths: required: - access_level examples: - default: &331 + default: &328 value: access_level: organization x-github: @@ -52402,15 +51944,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *330 + schema: *327 examples: - default: *331 + default: *328 responses: '204': description: Response @@ -52434,14 +51976,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-artifact-and-log-retention-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *332 + schema: *329 examples: default: value: @@ -52465,8 +52007,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-artifact-and-log-retention-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Empty response for successful settings update @@ -52476,7 +52018,7 @@ paths: required: true content: application/json: - schema: *333 + schema: *330 examples: default: summary: Set retention days @@ -52500,8 +52042,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52509,7 +52051,7 @@ paths: application/json: schema: *132 examples: - default: *334 + default: *331 '404': *6 x-github: enabledForGitHubApps: true @@ -52528,8 +52070,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -52563,14 +52105,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *335 + schema: *332 examples: default: *133 '403': *27 @@ -52592,13 +52134,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *336 + schema: *333 examples: default: *133 responses: @@ -52624,8 +52166,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52652,8 +52194,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -52685,14 +52227,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-default-workflow-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *337 + schema: *334 examples: default: *140 x-github: @@ -52715,8 +52257,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-default-workflow-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Success response @@ -52727,7 +52269,7 @@ paths: required: true content: application/json: - schema: *338 + schema: *335 examples: default: *140 x-github: @@ -52756,8 +52298,8 @@ paths: in: query schema: type: string - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -52801,8 +52343,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52810,9 +52352,9 @@ paths: application/json: schema: type: array - items: *339 + items: *336 examples: - default: *340 + default: *337 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52834,8 +52376,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -52878,7 +52420,7 @@ paths: - no-gpu work_folder: _work responses: - '201': *341 + '201': *338 '404': *6 '422': *7 '409': *50 @@ -52909,8 +52451,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '201': description: Response @@ -52918,7 +52460,7 @@ paths: application/json: schema: *149 examples: - default: *342 + default: *339 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52946,8 +52488,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '201': description: Response @@ -52955,7 +52497,7 @@ paths: application/json: schema: *149 examples: - default: *343 + default: *340 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52977,8 +52519,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: '200': @@ -52987,7 +52529,7 @@ paths: application/json: schema: *147 examples: - default: *344 + default: *341 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -53008,8 +52550,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: '204': @@ -53036,8 +52578,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: '200': *151 @@ -53062,8 +52604,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 requestBody: required: true @@ -53112,8 +52654,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 requestBody: required: true @@ -53163,11 +52705,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: - '200': *345 + '200': *342 '404': *6 x-github: githubCloudOnly: false @@ -53194,10 +52736,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 - - *346 + - *343 responses: '200': *151 '404': *6 @@ -53225,9 +52767,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository parameters: - - *311 - - *312 - - &364 + - *308 + - *309 + - &361 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. @@ -53235,7 +52777,7 @@ paths: required: false schema: type: string - - &365 + - &362 name: branch description: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. @@ -53243,7 +52785,7 @@ paths: required: false schema: type: string - - &366 + - &363 name: event description: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events @@ -53252,7 +52794,7 @@ paths: required: false schema: type: string - - &367 + - &364 name: status description: Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status @@ -53279,7 +52821,7 @@ paths: - pending - *17 - *19 - - &368 + - &365 name: created description: Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." @@ -53288,7 +52830,7 @@ paths: schema: type: string format: date-time - - &347 + - &344 name: exclude_pull_requests description: If `true` pull requests are omitted from the response (empty array). @@ -53297,13 +52839,13 @@ paths: schema: type: boolean default: false - - &369 + - &366 name: check_suite_id description: Returns workflow runs with the `check_suite_id` that you specify. in: query schema: type: integer - - &370 + - &367 name: head_sha description: Only returns workflow runs that are associated with the specified `head_sha`. @@ -53326,7 +52868,7 @@ paths: type: integer workflow_runs: type: array - items: &348 + items: &345 title: Workflow Run description: An invocation of a workflow type: object @@ -53504,7 +53046,7 @@ paths: head_commit: anyOf: - type: 'null' - - &392 + - &389 title: Simple Commit description: A commit. type: object @@ -53619,7 +53161,7 @@ paths: - workflow_url - pull_requests examples: - default: &371 + default: &368 value: total_count: 1 workflow_runs: @@ -53855,24 +53397,24 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run parameters: - - *311 - - *312 - - &349 + - *308 + - *309 + - &346 name: run_id description: The unique identifier of the workflow run. in: path required: true schema: type: integer - - *347 + - *344 responses: '200': description: Response content: application/json: - schema: *348 + schema: *345 examples: - default: &352 + default: &349 value: id: 30433642 name: Build @@ -54113,9 +53655,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#delete-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '204': description: Response @@ -54138,9 +53680,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-the-review-history-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '200': description: Response @@ -54268,9 +53810,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#approve-a-workflow-run-for-a-fork-pull-request parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '201': description: Response @@ -54303,12 +53845,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#list-workflow-run-artifacts parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 - *17 - *19 - - *350 + - *347 responses: '200': description: Response @@ -54324,9 +53866,9 @@ paths: type: integer artifacts: type: array - items: *318 + items: *315 examples: - default: *351 + default: *348 headers: Link: *57 x-github: @@ -54350,25 +53892,25 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run-attempt parameters: - - *311 - - *312 - - *349 - - &353 + - *308 + - *309 + - *346 + - &350 name: attempt_number description: The attempt number of the workflow run. in: path required: true schema: type: integer - - *347 + - *344 responses: '200': description: Response content: application/json: - schema: *348 + schema: *345 examples: - default: *352 + default: *349 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -54391,10 +53933,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt parameters: - - *311 - - *312 - - *349 - - *353 + - *308 + - *309 + - *346 + - *350 - *17 - *19 responses: @@ -54412,9 +53954,9 @@ paths: type: integer jobs: type: array - items: *354 + items: *351 examples: - default: &355 + default: &352 value: total_count: 1 jobs: @@ -54527,10 +54069,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-attempt-logs parameters: - - *311 - - *312 - - *349 - - *353 + - *308 + - *309 + - *346 + - *350 responses: '302': description: Response @@ -54558,9 +54100,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#cancel-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '202': description: Response @@ -54593,9 +54135,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: true content: @@ -54662,9 +54204,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#force-cancel-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '202': description: Response @@ -54697,9 +54239,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 - name: filter description: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all @@ -54729,9 +54271,9 @@ paths: type: integer jobs: type: array - items: *354 + items: *351 examples: - default: *355 + default: *352 headers: Link: *57 x-github: @@ -54756,9 +54298,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-logs parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '302': description: Response @@ -54785,9 +54327,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#delete-workflow-run-logs parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '204': description: Response @@ -54814,9 +54356,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '200': description: Response @@ -54885,7 +54427,7 @@ paths: items: type: object properties: - type: &472 + type: &469 type: string description: The type of reviewer. enum: @@ -54971,9 +54513,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: true content: @@ -55023,7 +54565,7 @@ paths: application/json: schema: type: array - items: &467 + items: &464 title: Deployment description: A request for a specific ref(branch,sha,tag) to be deployed @@ -55135,7 +54677,7 @@ paths: - created_at - updated_at examples: - default: &468 + default: &465 value: - url: https://api.github.com/repos/octocat/example/deployments/1 id: 1 @@ -55191,9 +54733,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#re-run-a-workflow parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: false content: @@ -55238,9 +54780,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: false content: @@ -55294,9 +54836,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-workflow-run-usage parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '200': description: Response @@ -55433,8 +54975,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#list-repository-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -55452,9 +54994,9 @@ paths: type: integer secrets: type: array - items: *356 + items: *353 examples: - default: *357 + default: *354 headers: Link: *57 x-github: @@ -55479,16 +55021,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-a-repository-public-key parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *358 + schema: *355 examples: - default: *359 + default: *356 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -55510,17 +55052,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '200': description: Response content: application/json: - schema: *356 + schema: *353 examples: - default: &485 + default: &482 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -55546,8 +55088,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#create-or-update-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 requestBody: required: true @@ -55605,8 +55147,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#delete-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '204': @@ -55632,9 +55174,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#list-repository-variables parameters: - - *311 - - *312 - - *327 + - *308 + - *309 + - *324 - *19 responses: '200': @@ -55651,9 +55193,9 @@ paths: type: integer variables: type: array - items: *360 + items: *357 examples: - default: *361 + default: *358 headers: Link: *57 x-github: @@ -55676,8 +55218,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#create-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -55729,17 +55271,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#get-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 responses: '200': description: Response content: application/json: - schema: *360 + schema: *357 examples: - default: &486 + default: &483 value: name: USERNAME value: octocat @@ -55765,8 +55307,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#update-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 requestBody: required: true @@ -55809,8 +55351,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#delete-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 responses: '204': @@ -55836,8 +55378,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#list-repository-workflows parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -55855,7 +55397,7 @@ paths: type: integer workflows: type: array - items: &362 + items: &359 title: Workflow description: A GitHub Actions workflow type: object @@ -55973,9 +55515,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#get-a-workflow parameters: - - *311 - - *312 - - &363 + - *308 + - *309 + - &360 name: workflow_id in: path description: The ID of the workflow. You can also pass the workflow file name @@ -55990,7 +55532,7 @@ paths: description: Response content: application/json: - schema: *362 + schema: *359 examples: default: value: @@ -56023,9 +55565,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#disable-a-workflow parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '204': description: Response @@ -56050,9 +55592,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '204': description: Response @@ -56103,9 +55645,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#enable-a-workflow parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '204': description: Response @@ -56132,19 +55674,19 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-workflow parameters: - - *311 - - *312 + - *308 + - *309 + - *360 + - *361 + - *362 - *363 - *364 + - *17 + - *19 - *365 + - *344 - *366 - *367 - - *17 - - *19 - - *368 - - *347 - - *369 - - *370 responses: '200': description: Response @@ -56160,9 +55702,9 @@ paths: type: integer workflow_runs: type: array - items: *348 + items: *345 examples: - default: *371 + default: *368 headers: Link: *57 x-github: @@ -56194,9 +55736,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#get-workflow-usage parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '200': description: Response @@ -56257,8 +55799,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-activities parameters: - - *311 - - *312 + - *308 + - *309 - *51 - *17 - *43 @@ -56426,8 +55968,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#list-assignees parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -56464,8 +56006,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#check-if-a-user-can-be-assigned parameters: - - *311 - - *312 + - *308 + - *309 - name: assignee in: path required: true @@ -56501,8 +56043,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/attestations#create-an-attestation parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -56614,8 +56156,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/attestations#list-attestations parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *43 - *44 @@ -56672,7 +56214,7 @@ paths: initiator: type: string examples: - default: *372 + default: *369 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -56692,8 +56234,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#get-all-autolinks-of-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -56701,7 +56243,7 @@ paths: application/json: schema: type: array - items: &373 + items: &370 title: Autolink reference description: An autolink reference. type: object @@ -56760,8 +56302,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#create-an-autolink-reference-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -56800,9 +56342,9 @@ paths: description: response content: application/json: - schema: *373 + schema: *370 examples: - default: &374 + default: &371 value: id: 1 key_prefix: TICKET- @@ -56833,9 +56375,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#get-an-autolink-reference-of-a-repository parameters: - - *311 - - *312 - - &375 + - *308 + - *309 + - &372 name: autolink_id description: The unique identifier of the autolink. in: path @@ -56847,9 +56389,9 @@ paths: description: Response content: application/json: - schema: *373 + schema: *370 examples: - default: *374 + default: *371 '404': *6 x-github: githubCloudOnly: false @@ -56869,9 +56411,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#delete-an-autolink-reference-from-a-repository parameters: - - *311 - - *312 - - *375 + - *308 + - *309 + - *372 responses: '204': description: Response @@ -56895,8 +56437,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response if Dependabot is enabled @@ -56946,8 +56488,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -56968,8 +56510,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -56989,8 +56531,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#list-branches parameters: - - *311 - - *312 + - *308 + - *309 - name: protected description: Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. @@ -57028,7 +56570,7 @@ paths: - url protected: type: boolean - protection: &377 + protection: &374 title: Branch Protection description: Branch Protection type: object @@ -57071,7 +56613,7 @@ paths: required: - contexts - checks - enforce_admins: &380 + enforce_admins: &377 title: Protected Branch Admin Enforced description: Protected Branch Admin Enforced type: object @@ -57088,7 +56630,7 @@ paths: required: - url - enabled - required_pull_request_reviews: &382 + required_pull_request_reviews: &379 title: Protected Branch Pull Request Review description: Protected Branch Pull Request Review type: object @@ -57172,7 +56714,7 @@ paths: required: - dismiss_stale_reviews - require_code_owner_reviews - restrictions: &379 + restrictions: &376 title: Branch Restriction Policy description: Branch Restriction Policy type: object @@ -57465,9 +57007,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#get-a-branch parameters: - - *311 - - *312 - - &378 + - *308 + - *309 + - &375 name: branch description: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). @@ -57481,14 +57023,14 @@ paths: description: Response content: application/json: - schema: &388 + schema: &385 title: Branch With Protection description: Branch With Protection type: object properties: name: type: string - commit: &442 + commit: &439 title: Commit description: Commit type: object @@ -57527,7 +57069,7 @@ paths: author: anyOf: - type: 'null' - - &376 + - &373 title: Git User description: Metaproperties for Git author/committer information. @@ -57549,7 +57091,7 @@ paths: committer: anyOf: - type: 'null' - - *376 + - *373 message: type: string examples: @@ -57573,7 +57115,7 @@ paths: required: - sha - url - verification: &492 + verification: &489 title: Verification type: object properties: @@ -57653,7 +57195,7 @@ paths: type: integer files: type: array - items: &453 + items: &450 title: Diff Entry description: Diff Entry type: object @@ -57749,7 +57291,7 @@ paths: - self protected: type: boolean - protection: *377 + protection: *374 protection_url: type: string format: uri @@ -57858,7 +57400,7 @@ paths: contexts: [] checks: [] protection_url: https://api.github.com/repos/octocat/Hello-World/branches/main/protection - '301': *315 + '301': *312 '404': *6 x-github: githubCloudOnly: false @@ -57880,15 +57422,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *377 + schema: *374 examples: default: value: @@ -58082,9 +57624,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#update-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -58344,7 +57886,7 @@ paths: url: type: string format: uri - required_status_checks: &385 + required_status_checks: &382 title: Status Check Policy description: Status Check Policy type: object @@ -58503,7 +58045,7 @@ paths: additionalProperties: false required: - enabled - restrictions: *379 + restrictions: *376 required_conversation_resolution: type: object properties: @@ -58615,9 +58157,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -58642,17 +58184,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-admin-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: &381 + default: &378 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins enabled: true @@ -58674,17 +58216,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-admin-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: *381 + default: *378 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -58703,9 +58245,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-admin-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -58730,17 +58272,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-pull-request-review-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *382 + schema: *379 examples: - default: &383 + default: &380 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews dismissal_restrictions: @@ -58836,9 +58378,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#update-pull-request-review-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -58936,9 +58478,9 @@ paths: description: Response content: application/json: - schema: *382 + schema: *379 examples: - default: *383 + default: *380 '422': *15 x-github: githubCloudOnly: false @@ -58959,9 +58501,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-pull-request-review-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -58988,17 +58530,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-commit-signature-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: &384 + default: &381 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures enabled: true @@ -59021,17 +58563,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#create-commit-signature-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: *384 + default: *381 '404': *6 x-github: githubCloudOnly: false @@ -59051,9 +58593,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-commit-signature-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -59078,17 +58620,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-status-checks-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *385 + schema: *382 examples: - default: &386 + default: &383 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks strict: true @@ -59114,9 +58656,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#update-status-check-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59168,9 +58710,9 @@ paths: description: Response content: application/json: - schema: *385 + schema: *382 examples: - default: *386 + default: *383 '404': *6 '422': *15 x-github: @@ -59192,9 +58734,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-status-check-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -59218,9 +58760,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-all-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -59254,9 +58796,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59323,9 +58865,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59389,9 +58931,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: content: application/json: @@ -59457,15 +58999,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *379 + schema: *376 examples: default: value: @@ -59556,9 +59098,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -59581,9 +59123,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -59593,7 +59135,7 @@ paths: type: array items: *5 examples: - default: &387 + default: &384 value: - id: 1 slug: octoapp @@ -59650,9 +59192,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-app-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -59686,7 +59228,7 @@ paths: type: array items: *5 examples: - default: *387 + default: *384 '422': *15 x-github: githubCloudOnly: false @@ -59707,9 +59249,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-app-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -59743,7 +59285,7 @@ paths: type: array items: *5 examples: - default: *387 + default: *384 '422': *15 x-github: githubCloudOnly: false @@ -59764,9 +59306,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-app-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -59800,7 +59342,7 @@ paths: type: array items: *5 examples: - default: *387 + default: *384 '422': *15 x-github: githubCloudOnly: false @@ -59822,9 +59364,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -59854,9 +59396,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-team-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59915,9 +59457,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-team-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59976,9 +59518,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-team-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: content: application/json: @@ -60037,9 +59579,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-users-with-access-to-the-protected-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -60073,9 +59615,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-user-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60133,9 +59675,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-user-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60193,9 +59735,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-user-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60255,9 +59797,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#rename-a-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60279,7 +59821,7 @@ paths: description: Response content: application/json: - schema: *388 + schema: *385 examples: default: value: @@ -60395,8 +59937,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#create-a-check-run parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -60675,7 +60217,7 @@ paths: description: Response content: application/json: - schema: &389 + schema: &386 title: CheckRun description: A check performed on the code of a given code change type: object @@ -60811,7 +60353,7 @@ paths: check. type: array items: *75 - deployment: &700 + deployment: &695 title: Deployment description: A deployment created as the result of an Actions check run from a workflow that references an environment @@ -61098,9 +60640,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#get-a-check-run parameters: - - *311 - - *312 - - &390 + - *308 + - *309 + - &387 name: check_run_id description: The unique identifier of the check run. in: path @@ -61112,9 +60654,9 @@ paths: description: Response content: application/json: - schema: *389 + schema: *386 examples: - default: &391 + default: &388 value: id: 4 head_sha: ce587453ced02b1526dfb4cb910479d431683101 @@ -61214,9 +60756,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#update-a-check-run parameters: - - *311 - - *312 - - *390 + - *308 + - *309 + - *387 requestBody: required: true content: @@ -61456,9 +60998,9 @@ paths: description: Response content: application/json: - schema: *389 + schema: *386 examples: - default: *391 + default: *388 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -61478,9 +61020,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#list-check-run-annotations parameters: - - *311 - - *312 - - *390 + - *308 + - *309 + - *387 - *17 - *19 responses: @@ -61590,9 +61132,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#rerequest-a-check-run parameters: - - *311 - - *312 - - *390 + - *308 + - *309 + - *387 responses: '201': description: Response @@ -61636,8 +61178,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#create-a-check-suite parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -61659,7 +61201,7 @@ paths: description: Response when the suite already exists content: application/json: - schema: &393 + schema: &390 title: CheckSuite description: A suite of checks performed on the code of a given code change @@ -61757,7 +61299,7 @@ paths: - string - 'null' format: date-time - head_commit: *392 + head_commit: *389 latest_check_runs_count: type: integer check_runs_url: @@ -61785,7 +61327,7 @@ paths: - check_runs_url - pull_requests examples: - default: &394 + default: &391 value: id: 5 node_id: MDEwOkNoZWNrU3VpdGU1 @@ -62076,9 +61618,9 @@ paths: description: Response when the suite was created content: application/json: - schema: *393 + schema: *390 examples: - default: *394 + default: *391 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -62097,8 +61639,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -62407,9 +61949,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#get-a-check-suite parameters: - - *311 - - *312 - - &395 + - *308 + - *309 + - &392 name: check_suite_id description: The unique identifier of the check suite. in: path @@ -62421,9 +61963,9 @@ paths: description: Response content: application/json: - schema: *393 + schema: *390 examples: - default: *394 + default: *391 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -62446,17 +61988,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#list-check-runs-in-a-check-suite parameters: - - *311 - - *312 - - *395 - - &448 + - *308 + - *309 + - *392 + - &445 name: check_name description: Returns check runs with the specified `name`. in: query required: false schema: type: string - - &449 + - &446 name: status description: Returns check runs with the specified `status`. in: query @@ -62495,9 +62037,9 @@ paths: type: integer check_runs: type: array - items: *389 + items: *386 examples: - default: &450 + default: &447 value: total_count: 1 check_runs: @@ -62599,9 +62141,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#rerequest-a-check-suite parameters: - - *311 - - *312 - - *395 + - *308 + - *309 + - *392 responses: '201': description: Response @@ -62634,21 +62176,21 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository parameters: - - *311 - - *312 - - *396 - - *397 + - *308 + - *309 + - *393 + - *394 - *19 - *17 - - &414 + - &411 name: ref description: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. in: query required: false - schema: *398 - - &415 + schema: *395 + - &412 name: pr description: The number of the pull request for the results you want to list. in: query @@ -62673,13 +62215,13 @@ paths: be returned. in: query required: false - schema: *399 + schema: *396 - name: severity description: If specified, only code scanning alerts with this severity will be returned. in: query required: false - schema: *400 + schema: *397 - name: assignees description: | Filter alerts by assignees. Provide a comma-separated list of user handles (e.g., `octocat` or `octocat,hubot`). @@ -62703,7 +62245,7 @@ paths: updated_at: *165 url: *166 html_url: *167 - instances_url: *401 + instances_url: *398 state: *172 fixed_at: *168 dismissed_by: @@ -62711,11 +62253,11 @@ paths: - type: 'null' - *4 dismissed_at: *169 - dismissed_reason: *402 - dismissed_comment: *403 - rule: *404 - tool: *405 - most_recent_instance: *406 + dismissed_reason: *399 + dismissed_comment: *400 + rule: *401 + tool: *402 + most_recent_instance: *403 dismissal_approved_by: anyOf: - type: 'null' @@ -62838,7 +62380,7 @@ paths: classifications: [] instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances '304': *35 - '403': &407 + '403': &404 description: Response if GitHub Advanced Security is not enabled for this repository content: @@ -62865,9 +62407,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-alert parameters: - - *311 - - *312 - - &408 + - *308 + - *309 + - &405 name: alert_number in: path description: The number that identifies an alert. You can find this at the @@ -62881,7 +62423,7 @@ paths: description: Response content: application/json: - schema: &409 + schema: &406 type: object properties: number: *163 @@ -62889,7 +62431,7 @@ paths: updated_at: *165 url: *166 html_url: *167 - instances_url: *401 + instances_url: *398 state: *172 fixed_at: *168 dismissed_by: @@ -62897,8 +62439,8 @@ paths: - type: 'null' - *4 dismissed_at: *169 - dismissed_reason: *402 - dismissed_comment: *403 + dismissed_reason: *399 + dismissed_comment: *400 rule: type: object properties: @@ -62960,8 +62502,8 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: *405 - most_recent_instance: *406 + tool: *402 + most_recent_instance: *403 dismissal_approved_by: anyOf: - type: 'null' @@ -63057,7 +62599,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '304': *35 - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63077,9 +62619,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 requestBody: required: true content: @@ -63094,8 +62636,8 @@ paths: enum: - open - dismissed - dismissed_reason: *402 - dismissed_comment: *403 + dismissed_reason: *399 + dismissed_comment: *400 create_request: type: boolean description: If `true`, attempt to create an alert dismissal request. @@ -63123,7 +62665,7 @@ paths: description: Response content: application/json: - schema: *409 + schema: *406 examples: default: value: @@ -63199,7 +62741,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '400': *14 - '403': &413 + '403': &410 description: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository content: @@ -63226,15 +62768,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 responses: '200': description: Response content: application/json: - schema: &410 + schema: &407 type: object properties: status: @@ -63261,13 +62803,13 @@ paths: - description - started_at examples: - default: &411 + default: &408 value: status: success description: This fixes an XSS vulnerability by escaping the user input. started_at: '2024-02-14T12:29:18Z' - '400': &412 + '400': &409 description: Bad Request content: application/json: @@ -63278,7 +62820,7 @@ paths: message: The alert_number is not valid documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert status: '400' - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63303,29 +62845,29 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 responses: '200': description: OK content: application/json: - schema: *410 + schema: *407 examples: - default: *411 + default: *408 '202': description: Accepted content: application/json: - schema: *410 + schema: *407 examples: default: value: status: pending description: started_at: '2024-02-14T12:29:18Z' - '400': *412 + '400': *409 '403': description: Response if the repository is archived, if GitHub Advanced Security is not enabled for this repository or if rate limit is exceeded @@ -63357,9 +62899,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 requestBody: required: false content: @@ -63405,8 +62947,8 @@ paths: value: target_ref: refs/heads/main sha: 178f4f6090b3fccad4a65b3e83d076a622d59652 - '400': *412 - '403': *413 + '400': *409 + '403': *410 '404': *6 '422': description: Unprocessable Entity @@ -63430,13 +62972,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 - *19 - *17 - - *414 - - *415 + - *411 + - *412 responses: '200': description: Response @@ -63447,10 +62989,10 @@ paths: items: type: object properties: - ref: *398 - analysis_key: *416 - environment: *417 - category: *418 + ref: *395 + analysis_key: *413 + environment: *414 + category: *415 state: type: - string @@ -63467,7 +63009,7 @@ paths: properties: text: type: string - location: *419 + location: *416 html_url: type: string classifications: @@ -63475,7 +63017,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: *420 + items: *417 examples: default: value: @@ -63514,7 +63056,7 @@ paths: end_column: 50 classifications: - source - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63548,25 +63090,25 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository parameters: - - *311 - - *312 - - *396 - - *397 + - *308 + - *309 + - *393 + - *394 - *19 - *17 - - *415 + - *412 - name: ref in: query description: The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. required: false - schema: *398 + schema: *395 - name: sarif_id in: query description: Filter analyses belonging to the same SARIF upload. required: false - schema: &421 + schema: &418 type: string description: An identifier for the upload. examples: @@ -63588,23 +63130,23 @@ paths: application/json: schema: type: array - items: &422 + items: &419 type: object properties: - ref: *398 - commit_sha: &430 + ref: *395 + commit_sha: &427 description: The SHA of the commit to which the analysis you are uploading relates. type: string minLength: 40 maxLength: 40 pattern: "^[0-9a-fA-F]+$" - analysis_key: *416 + analysis_key: *413 environment: type: string description: Identifies the variable values associated with the environment in which this analysis was performed. - category: *418 + category: *415 error: type: string examples: @@ -63629,8 +63171,8 @@ paths: description: The REST API URL of the analysis resource. format: uri readOnly: true - sarif_id: *421 - tool: *405 + sarif_id: *418 + tool: *402 deletable: type: boolean warning: @@ -63692,7 +63234,7 @@ paths: version: 1.2.0 deletable: true warning: '' - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63728,8 +63270,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -63742,7 +63284,7 @@ paths: description: Response content: application/json: - schema: *422 + schema: *419 examples: response: summary: application/json response @@ -63796,7 +63338,7 @@ paths: properties: - github/alertNumber: 2 - github/alertUrl: https://api.github.com/repos/monalisa/monalisa/code-scanning/alerts/2 - '403': *407 + '403': *404 '404': *6 '422': description: Response if analysis could not be processed @@ -63883,8 +63425,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -63940,7 +63482,7 @@ paths: next_analysis_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41 confirm_delete_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41?confirm_delete '400': *14 - '403': *413 + '403': *410 '404': *6 '503': *106 x-github: @@ -63962,8 +63504,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -63971,7 +63513,7 @@ paths: application/json: schema: type: array - items: &423 + items: &420 title: CodeQL Database description: A CodeQL database. type: object @@ -64083,7 +63625,7 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/ruby commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -64112,8 +63654,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: language in: path description: The language of the CodeQL database. @@ -64125,7 +63667,7 @@ paths: description: Response content: application/json: - schema: *423 + schema: *420 examples: default: value: @@ -64157,9 +63699,9 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '302': &455 + '302': &452 description: Found - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -64181,8 +63723,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#delete-a-codeql-database parameters: - - *311 - - *312 + - *308 + - *309 - name: language in: path description: The language of the CodeQL database. @@ -64192,7 +63734,7 @@ paths: responses: '204': description: Response - '403': *413 + '403': *410 '404': *6 '503': *106 x-github: @@ -64220,8 +63762,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#create-a-codeql-variant-analysis parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -64230,7 +63772,7 @@ paths: type: object additionalProperties: false properties: - language: &424 + language: &421 type: string description: The language targeted by the CodeQL query enum: @@ -64310,7 +63852,7 @@ paths: description: Variant analysis submitted for processing content: application/json: - schema: &428 + schema: &425 title: Variant Analysis description: A run of a CodeQL query against one or more repositories. type: object @@ -64320,7 +63862,7 @@ paths: description: The ID of the variant analysis. controller_repo: *56 actor: *4 - query_language: *424 + query_language: *421 query_pack_url: type: string description: The download url for the query pack. @@ -64368,7 +63910,7 @@ paths: items: type: object properties: - repository: &425 + repository: &422 title: Repository Identifier description: Repository Identifier type: object @@ -64410,7 +63952,7 @@ paths: - private - stargazers_count - updated_at - analysis_status: &429 + analysis_status: &426 type: string description: The new status of the CodeQL variant analysis repository task. @@ -64442,7 +63984,7 @@ paths: from processing. This information is only available to the user that initiated the variant analysis. properties: - access_mismatch_repos: &426 + access_mismatch_repos: &423 type: object properties: repository_count: @@ -64457,7 +63999,7 @@ paths: This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. - items: *425 + items: *422 required: - repository_count - repositories @@ -64480,8 +64022,8 @@ paths: required: - repository_count - repository_full_names - no_codeql_db_repos: *426 - over_limit_repos: *426 + no_codeql_db_repos: *423 + over_limit_repos: *423 required: - access_mismatch_repos - not_found_repos @@ -64497,7 +64039,7 @@ paths: examples: repositories_parameter: summary: Response for a successful variant analysis submission - value: &427 + value: &424 summary: Default response value: id: 1 @@ -64643,10 +64185,10 @@ paths: private: false repository_owners: summary: Response for a successful variant analysis submission - value: *427 + value: *424 repository_lists: summary: Response for a successful variant analysis submission - value: *427 + value: *424 '404': *6 '422': description: Unable to process variant analysis submission @@ -64674,8 +64216,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-summary-of-a-codeql-variant-analysis parameters: - - *311 - - *312 + - *308 + - *309 - name: codeql_variant_analysis_id in: path description: The unique identifier of the variant analysis. @@ -64687,9 +64229,9 @@ paths: description: Response content: application/json: - schema: *428 + schema: *425 examples: - default: *427 + default: *424 '404': *6 '503': *106 x-github: @@ -64712,7 +64254,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-analysis-status-of-a-repository-in-a-codeql-variant-analysis parameters: - - *311 + - *308 - name: repo in: path description: The name of the controller repository. @@ -64747,7 +64289,7 @@ paths: type: object properties: repository: *56 - analysis_status: *429 + analysis_status: *426 artifact_size_in_bytes: type: integer description: The size of the artifact. This is only available @@ -64872,8 +64414,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -64966,7 +64508,7 @@ paths: threat_model: remote updated_at: '2023-01-19T11:21:34Z' schedule: weekly - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -64987,8 +64529,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -65082,7 +64624,7 @@ paths: value: run_id: 42 run_url: https://api.github.com/repos/octoorg/octocat/actions/runs/42 - '403': *413 + '403': *410 '404': *6 '409': description: Response if there is already a validation run in progress with @@ -65153,8 +64695,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -65162,7 +64704,7 @@ paths: schema: type: object properties: - commit_sha: *430 + commit_sha: *427 ref: type: string description: |- @@ -65222,7 +64764,7 @@ paths: schema: type: object properties: - id: *421 + id: *418 url: type: string description: The REST API URL for checking the status of the upload. @@ -65236,7 +64778,7 @@ paths: url: https://api.github.com/repos/octocat/hello-world/code-scanning/sarifs/47177e22-5596-11eb-80a1-c1e54ef945c6 '400': description: Bad Request if the sarif field is invalid - '403': *413 + '403': *410 '404': *6 '413': description: Payload Too Large if the sarif field is too large @@ -65259,8 +64801,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload parameters: - - *311 - - *312 + - *308 + - *309 - name: sarif_id description: The SARIF ID obtained after uploading. in: path @@ -65308,7 +64850,7 @@ paths: value: processing_status: complete analyses_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses?sarif_id=47177e22-5596-11eb-80a1-c1e54ef945c6 - '403': *407 + '403': *404 '404': description: Not Found if the sarif id does not match any upload '503': *106 @@ -65333,8 +64875,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-security/configurations#get-the-code-security-configuration-associated-with-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -65415,8 +64957,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-codeowners-errors parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: 'A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository''s default branch @@ -65544,8 +65086,8 @@ paths: parameters: - *17 - *19 - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -65859,8 +65401,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#create-a-codespace-in-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -65926,7 +65468,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -65934,7 +65476,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '400': *14 '401': *23 '403': *27 @@ -65963,8 +65505,8 @@ paths: parameters: - *17 - *19 - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -66028,8 +65570,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/machines#list-available-machine-types-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: location description: The location to check for available machines. Assigned by IP if not provided. @@ -66066,9 +65608,9 @@ paths: type: integer machines: type: array - items: *432 + items: *429 examples: - default: &646 + default: &641 value: total_count: 2 machines: @@ -66108,8 +65650,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#get-default-attributes-for-a-codespace parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked. @@ -66196,8 +65738,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of `ref` will typically @@ -66266,8 +65808,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#list-repository-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -66285,7 +65827,7 @@ paths: type: integer secrets: type: array - items: &436 + items: &433 title: Codespaces Secret description: Set repository secrets for GitHub Codespaces. type: object @@ -66306,7 +65848,7 @@ paths: - created_at - updated_at examples: - default: *433 + default: *430 headers: Link: *57 x-github: @@ -66329,16 +65871,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *434 + schema: *431 examples: - default: *435 + default: *432 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -66358,17 +65900,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '200': description: Response content: application/json: - schema: *436 + schema: *433 examples: - default: *437 + default: *434 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -66388,8 +65930,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#create-or-update-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 requestBody: required: true @@ -66442,8 +65984,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#delete-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '204': @@ -66472,8 +66014,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#list-repository-collaborators parameters: - - *311 - - *312 + - *308 + - *309 - name: affiliation description: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` @@ -66511,7 +66053,7 @@ paths: application/json: schema: type: array - items: &438 + items: &435 title: Collaborator description: Collaborator type: object @@ -66704,8 +66246,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator parameters: - - *311 - - *312 + - *308 + - *309 - *62 responses: '204': @@ -66752,8 +66294,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#add-a-repository-collaborator parameters: - - *311 - - *312 + - *308 + - *309 - *62 requestBody: required: false @@ -66780,7 +66322,7 @@ paths: description: Response when a new invitation is created content: application/json: - schema: &505 + schema: &502 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -67008,8 +66550,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#remove-a-repository-collaborator parameters: - - *311 - - *312 + - *308 + - *309 - *62 responses: '204': @@ -67041,8 +66583,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#get-repository-permissions-for-a-user parameters: - - *311 - - *312 + - *308 + - *309 - *62 responses: '200': @@ -67063,7 +66605,7 @@ paths: user: anyOf: - type: 'null' - - *438 + - *435 required: - permission - role_name @@ -67117,8 +66659,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#list-commit-comments-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -67128,7 +66670,7 @@ paths: application/json: schema: type: array - items: &439 + items: &436 title: Commit Comment description: Commit Comment type: object @@ -67186,7 +66728,7 @@ paths: - created_at - updated_at examples: - default: &444 + default: &441 value: - html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -67245,17 +66787,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#get-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '200': description: Response content: application/json: - schema: *439 + schema: *436 examples: - default: &445 + default: &442 value: html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -67312,8 +66854,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#update-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -67336,7 +66878,7 @@ paths: description: Response content: application/json: - schema: *439 + schema: *436 examples: default: value: @@ -67387,8 +66929,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#delete-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '204': @@ -67410,8 +66952,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). @@ -67438,7 +66980,7 @@ paths: application/json: schema: type: array - items: &440 + items: &437 title: Reaction description: Reactions to conversations provide a way to help people express their feelings more simply and effectively. @@ -67482,7 +67024,7 @@ paths: - content - created_at examples: - default: &509 + default: &506 value: - id: 1 node_id: MDg6UmVhY3Rpb24x @@ -67527,8 +67069,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -67561,9 +67103,9 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: &441 + default: &438 value: id: 1 node_id: MDg6UmVhY3Rpb24x @@ -67592,9 +67134,9 @@ paths: description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -67616,10 +67158,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-a-commit-comment-reaction parameters: - - *311 - - *312 + - *308 + - *309 - *86 - - &510 + - &507 name: reaction_id description: The unique identifier of the reaction. in: path @@ -67674,8 +67216,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#list-commits parameters: - - *311 - - *312 + - *308 + - *309 - name: sha description: 'SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`).' @@ -67731,9 +67273,9 @@ paths: application/json: schema: type: array - items: *442 + items: *439 examples: - default: &556 + default: &553 value: - url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -67827,9 +67369,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#list-branches-for-head-commit parameters: - - *311 - - *312 - - &443 + - *308 + - *309 + - &440 name: commit_sha description: The SHA of the commit. in: path @@ -67901,9 +67443,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#list-commit-comments parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 - *17 - *19 responses: @@ -67913,9 +67455,9 @@ paths: application/json: schema: type: array - items: *439 + items: *436 examples: - default: *444 + default: *441 headers: Link: *57 x-github: @@ -67943,9 +67485,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#create-a-commit-comment parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 requestBody: required: true content: @@ -67980,9 +67522,9 @@ paths: description: Response content: application/json: - schema: *439 + schema: *436 examples: - default: *445 + default: *442 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -68010,9 +67552,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 - *17 - *19 responses: @@ -68022,9 +67564,9 @@ paths: application/json: schema: type: array - items: *446 + items: *443 examples: - default: &548 + default: &545 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -68561,11 +68103,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#get-a-commit parameters: - - *311 - - *312 + - *308 + - *309 - *19 - *17 - - &447 + - &444 name: ref description: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" @@ -68580,9 +68122,9 @@ paths: description: Response content: application/json: - schema: *442 + schema: *439 examples: - default: &534 + default: &531 value: url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -68695,11 +68237,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#list-check-runs-for-a-git-reference parameters: - - *311 - - *312 - - *447 - - *448 - - *449 + - *308 + - *309 + - *444 + - *445 + - *446 - name: filter description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. @@ -68733,9 +68275,9 @@ paths: type: integer check_runs: type: array - items: *389 + items: *386 examples: - default: *450 + default: *447 headers: Link: *57 x-github: @@ -68760,9 +68302,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#list-check-suites-for-a-git-reference parameters: - - *311 - - *312 - - *447 + - *308 + - *309 + - *444 - name: app_id description: Filters check suites by GitHub App `id`. in: query @@ -68770,7 +68312,7 @@ paths: schema: type: integer example: 1 - - *448 + - *445 - *17 - *19 responses: @@ -68788,7 +68330,7 @@ paths: type: integer check_suites: type: array - items: *393 + items: *390 examples: default: value: @@ -68988,9 +68530,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/statuses#get-the-combined-status-for-a-specific-reference parameters: - - *311 - - *312 - - *447 + - *308 + - *309 + - *444 - *17 - *19 responses: @@ -69192,9 +68734,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/statuses#list-commit-statuses-for-a-reference parameters: - - *311 - - *312 - - *447 + - *308 + - *309 + - *444 - *17 - *19 responses: @@ -69204,7 +68746,7 @@ paths: application/json: schema: type: array - items: &621 + items: &618 title: Status description: The status of a commit. type: object @@ -69285,7 +68827,7 @@ paths: site_admin: false headers: Link: *57 - '301': *315 + '301': *312 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -69313,8 +68855,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/community#get-community-profile-metrics parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -69347,11 +68889,11 @@ paths: code_of_conduct: anyOf: - type: 'null' - - *451 + - *448 code_of_conduct_file: anyOf: - type: 'null' - - &452 + - &449 title: Community Health File type: object properties: @@ -69371,19 +68913,19 @@ paths: contributing: anyOf: - type: 'null' - - *452 + - *449 readme: anyOf: - type: 'null' - - *452 + - *449 issue_template: anyOf: - type: 'null' - - *452 + - *449 pull_request_template: anyOf: - type: 'null' - - *452 + - *449 required: - code_of_conduct - code_of_conduct_file @@ -69512,8 +69054,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#compare-two-commits parameters: - - *311 - - *312 + - *308 + - *309 - *19 - *17 - name: basehead @@ -69561,8 +69103,8 @@ paths: format: uri examples: - https://github.com/octocat/Hello-World/compare/master...topic.patch - base_commit: *442 - merge_base_commit: *442 + base_commit: *439 + merge_base_commit: *439 status: type: string enum: @@ -69586,10 +69128,10 @@ paths: - 6 commits: type: array - items: *442 + items: *439 files: type: array - items: *453 + items: *450 required: - url - html_url @@ -69875,8 +69417,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#get-repository-content parameters: - - *311 - - *312 + - *308 + - *309 - name: path description: path parameter in: path @@ -70029,7 +69571,7 @@ paths: - type - url examples: - response-if-content-is-a-file: &454 + response-if-content-is-a-file: &451 summary: Response if content is a file value: type: file @@ -70166,7 +69708,7 @@ paths: - size - type - url - - &561 + - &558 title: Content File description: Content File type: object @@ -70384,7 +69926,7 @@ paths: - url - submodule_git_url examples: - response-if-content-is-a-file: *454 + response-if-content-is-a-file: *451 response-if-content-is-a-directory: summary: Response if content is a directory and the application/json media type is requested @@ -70453,7 +69995,7 @@ paths: html: https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9 '404': *6 '403': *27 - '302': *455 + '302': *452 '304': *35 x-github: githubCloudOnly: false @@ -70476,8 +70018,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents parameters: - - *311 - - *312 + - *308 + - *309 - name: path description: path parameter in: path @@ -70572,7 +70114,7 @@ paths: description: Response content: application/json: - schema: &456 + schema: &453 title: File Commit description: File Commit type: object @@ -70728,7 +70270,7 @@ paths: description: Response content: application/json: - schema: *456 + schema: *453 examples: example-for-creating-a-file: value: @@ -70782,7 +70324,7 @@ paths: schema: oneOf: - *3 - - &487 + - &484 description: Repository rule violation was detected type: object properties: @@ -70803,7 +70345,7 @@ paths: items: type: object properties: - placeholder_id: &613 + placeholder_id: &610 description: The ID of the push protection bypass placeholder. This value is returned on any push protected routes. @@ -70835,8 +70377,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#delete-a-file parameters: - - *311 - - *312 + - *308 + - *309 - name: path description: path parameter in: path @@ -70897,7 +70439,7 @@ paths: description: Response content: application/json: - schema: *456 + schema: *453 examples: default: value: @@ -70952,8 +70494,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-contributors parameters: - - *311 - - *312 + - *308 + - *309 - name: anon description: Set to `1` or `true` to include anonymous contributors in results. in: query @@ -71077,8 +70619,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *181 - *182 - *183 @@ -71090,7 +70632,7 @@ paths: schema: type: string - *185 - - *457 + - *454 - *186 - *187 - *51 @@ -71111,7 +70653,7 @@ paths: application/json: schema: type: array - items: &461 + items: &458 type: object description: A Dependabot alert. properties: @@ -71161,7 +70703,7 @@ paths: - direct - transitive - - security_advisory: *458 + security_advisory: *455 security_vulnerability: *55 url: *166 html_url: *167 @@ -71192,8 +70734,8 @@ paths: dismissal. maxLength: 280 fixed_at: *168 - auto_dismissed_at: *459 - dismissal_request: *460 + auto_dismissed_at: *456 + dismissal_request: *457 required: - number - state @@ -71423,9 +70965,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/alerts#get-a-dependabot-alert parameters: - - *311 - - *312 - - &462 + - *308 + - *309 + - &459 name: alert_number in: path description: |- @@ -71440,7 +70982,7 @@ paths: description: Response content: application/json: - schema: *461 + schema: *458 examples: default: value: @@ -71553,9 +71095,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/alerts#update-a-dependabot-alert parameters: - - *311 - - *312 - - *462 + - *308 + - *309 + - *459 requestBody: required: true content: @@ -71600,7 +71142,7 @@ paths: description: Response content: application/json: - schema: *461 + schema: *458 examples: default: value: @@ -71729,8 +71271,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#list-repository-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -71748,7 +71290,7 @@ paths: type: integer secrets: type: array - items: &465 + items: &462 title: Dependabot Secret description: Set secrets for Dependabot. type: object @@ -71802,16 +71344,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *463 + schema: *460 examples: - default: *464 + default: *461 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -71831,15 +71373,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#get-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '200': description: Response content: application/json: - schema: *465 + schema: *462 examples: default: value: @@ -71865,8 +71407,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#create-or-update-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 requestBody: required: true @@ -71919,8 +71461,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#delete-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '204': @@ -71943,8 +71485,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependency-graph/dependency-review#get-a-diff-of-the-dependencies-between-commits parameters: - - *311 - - *312 + - *308 + - *309 - name: basehead description: The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their @@ -72118,8 +71660,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependency-graph/sboms#export-a-software-bill-of-materials-sbom-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -72379,8 +71921,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -72463,7 +72005,7 @@ paths: - version - url additionalProperties: false - metadata: &466 + metadata: &463 title: metadata description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -72502,7 +72044,7 @@ paths: examples: - "/src/build/package-lock.json" additionalProperties: false - metadata: *466 + metadata: *463 resolved: type: object description: A collection of resolved package dependencies. @@ -72516,7 +72058,7 @@ paths: pattern: "^pkg" examples: - pkg:/npm/%40actions/http-client@1.0.11 - metadata: *466 + metadata: *463 relationship: type: string description: A notation of whether a dependency is requested @@ -72649,8 +72191,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#list-deployments parameters: - - *311 - - *312 + - *308 + - *309 - name: sha description: The SHA recorded at creation time. in: query @@ -72691,9 +72233,9 @@ paths: application/json: schema: type: array - items: *467 + items: *464 examples: - default: *468 + default: *465 headers: Link: *57 x-github: @@ -72759,8 +72301,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#create-a-deployment parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -72842,7 +72384,7 @@ paths: description: Response content: application/json: - schema: *467 + schema: *464 examples: simple-example: summary: Simple example @@ -72915,9 +72457,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#get-a-deployment parameters: - - *311 - - *312 - - &469 + - *308 + - *309 + - &466 name: deployment_id description: deployment_id parameter in: path @@ -72929,7 +72471,7 @@ paths: description: Response content: application/json: - schema: *467 + schema: *464 examples: default: value: @@ -72994,9 +72536,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#delete-a-deployment parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 responses: '204': description: Response @@ -73018,9 +72560,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/statuses#list-deployment-statuses parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 - *17 - *19 responses: @@ -73030,7 +72572,7 @@ paths: application/json: schema: type: array - items: &470 + items: &467 title: Deployment Status description: The status of a deployment. type: object @@ -73194,9 +72736,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/statuses#create-a-deployment-status parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 requestBody: required: true content: @@ -73271,9 +72813,9 @@ paths: description: Response content: application/json: - schema: *470 + schema: *467 examples: - default: &471 + default: &468 value: url: https://api.github.com/repos/octocat/example/deployments/42/statuses/1 id: 1 @@ -73329,9 +72871,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/statuses#get-a-deployment-status parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 - name: status_id in: path required: true @@ -73342,9 +72884,9 @@ paths: description: Response content: application/json: - schema: *470 + schema: *467 examples: - default: *471 + default: *468 '404': *6 x-github: githubCloudOnly: false @@ -73369,8 +72911,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -73427,8 +72969,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#list-environments parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -73446,7 +72988,7 @@ paths: - 5 environments: type: array - items: &473 + items: &470 title: Environment description: Details of a deployment environment type: object @@ -73508,7 +73050,7 @@ paths: type: string examples: - wait_timer - wait_timer: &475 + wait_timer: &472 type: integer description: The amount of time to delay a job after the job is initially triggered. The time (in minutes) @@ -73550,7 +73092,7 @@ paths: items: type: object properties: - type: *472 + type: *469 reviewer: anyOf: - *4 @@ -73577,7 +73119,7 @@ paths: - id - node_id - type - deployment_branch_policy: &476 + deployment_branch_policy: &473 type: - object - 'null' @@ -73694,9 +73236,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#get-an-environment parameters: - - *311 - - *312 - - &474 + - *308 + - *309 + - &471 name: environment_name in: path required: true @@ -73709,9 +73251,9 @@ paths: description: Response content: application/json: - schema: *473 + schema: *470 examples: - default: &477 + default: &474 value: id: 161088068 node_id: MDExOkVudmlyb25tZW50MTYxMDg4MDY4 @@ -73795,9 +73337,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#create-or-update-an-environment parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 requestBody: required: false content: @@ -73807,7 +73349,7 @@ paths: - object - 'null' properties: - wait_timer: *475 + wait_timer: *472 prevent_self_review: type: boolean description: Whether or not a user who created the job is prevented @@ -73826,14 +73368,14 @@ paths: items: type: object properties: - type: *472 + type: *469 id: type: integer description: The id of the user or team who can review the deployment examples: - 4532992 - deployment_branch_policy: *476 + deployment_branch_policy: *473 additionalProperties: false examples: default: @@ -73853,9 +73395,9 @@ paths: description: Response content: application/json: - schema: *473 + schema: *470 examples: - default: *477 + default: *474 '422': description: Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` @@ -73879,9 +73421,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#delete-an-environment parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 responses: '204': description: Default response @@ -73906,9 +73448,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#list-deployment-branch-policies parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *17 - *19 responses: @@ -73927,7 +73469,7 @@ paths: - 2 branch_policies: type: array - items: &478 + items: &475 title: Deployment branch policy description: Details of a deployment branch or tag policy. type: object @@ -73988,9 +73530,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#create-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 requestBody: required: true content: @@ -74038,9 +73580,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - example-wildcard: &479 + example-wildcard: &476 value: id: 364662 node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI= @@ -74082,10 +73624,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#get-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 - - &480 + - *308 + - *309 + - *471 + - &477 name: branch_policy_id in: path required: true @@ -74097,9 +73639,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - default: *479 + default: *476 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74118,10 +73660,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#update-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 - - *480 + - *308 + - *309 + - *471 + - *477 requestBody: required: true content: @@ -74150,9 +73692,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - default: *479 + default: *476 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74171,10 +73713,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#delete-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 - - *480 + - *308 + - *309 + - *471 + - *477 responses: '204': description: Response @@ -74199,9 +73741,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#get-all-deployment-protection-rules-for-an-environment parameters: - - *474 - - *312 - - *311 + - *471 + - *309 + - *308 responses: '200': description: List of deployment protection rules @@ -74218,7 +73760,7 @@ paths: - 10 custom_deployment_protection_rules: type: array - items: &481 + items: &478 title: Deployment protection rule description: Deployment protection rule type: object @@ -74240,7 +73782,7 @@ paths: for the environment. examples: - true - app: &482 + app: &479 title: Custom deployment protection rule app description: A GitHub App that is providing a custom deployment protection rule. @@ -74343,9 +73885,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#create-a-custom-deployment-protection-rule-on-an-environment parameters: - - *474 - - *312 - - *311 + - *471 + - *309 + - *308 requestBody: content: application/json: @@ -74366,9 +73908,9 @@ paths: description: The enabled custom deployment protection rule content: application/json: - schema: *481 + schema: *478 examples: - default: &483 + default: &480 value: id: 3 node_id: IEH37kRlcGxveW1lbnRTdGF0ddiv @@ -74403,9 +73945,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#list-custom-deployment-rule-integrations-available-for-an-environment parameters: - - *474 - - *312 - - *311 + - *471 + - *309 + - *308 - *19 - *17 responses: @@ -74425,7 +73967,7 @@ paths: - 35 available_custom_deployment_protection_rule_integrations: type: array - items: *482 + items: *479 examples: default: value: @@ -74460,10 +74002,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#get-a-custom-deployment-protection-rule parameters: - - *311 - - *312 - - *474 - - &484 + - *308 + - *309 + - *471 + - &481 name: protection_rule_id description: The unique identifier of the protection rule. in: path @@ -74475,9 +74017,9 @@ paths: description: Response content: application/json: - schema: *481 + schema: *478 examples: - default: *483 + default: *480 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74498,10 +74040,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#disable-a-custom-protection-rule-for-an-environment parameters: - - *474 - - *312 - - *311 - - *484 + - *471 + - *309 + - *308 + - *481 responses: '204': description: Response @@ -74527,9 +74069,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#list-environment-secrets parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *17 - *19 responses: @@ -74547,9 +74089,9 @@ paths: type: integer secrets: type: array - items: *356 + items: *353 examples: - default: *357 + default: *354 headers: Link: *57 x-github: @@ -74574,17 +74116,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-an-environment-public-key parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 responses: '200': description: Response content: application/json: - schema: *358 + schema: *355 examples: - default: *359 + default: *356 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74606,18 +74148,18 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-an-environment-secret parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *153 responses: '200': description: Response content: application/json: - schema: *356 + schema: *353 examples: - default: *485 + default: *482 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74639,9 +74181,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#create-or-update-an-environment-secret parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *153 requestBody: required: true @@ -74699,9 +74241,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#delete-an-environment-secret parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *153 responses: '204': @@ -74727,10 +74269,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#list-environment-variables parameters: - - *311 - - *312 - - *474 - - *327 + - *308 + - *309 + - *471 + - *324 - *19 responses: '200': @@ -74747,9 +74289,9 @@ paths: type: integer variables: type: array - items: *360 + items: *357 examples: - default: *361 + default: *358 headers: Link: *57 x-github: @@ -74772,9 +74314,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#create-an-environment-variable parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 requestBody: required: true content: @@ -74826,18 +74368,18 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#get-an-environment-variable parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *156 responses: '200': description: Response content: application/json: - schema: *360 + schema: *357 examples: - default: *486 + default: *483 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74858,10 +74400,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#update-an-environment-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 - - *474 + - *471 requestBody: required: true content: @@ -74903,10 +74445,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#delete-an-environment-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 - - *474 + - *471 responses: '204': description: Response @@ -74928,8 +74470,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/events#list-repository-events parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -74997,8 +74539,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/forks#list-forks parameters: - - *311 - - *312 + - *308 + - *309 - name: sort description: The sort order. `stargazers` will sort by star count. in: query @@ -75157,8 +74699,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/forks#create-a-fork parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -75191,9 +74733,9 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 '400': *14 '422': *15 '403': *27 @@ -75214,8 +74756,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/blobs#create-a-blob parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -75275,7 +74817,7 @@ paths: schema: oneOf: - *114 - - *487 + - *484 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -75300,8 +74842,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/blobs#get-a-blob parameters: - - *311 - - *312 + - *308 + - *309 - name: file_sha in: path required: true @@ -75401,8 +74943,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/commits#create-a-commit parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -75511,7 +75053,7 @@ paths: description: Response content: application/json: - schema: &488 + schema: &485 title: Git Commit description: Low-level Git commit operations within a repository type: object @@ -75738,15 +75280,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/commits#get-a-commit-object parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 responses: '200': description: Response content: application/json: - schema: *488 + schema: *485 examples: default: value: @@ -75802,9 +75344,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#list-matching-references parameters: - - *311 - - *312 - - &489 + - *308 + - *309 + - &486 name: ref description: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -75821,7 +75363,7 @@ paths: application/json: schema: type: array - items: &490 + items: &487 title: Git Reference description: Git references within a repository type: object @@ -75897,17 +75439,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#get-a-reference parameters: - - *311 - - *312 - - *489 + - *308 + - *309 + - *486 responses: '200': description: Response content: application/json: - schema: *490 + schema: *487 examples: - default: &491 + default: &488 value: ref: refs/heads/featureA node_id: MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ== @@ -75936,8 +75478,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#create-a-reference parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -75966,9 +75508,9 @@ paths: description: Response content: application/json: - schema: *490 + schema: *487 examples: - default: *491 + default: *488 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA @@ -75994,9 +75536,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#update-a-reference parameters: - - *311 - - *312 - - *489 + - *308 + - *309 + - *486 requestBody: required: true content: @@ -76025,9 +75567,9 @@ paths: description: Response content: application/json: - schema: *490 + schema: *487 examples: - default: *491 + default: *488 '422': *15 '409': *50 x-github: @@ -76045,9 +75587,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#delete-a-reference parameters: - - *311 - - *312 - - *489 + - *308 + - *309 + - *486 responses: '204': description: Response @@ -76102,8 +75644,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/tags#create-a-tag-object parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -76170,7 +75712,7 @@ paths: description: Response content: application/json: - schema: &493 + schema: &490 title: Git Tag description: Metadata for a Git tag type: object @@ -76226,7 +75768,7 @@ paths: - sha - type - url - verification: *492 + verification: *489 required: - sha - url @@ -76236,7 +75778,7 @@ paths: - tag - message examples: - default: &494 + default: &491 value: node_id: MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw== tag: v0.0.1 @@ -76309,8 +75851,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/tags#get-a-tag parameters: - - *311 - - *312 + - *308 + - *309 - name: tag_sha in: path required: true @@ -76321,9 +75863,9 @@ paths: description: Response content: application/json: - schema: *493 + schema: *490 examples: - default: *494 + default: *491 '404': *6 '409': *50 x-github: @@ -76347,8 +75889,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/trees#create-a-tree parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -76422,7 +75964,7 @@ paths: description: Response content: application/json: - schema: &495 + schema: &492 title: Git Tree description: The hierarchy between files in a Git repository. type: object @@ -76524,8 +76066,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/trees#get-a-tree parameters: - - *311 - - *312 + - *308 + - *309 - name: tree_sha description: The SHA1 value or ref (branch or tag) name of the tree. in: path @@ -76548,7 +76090,7 @@ paths: description: Response content: application/json: - schema: *495 + schema: *492 examples: default-response: summary: Default response @@ -76607,8 +76149,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#list-repository-webhooks parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -76618,7 +76160,7 @@ paths: application/json: schema: type: array - items: &496 + items: &493 title: Webhook description: Webhooks for repositories. type: object @@ -76681,7 +76223,7 @@ paths: format: uri examples: - https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries - last_response: &731 + last_response: &726 title: Hook Response type: object properties: @@ -76758,8 +76300,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#create-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -76812,9 +76354,9 @@ paths: description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: &497 + default: &494 value: type: Repository id: 12345678 @@ -76862,17 +76404,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#get-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *497 + default: *494 '404': *6 x-github: githubCloudOnly: false @@ -76892,8 +76434,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#update-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 requestBody: required: true @@ -76939,9 +76481,9 @@ paths: description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *497 + default: *494 '422': *15 '404': *6 x-github: @@ -76962,8 +76504,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#delete-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '204': @@ -76988,8 +76530,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#get-a-webhook-configuration-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '200': @@ -77017,8 +76559,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#update-a-webhook-configuration-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *193 requestBody: required: false @@ -77063,8 +76605,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#list-deliveries-for-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 - *17 - *194 @@ -77096,8 +76638,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#get-a-delivery-for-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 - *16 responses: @@ -77126,8 +76668,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 - *16 responses: @@ -77151,8 +76693,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#ping-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '204': @@ -77178,8 +76720,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#test-the-push-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '204': @@ -77203,8 +76745,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-immutable-releases-are-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response if immutable releases are enabled @@ -77252,8 +76794,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-immutable-releases parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '409': *50 @@ -77273,8 +76815,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-immutable-releases parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '409': *50 @@ -77331,14 +76873,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#get-an-import-status parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &498 + schema: &495 title: Import description: A repository import from an external source. type: object @@ -77445,7 +76987,7 @@ paths: - html_url - authors_url examples: - default: &501 + default: &498 value: vcs: subversion use_lfs: true @@ -77461,7 +77003,7 @@ paths: authors_url: https://api.github.com/repos/octocat/socm/import/authors repository_url: https://api.github.com/repos/octocat/socm '404': *6 - '503': &499 + '503': &496 description: Unavailable due to service under maintenance. content: application/json: @@ -77490,8 +77032,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#start-an-import parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -77539,7 +77081,7 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: default: value: @@ -77564,7 +77106,7 @@ paths: type: string '422': *15 '404': *6 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77592,8 +77134,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#update-an-import parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -77645,7 +77187,7 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: example-1: summary: Example 1 @@ -77693,7 +77235,7 @@ paths: 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 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77716,12 +77258,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#cancel-an-import parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77747,9 +77289,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#get-commit-authors parameters: - - *311 - - *312 - - &667 + - *308 + - *309 + - &662 name: since description: A user ID. Only return users with an ID greater than this ID. in: query @@ -77763,7 +77305,7 @@ paths: application/json: schema: type: array - items: &500 + items: &497 title: Porter Author description: Porter Author type: object @@ -77817,7 +77359,7 @@ paths: url: https://api.github.com/repos/octocat/socm/import/authors/2268559 import_url: https://api.github.com/repos/octocat/socm/import '404': *6 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77842,8 +77384,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#map-a-commit-author parameters: - - *311 - - *312 + - *308 + - *309 - name: author_id in: path required: true @@ -77873,7 +77415,7 @@ paths: description: Response content: application/json: - schema: *500 + schema: *497 examples: default: value: @@ -77886,7 +77428,7 @@ paths: import_url: https://api.github.com/repos/octocat/socm/import '422': *15 '404': *6 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77910,8 +77452,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#get-large-files parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -77952,7 +77494,7 @@ paths: path: foo/bar/3 oid: c20ad4d76fe97759aa27a0c99bff6710 size: 12582912 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77980,8 +77522,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -78008,11 +77550,11 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: *501 + default: *498 '422': *15 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -78035,8 +77577,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/apps/apps#get-a-repository-installation-for-the-authenticated-app parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -78044,8 +77586,8 @@ paths: application/json: schema: *20 examples: - default: *502 - '301': *315 + default: *499 + '301': *312 '404': *6 x-github: githubCloudOnly: false @@ -78065,8 +77607,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/interactions/repos#get-interaction-restrictions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -78079,7 +77621,7 @@ paths: properties: {} additionalProperties: false examples: - default: &504 + default: &501 value: limit: collaborators_only origin: repository @@ -78104,13 +77646,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/interactions/repos#set-interaction-restrictions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *503 + schema: *500 examples: default: summary: Example request body @@ -78124,7 +77666,7 @@ paths: application/json: schema: *211 examples: - default: *504 + default: *501 '409': description: Response x-github: @@ -78146,8 +77688,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/interactions/repos#remove-interaction-restrictions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -78170,8 +77712,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/invitations#list-repository-invitations parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -78181,9 +77723,9 @@ paths: application/json: schema: type: array - items: *505 + items: *502 examples: - default: &660 + default: &655 value: - id: 1 repository: @@ -78314,8 +77856,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/invitations#update-a-repository-invitation parameters: - - *311 - - *312 + - *308 + - *309 - *215 requestBody: required: false @@ -78345,7 +77887,7 @@ paths: description: Response content: application/json: - schema: *505 + schema: *502 examples: default: value: @@ -78476,8 +78018,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/invitations#delete-a-repository-invitation parameters: - - *311 - - *312 + - *308 + - *309 - *215 responses: '204': @@ -78509,8 +78051,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#list-repository-issues parameters: - - *311 - - *312 + - *308 + - *309 - 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 @@ -78583,7 +78125,7 @@ paths: type: array items: *71 examples: - default: &515 + default: &512 value: - id: 1 node_id: MDU6SXNzdWUx @@ -78731,7 +78273,7 @@ paths: state_reason: completed headers: Link: *57 - '301': *315 + '301': *312 '422': *15 '404': *6 x-github: @@ -78760,8 +78302,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#create-an-issue parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -78853,7 +78395,7 @@ paths: application/json: schema: *71 examples: - default: &512 + default: &509 value: id: 1 node_id: MDU6SXNzdWUx @@ -79009,7 +78551,7 @@ paths: '422': *15 '503': *106 '404': *6 - '410': *506 + '410': *503 x-github: triggersNotification: true githubCloudOnly: false @@ -79037,8 +78579,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#list-issue-comments-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *94 - name: direction description: Either `asc` or `desc`. Ignored without the `sort` parameter. @@ -79059,9 +78601,9 @@ paths: application/json: schema: type: array - items: *507 + items: *504 examples: - default: &514 + default: &511 value: - id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -79119,17 +78661,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#get-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '200': description: Response content: application/json: - schema: *507 + schema: *504 examples: - default: &508 + default: &505 value: id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -79183,8 +78725,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#update-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -79207,9 +78749,9 @@ paths: description: Response content: application/json: - schema: *507 + schema: *504 examples: - default: *508 + default: *505 '422': *15 x-github: githubCloudOnly: false @@ -79227,8 +78769,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#delete-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '204': @@ -79249,8 +78791,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). @@ -79277,9 +78819,9 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 @@ -79300,8 +78842,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -79334,16 +78876,16 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -79365,10 +78907,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-an-issue-comment-reaction parameters: - - *311 - - *312 + - *308 + - *309 - *86 - - *510 + - *507 responses: '204': description: Response @@ -79388,8 +78930,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/events#list-issue-events-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -79399,7 +78941,7 @@ paths: application/json: schema: type: array - items: &511 + items: &508 title: Issue Event description: Issue Event type: object @@ -79738,8 +79280,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/events#get-an-issue-event parameters: - - *311 - - *312 + - *308 + - *309 - name: event_id in: path required: true @@ -79750,7 +79292,7 @@ paths: description: Response content: application/json: - schema: *511 + schema: *508 examples: default: value: @@ -79942,7 +79484,7 @@ paths: author_association: COLLABORATOR state_reason: completed '404': *6 - '410': *506 + '410': *503 '403': *27 x-github: githubCloudOnly: false @@ -79976,9 +79518,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#get-an-issue parameters: - - *311 - - *312 - - &513 + - *308 + - *309 + - &510 name: issue_number description: The number that identifies the issue. in: path @@ -79992,10 +79534,10 @@ paths: application/json: schema: *71 examples: - default: *512 - '301': *315 + default: *509 + '301': *312 '404': *6 - '410': *506 + '410': *503 '304': *35 x-github: githubCloudOnly: false @@ -80020,9 +79562,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#update-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -80143,13 +79685,13 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 '422': *15 '503': *106 '403': *27 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80167,9 +79709,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#add-assignees-to-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -80197,7 +79739,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80213,9 +79755,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#remove-assignees-from-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: content: application/json: @@ -80242,7 +79784,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80264,9 +79806,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#check-if-a-user-can-be-assigned-to-a-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: assignee in: path required: true @@ -80306,9 +79848,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#list-issue-comments parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *77 - *17 - *19 @@ -80319,13 +79861,13 @@ paths: application/json: schema: type: array - items: *507 + items: *504 examples: - default: *514 + default: *511 headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80354,9 +79896,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#create-an-issue-comment parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -80378,16 +79920,16 @@ paths: description: Response content: application/json: - schema: *507 + schema: *504 examples: - default: *508 + default: *505 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1 schema: type: string '403': *27 - '410': *506 + '410': *503 '422': *15 '404': *6 x-github: @@ -80415,9 +79957,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocked-by parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -80429,12 +79971,12 @@ paths: type: array items: *71 examples: - default: *515 + default: *512 headers: Link: *57 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80462,9 +80004,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#add-a-dependency-an-issue-is-blocked-by parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -80488,15 +80030,15 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/dependencies/blocked_by schema: type: string - '301': *315 + '301': *312 '403': *27 - '410': *506 + '410': *503 '422': *15 '404': *6 x-github: @@ -80527,9 +80069,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#remove-dependency-an-issue-is-blocked-by parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: issue_id in: path description: The id of the blocking issue to remove as a dependency @@ -80543,13 +80085,13 @@ paths: application/json: schema: *71 examples: - default: *512 - '301': *315 + default: *509 + '301': *312 '400': *14 '401': *23 '403': *27 '404': *6 - '410': *506 + '410': *503 x-github: triggersNotification: true githubCloudOnly: false @@ -80575,9 +80117,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocking parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -80589,12 +80131,12 @@ paths: type: array items: *71 examples: - default: *515 + default: *512 headers: Link: *57 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80611,9 +80153,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/events#list-issue-events parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -80627,7 +80169,7 @@ paths: title: Issue Event for Issue description: Issue Event for Issue anyOf: - - &517 + - &514 title: Labeled Issue Event description: Labeled Issue Event type: object @@ -80676,7 +80218,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &518 + - &515 title: Unlabeled Issue Event description: Unlabeled Issue Event type: object @@ -80804,7 +80346,7 @@ paths: - performed_via_github_app - assignee - assigner - - &519 + - &516 title: Milestoned Issue Event description: Milestoned Issue Event type: object @@ -80850,7 +80392,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &520 + - &517 title: Demilestoned Issue Event description: Demilestoned Issue Event type: object @@ -80896,7 +80438,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &521 + - &518 title: Renamed Issue Event description: Renamed Issue Event type: object @@ -80945,7 +80487,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &522 + - &519 title: Review Requested Issue Event description: Review Requested Issue Event type: object @@ -80987,7 +80529,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &523 + - &520 title: Review Request Removed Issue Event description: Review Request Removed Issue Event type: object @@ -81029,7 +80571,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &524 + - &521 title: Review Dismissed Issue Event description: Review Dismissed Issue Event type: object @@ -81085,7 +80627,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &525 + - &522 title: Locked Issue Event description: Locked Issue Event type: object @@ -81130,7 +80672,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &526 + - &523 title: Added to Project Issue Event description: Added to Project Issue Event type: object @@ -81191,7 +80733,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &527 + - &524 title: Moved Column in Project Issue Event description: Moved Column in Project Issue Event type: object @@ -81252,7 +80794,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &528 + - &525 title: Removed from Project Issue Event description: Removed from Project Issue Event type: object @@ -81313,7 +80855,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &529 + - &526 title: Converted Note to Issue Issue Event description: Converted Note to Issue Issue Event type: object @@ -81406,7 +80948,7 @@ paths: color: red headers: Link: *57 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81423,9 +80965,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#list-labels-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -81437,7 +80979,7 @@ paths: type: array items: *70 examples: - default: &516 + default: &513 value: - id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -81455,9 +80997,9 @@ paths: default: false headers: Link: *57 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81474,9 +81016,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#add-labels-to-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -81537,10 +81079,10 @@ paths: type: array items: *70 examples: - default: *516 - '301': *315 + default: *513 + '301': *312 '404': *6 - '410': *506 + '410': *503 '422': *15 x-github: githubCloudOnly: false @@ -81557,9 +81099,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#set-labels-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -81621,10 +81163,10 @@ paths: type: array items: *70 examples: - default: *516 - '301': *315 + default: *513 + '301': *312 '404': *6 - '410': *506 + '410': *503 '422': *15 x-github: githubCloudOnly: false @@ -81641,15 +81183,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#remove-all-labels-from-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 responses: '204': description: Response - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81668,9 +81210,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#remove-a-label-from-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: name in: path required: true @@ -81694,9 +81236,9 @@ paths: description: Something isn't working color: f29513 default: true - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81716,9 +81258,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#lock-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -81747,7 +81289,7 @@ paths: '204': description: Response '403': *27 - '410': *506 + '410': *503 '404': *6 '422': *15 x-github: @@ -81765,9 +81307,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#unlock-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 responses: '204': description: Response @@ -81797,9 +81339,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#get-parent-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 responses: '200': description: Response @@ -81807,10 +81349,10 @@ paths: application/json: schema: *71 examples: - default: *512 - '301': *315 + default: *509 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81827,9 +81369,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. @@ -81855,13 +81397,13 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81879,9 +81421,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -81913,16 +81455,16 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -81944,10 +81486,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-an-issue-reaction parameters: - - *311 - - *312 - - *513 + - *308 + - *309 - *510 + - *507 responses: '204': description: Response @@ -81976,9 +81518,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#remove-sub-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -82002,7 +81544,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/sub-issue @@ -82035,9 +81577,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#list-sub-issues parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -82049,11 +81591,11 @@ paths: type: array items: *71 examples: - default: *515 + default: *512 headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -82081,9 +81623,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#add-sub-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -82112,14 +81654,14 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/sub-issues/1 schema: type: string '403': *27 - '410': *506 + '410': *503 '422': *15 '404': *6 x-github: @@ -82139,9 +81681,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#reprioritize-sub-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -82174,7 +81716,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 '403': *27 '404': *6 '422': *7 @@ -82196,9 +81738,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/timeline#list-timeline-events-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -82213,6 +81755,9 @@ paths: description: Timeline Event type: object anyOf: + - *514 + - *515 + - *516 - *517 - *518 - *519 @@ -82223,9 +81768,6 @@ paths: - *524 - *525 - *526 - - *527 - - *528 - - *529 - title: Timeline Comment Event description: Timeline Comment Event type: object @@ -82554,7 +82096,7 @@ paths: type: string comments: type: array - items: &550 + items: &547 title: Pull Request Review Comment description: Pull Request Review Comments are comments on a portion of the Pull Request's diff. @@ -82795,7 +82337,7 @@ paths: type: string comments: type: array - items: *439 + items: *436 - title: Timeline Assigned Issue Event description: Timeline Assigned Issue Event type: object @@ -83070,7 +82612,7 @@ paths: headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -83087,8 +82629,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#list-deploy-keys parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -83098,7 +82640,7 @@ paths: application/json: schema: type: array - items: &530 + items: &527 title: Deploy Key description: An SSH key granting access to a single repository. type: object @@ -83166,8 +82708,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#create-a-deploy-key parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83203,9 +82745,9 @@ paths: description: Response content: application/json: - schema: *530 + schema: *527 examples: - default: &531 + default: &528 value: id: 1 key: ssh-rsa AAA... @@ -83239,9 +82781,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key parameters: - - *311 - - *312 - - &532 + - *308 + - *309 + - &529 name: key_id description: The unique identifier of the key. in: path @@ -83253,9 +82795,9 @@ paths: description: Response content: application/json: - schema: *530 + schema: *527 examples: - default: *531 + default: *528 '404': *6 x-github: githubCloudOnly: false @@ -83273,9 +82815,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#delete-a-deploy-key parameters: - - *311 - - *312 - - *532 + - *308 + - *309 + - *529 responses: '204': description: Response @@ -83295,8 +82837,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#list-labels-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -83308,7 +82850,7 @@ paths: type: array items: *70 examples: - default: *516 + default: *513 headers: Link: *57 '404': *6 @@ -83329,8 +82871,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#create-a-label parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83368,7 +82910,7 @@ paths: application/json: schema: *70 examples: - default: &533 + default: &530 value: id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -83400,8 +82942,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#get-a-label parameters: - - *311 - - *312 + - *308 + - *309 - name: name in: path required: true @@ -83414,7 +82956,7 @@ paths: application/json: schema: *70 examples: - default: *533 + default: *530 '404': *6 x-github: githubCloudOnly: false @@ -83431,8 +82973,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#update-a-label parameters: - - *311 - - *312 + - *308 + - *309 - name: name in: path required: true @@ -83497,8 +83039,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#delete-a-label parameters: - - *311 - - *312 + - *308 + - *309 - name: name in: path required: true @@ -83524,8 +83066,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-languages parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -83564,9 +83106,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/licenses/licenses#get-the-license-for-a-repository parameters: - - *311 - - *312 - - *414 + - *308 + - *309 + - *411 responses: '200': description: Response @@ -83713,8 +83255,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83779,8 +83321,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#merge-a-branch parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83814,9 +83356,9 @@ paths: description: Successful Response (The resulting merge commit) content: application/json: - schema: *442 + schema: *439 examples: - default: *534 + default: *531 '204': description: Response when already merged '404': @@ -83841,8 +83383,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#list-milestones parameters: - - *311 - - *312 + - *308 + - *309 - name: state description: The state of the milestone. Either `open`, `closed`, or `all`. in: query @@ -83939,8 +83481,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#create-a-milestone parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83982,7 +83524,7 @@ paths: application/json: schema: *252 examples: - default: &535 + default: &532 value: url: https://api.github.com/repos/octocat/Hello-World/milestones/1 html_url: https://github.com/octocat/Hello-World/milestones/v1.0 @@ -84041,9 +83583,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#get-a-milestone parameters: - - *311 - - *312 - - &536 + - *308 + - *309 + - &533 name: milestone_number description: The number that identifies the milestone. in: path @@ -84057,7 +83599,7 @@ paths: application/json: schema: *252 examples: - default: *535 + default: *532 '404': *6 x-github: githubCloudOnly: false @@ -84074,9 +83616,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#update-a-milestone parameters: - - *311 - - *312 - - *536 + - *308 + - *309 + - *533 requestBody: required: false content: @@ -84116,7 +83658,7 @@ paths: application/json: schema: *252 examples: - default: *535 + default: *532 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -84132,9 +83674,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#delete-a-milestone parameters: - - *311 - - *312 - - *536 + - *308 + - *309 + - *533 responses: '204': description: Response @@ -84155,9 +83697,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#list-labels-for-issues-in-a-milestone parameters: - - *311 - - *312 - - *536 + - *308 + - *309 + - *533 - *17 - *19 responses: @@ -84169,7 +83711,7 @@ paths: type: array items: *70 examples: - default: *516 + default: *513 headers: Link: *57 x-github: @@ -84188,12 +83730,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user parameters: - - *311 - - *312 - - *537 - - *538 + - *308 + - *309 + - *534 + - *535 - *77 - - *539 + - *536 - *17 - *19 responses: @@ -84205,7 +83747,7 @@ paths: type: array items: *97 examples: - default: *540 + default: *537 headers: Link: *57 x-github: @@ -84229,8 +83771,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/notifications#mark-repository-notifications-as-read parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -84288,14 +83830,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &541 + schema: &538 title: GitHub Pages description: The configuration for GitHub Pages for a repository. type: object @@ -84439,7 +83981,7 @@ paths: - custom_404 - public examples: - default: &542 + default: &539 value: url: https://api.github.com/repos/github/developer.github.com/pages status: built @@ -84480,8 +84022,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#create-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -84536,9 +84078,9 @@ paths: description: Response content: application/json: - schema: *541 + schema: *538 examples: - default: *542 + default: *539 '422': *15 '409': *50 x-github: @@ -84561,8 +84103,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#update-information-about-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -84662,8 +84204,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#delete-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -84689,8 +84231,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#list-apiname-pages-builds parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -84700,7 +84242,7 @@ paths: application/json: schema: type: array - items: &543 + items: &540 title: Page Build description: Page Build type: object @@ -84792,8 +84334,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#request-a-apiname-pages-build parameters: - - *311 - - *312 + - *308 + - *309 responses: '201': description: Response @@ -84840,16 +84382,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-latest-pages-build parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *543 + schema: *540 examples: - default: &544 + default: &541 value: url: https://api.github.com/repos/github/developer.github.com/pages/builds/5472601 status: built @@ -84897,8 +84439,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-apiname-pages-build parameters: - - *311 - - *312 + - *308 + - *309 - name: build_id in: path required: true @@ -84909,9 +84451,9 @@ paths: description: Response content: application/json: - schema: *543 + schema: *540 examples: - default: *544 + default: *541 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -84931,8 +84473,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#create-a-github-pages-deployment parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -85040,9 +84582,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-the-status-of-a-github-pages-deployment parameters: - - *311 - - *312 - - &545 + - *308 + - *309 + - &542 name: pages_deployment_id description: The ID of the Pages deployment. You can also give the commit SHA of the deployment. @@ -85100,9 +84642,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#cancel-a-github-pages-deployment parameters: - - *311 - - *312 - - *545 + - *308 + - *309 + - *542 responses: '204': *176 '404': *6 @@ -85129,8 +84671,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-a-dns-health-check-for-github-pages parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -85425,8 +84967,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Private vulnerability reporting status @@ -85463,8 +85005,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '422': *14 @@ -85485,8 +85027,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '422': *14 @@ -85508,8 +85050,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -85519,7 +85061,7 @@ paths: type: array items: *104 examples: - default: *546 + default: *543 '403': *27 '404': *6 x-github: @@ -85541,8 +85083,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -85558,7 +85100,7 @@ paths: required: - properties examples: - default: *547 + default: *544 responses: '204': description: No Content when custom property values are successfully created @@ -85596,8 +85138,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#list-pull-requests parameters: - - *311 - - *312 + - *308 + - *309 - name: state description: Either `open`, `closed`, or `all` to filter by state. in: query @@ -85657,9 +85199,9 @@ paths: application/json: schema: type: array - items: *446 + items: *443 examples: - default: *548 + default: *545 headers: Link: *57 '304': *35 @@ -85691,8 +85233,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#create-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -85759,7 +85301,7 @@ paths: description: Response content: application/json: - schema: &552 + schema: &549 type: object title: Pull Request description: Pull requests let you tell others about changes you've @@ -85999,7 +85541,7 @@ paths: - review_comment - self author_association: *72 - auto_merge: *549 + auto_merge: *546 draft: description: Indicates whether or not the pull request is a draft. type: boolean @@ -86101,7 +85643,7 @@ paths: - merged_by - review_comments examples: - default: &553 + default: &550 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -86628,8 +86170,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#list-review-comments-in-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: sort in: query required: false @@ -86658,9 +86200,9 @@ paths: application/json: schema: type: array - items: *550 + items: *547 examples: - default: &555 + default: &552 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -86737,17 +86279,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '200': description: Response content: application/json: - schema: *550 + schema: *547 examples: - default: &551 + default: &548 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -86822,8 +86364,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#update-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -86846,9 +86388,9 @@ paths: description: Response content: application/json: - schema: *550 + schema: *547 examples: - default: *551 + default: *548 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -86864,8 +86406,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#delete-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '204': @@ -86887,8 +86429,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-pull-request-review-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). @@ -86915,9 +86457,9 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 @@ -86938,8 +86480,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -86972,16 +86514,16 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -87003,10 +86545,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-a-pull-request-comment-reaction parameters: - - *311 - - *312 + - *308 + - *309 - *86 - - *510 + - *507 responses: '204': description: Response @@ -87049,9 +86591,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#get-a-pull-request parameters: - - *311 - - *312 - - &554 + - *308 + - *309 + - &551 name: pull_number description: The number that identifies the pull request. in: path @@ -87064,9 +86606,9 @@ paths: to fetch diff and patch formats. content: application/json: - schema: *552 + schema: *549 examples: - default: *553 + default: *550 '304': *35 '404': *6 '406': @@ -87101,9 +86643,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#update-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -87145,9 +86687,9 @@ paths: description: Response content: application/json: - schema: *552 + schema: *549 examples: - default: *553 + default: *550 '422': *15 '403': *27 x-github: @@ -87169,9 +86711,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#create-a-codespace-from-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: true content: @@ -87234,7 +86776,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -87242,7 +86784,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '401': *23 '403': *27 '404': *6 @@ -87272,9 +86814,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#list-review-comments-on-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *94 - name: direction description: The direction to sort results. Ignored without `sort` parameter. @@ -87295,9 +86837,9 @@ paths: application/json: schema: type: array - items: *550 + items: *547 examples: - default: *555 + default: *552 headers: Link: *57 x-github: @@ -87330,9 +86872,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#create-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: true content: @@ -87438,7 +86980,7 @@ paths: description: Response content: application/json: - schema: *550 + schema: *547 examples: example-for-a-multi-line-comment: value: @@ -87526,9 +87068,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#create-a-reply-for-a-review-comment parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *86 requestBody: required: true @@ -87551,7 +87093,7 @@ paths: description: Response content: application/json: - schema: *550 + schema: *547 examples: default: value: @@ -87637,9 +87179,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#list-commits-on-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *17 - *19 responses: @@ -87649,9 +87191,9 @@ paths: application/json: schema: type: array - items: *442 + items: *439 examples: - default: *556 + default: *553 headers: Link: *57 x-github: @@ -87681,9 +87223,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#list-pull-requests-files parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *17 - *19 responses: @@ -87693,7 +87235,7 @@ paths: application/json: schema: type: array - items: *453 + items: *450 examples: default: value: @@ -87731,9 +87273,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#check-if-a-pull-request-has-been-merged parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 responses: '204': description: Response if pull request has been merged @@ -87756,9 +87298,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#merge-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -87870,9 +87412,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/review-requests#get-all-requested-reviewers-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 responses: '200': description: Response @@ -87947,9 +87489,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -87986,7 +87528,7 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: default: value: @@ -88522,9 +88064,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: true content: @@ -88558,7 +88100,7 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: default: value: @@ -89063,9 +88605,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *17 - *19 responses: @@ -89075,7 +88617,7 @@ paths: application/json: schema: type: array - items: &557 + items: &554 title: Pull Request Review description: Pull Request Reviews are reviews on pull requests. type: object @@ -89231,9 +88773,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -89323,9 +88865,9 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: &559 + default: &556 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -89388,10 +88930,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#get-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - &558 + - *308 + - *309 + - *551 + - &555 name: review_id description: The unique identifier of the review. in: path @@ -89403,9 +88945,9 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: &560 + default: &557 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -89464,10 +89006,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#update-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 requestBody: required: true content: @@ -89490,7 +89032,7 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: default: value: @@ -89552,18 +89094,18 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#delete-a-pending-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 responses: '200': description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: *559 + default: *556 '422': *7 '404': *6 x-github: @@ -89590,10 +89132,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#list-comments-for-a-pull-request-review parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 - *17 - *19 responses: @@ -89851,10 +89393,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#dismiss-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 requestBody: required: true content: @@ -89883,7 +89425,7 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: default: value: @@ -89946,10 +89488,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 requestBody: required: true content: @@ -89984,9 +89526,9 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: *560 + default: *557 '404': *6 '422': *7 '403': *27 @@ -90008,9 +89550,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#update-a-pull-request-branch parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -90074,8 +89616,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#get-a-repository-readme parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: 'The name of the commit/branch/tag. Default: the repository’s default branch.' @@ -90088,9 +89630,9 @@ paths: description: Response content: application/json: - schema: *561 + schema: *558 examples: - default: &562 + default: &559 value: type: file encoding: base64 @@ -90132,8 +89674,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#get-a-repository-readme-for-a-directory parameters: - - *311 - - *312 + - *308 + - *309 - name: dir description: The alternate path to look for a README file in: path @@ -90153,9 +89695,9 @@ paths: description: Response content: application/json: - schema: *561 + schema: *558 examples: - default: *562 + default: *559 '404': *6 '422': *15 x-github: @@ -90177,8 +89719,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#list-releases parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -90188,7 +89730,7 @@ paths: application/json: schema: type: array - items: *563 + items: *560 examples: default: value: @@ -90282,8 +89824,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#create-a-release parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -90359,9 +89901,9 @@ paths: description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: &567 + default: &564 value: url: https://api.github.com/repos/octocat/Hello-World/releases/1 html_url: https://github.com/octocat/Hello-World/releases/v1.0.0 @@ -90466,9 +90008,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#get-a-release-asset parameters: - - *311 - - *312 - - &565 + - *308 + - *309 + - &562 name: asset_id description: The unique identifier of the asset. in: path @@ -90480,9 +90022,9 @@ paths: description: Response content: application/json: - schema: *564 + schema: *561 examples: - default: &566 + default: &563 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 @@ -90517,7 +90059,7 @@ paths: type: User site_admin: false '404': *6 - '302': *455 + '302': *452 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90533,9 +90075,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#update-a-release-asset parameters: - - *311 - - *312 - - *565 + - *308 + - *309 + - *562 requestBody: required: false content: @@ -90564,9 +90106,9 @@ paths: description: Response content: application/json: - schema: *564 + schema: *561 examples: - default: *566 + default: *563 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90582,9 +90124,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#delete-a-release-asset parameters: - - *311 - - *312 - - *565 + - *308 + - *309 + - *562 responses: '204': description: Response @@ -90608,8 +90150,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#generate-release-notes-content-for-a-release parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -90695,16 +90237,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#get-the-latest-release parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90721,8 +90263,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name parameters: - - *311 - - *312 + - *308 + - *309 - name: tag description: tag parameter in: path @@ -90735,9 +90277,9 @@ paths: description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 '404': *6 x-github: githubCloudOnly: false @@ -90759,9 +90301,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#get-a-release parameters: - - *311 - - *312 - - &568 + - *308 + - *309 + - &565 name: release_id description: The unique identifier of the release. in: path @@ -90775,9 +90317,9 @@ paths: For more information, see "[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."' content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 '401': description: Unauthorized x-github: @@ -90795,9 +90337,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#update-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 requestBody: required: false content: @@ -90861,9 +90403,9 @@ paths: description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 '404': description: Not Found if the discussion category name is invalid content: @@ -90884,9 +90426,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#delete-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 responses: '204': description: Response @@ -90906,9 +90448,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#list-release-assets parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 - *17 - *19 responses: @@ -90918,7 +90460,7 @@ paths: application/json: schema: type: array - items: *564 + items: *561 examples: default: value: @@ -90999,9 +90541,9 @@ paths: description: The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 - name: name in: query required: true @@ -91027,7 +90569,7 @@ paths: description: Response for successful upload content: application/json: - schema: *564 + schema: *561 examples: response-for-successful-upload: value: @@ -91082,9 +90624,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. @@ -91108,9 +90650,9 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 @@ -91131,9 +90673,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 requestBody: required: true content: @@ -91163,16 +90705,16 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -91194,10 +90736,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-a-release-reaction parameters: - - *311 - - *312 - - *568 - - *510 + - *308 + - *309 + - *565 + - *507 responses: '204': description: Response @@ -91221,9 +90763,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rules#get-rules-for-a-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 - *17 - *19 responses: @@ -91240,7 +90782,7 @@ paths: oneOf: - allOf: - *271 - - &569 + - &566 title: repository ruleset data for rule description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -91261,67 +90803,67 @@ paths: description: The ID of the ruleset that includes this rule. - allOf: - *272 - - *569 + - *566 - allOf: - *273 - - *569 + - *566 - allOf: - *274 - - *569 + - *566 - allOf: - - *570 - - *569 + - *567 + - *566 - allOf: - *275 - - *569 + - *566 - allOf: - *276 - - *569 + - *566 - allOf: - *277 - - *569 + - *566 - allOf: - *278 - - *569 + - *566 - allOf: - *279 - - *569 + - *566 - allOf: - *280 - - *569 + - *566 - allOf: - *281 - - *569 + - *566 - allOf: - *282 - - *569 + - *566 - allOf: - *283 - - *569 + - *566 - allOf: - *284 - - *569 + - *566 - allOf: - *285 - - *569 + - *566 - allOf: - *286 - - *569 + - *566 - allOf: - *287 - - *569 + - *566 - allOf: - *288 - - *569 + - *566 - allOf: - *289 - - *569 + - *566 - allOf: - *290 - - *569 + - *566 - allOf: - *291 - - *569 + - *566 examples: default: value: @@ -91360,8 +90902,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - name: includes_parents @@ -91372,7 +90914,7 @@ paths: schema: type: boolean default: true - - *571 + - *568 responses: '200': description: Response @@ -91427,8 +90969,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 requestBody: description: Request body required: true @@ -91457,7 +90999,7 @@ paths: rules: type: array description: An array of rules within the ruleset. - items: *572 + items: *569 required: - name - enforcement @@ -91490,7 +91032,7 @@ paths: application/json: schema: *292 examples: - default: &582 + default: &579 value: id: 42 name: super cool ruleset @@ -91537,12 +91079,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites parameters: - - *311 - - *312 + - *308 + - *309 + - *570 + - *571 + - *572 - *573 - - *574 - - *575 - - *576 - *17 - *19 responses: @@ -91550,9 +91092,9 @@ paths: description: Response content: application/json: - schema: *577 + schema: *574 examples: - default: *578 + default: *575 '404': *6 '500': *105 x-github: @@ -91573,17 +91115,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rule-suites#get-a-repository-rule-suite parameters: - - *311 - - *312 - - *579 + - *308 + - *309 + - *576 responses: '200': description: Response content: application/json: - schema: *580 + schema: *577 examples: - default: *581 + default: *578 '404': *6 '500': *105 x-github: @@ -91611,8 +91153,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91634,7 +91176,7 @@ paths: application/json: schema: *292 examples: - default: *582 + default: *579 '404': *6 '500': *105 put: @@ -91652,8 +91194,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91687,7 +91229,7 @@ paths: rules: description: An array of rules within the ruleset. type: array - items: *572 + items: *569 examples: default: value: @@ -91717,7 +91259,7 @@ paths: application/json: schema: *292 examples: - default: *582 + default: *579 '404': *6 '500': *105 delete: @@ -91735,8 +91277,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91759,8 +91301,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rules#get-repository-ruleset-history parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - name: ruleset_id @@ -91778,7 +91320,7 @@ paths: type: array items: *295 examples: - default: *583 + default: *580 '404': *6 '500': *105 x-github: @@ -91797,8 +91339,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rules#get-repository-ruleset-version parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91816,7 +91358,7 @@ paths: description: Response content: application/json: - schema: *584 + schema: *581 examples: default: value: @@ -91871,22 +91413,22 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 + - *582 + - *583 + - *584 - *585 - *586 - - *587 - - *588 - - *589 - *51 - *19 - *17 + - *587 + - *588 + - *589 - *590 - *591 - *592 - - *593 - - *594 - - *595 responses: '200': description: Response @@ -91894,7 +91436,7 @@ paths: application/json: schema: type: array - items: &599 + items: &596 type: object properties: number: *163 @@ -91910,8 +91452,8 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: *596 - resolution: *597 + state: *593 + resolution: *594 resolved_at: type: - string @@ -92005,7 +91547,7 @@ paths: first_location_detected: anyOf: - type: 'null' - - *598 + - *595 has_more_locations: type: boolean description: A boolean value representing whether or not the @@ -92150,16 +91692,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#get-a-secret-scanning-alert parameters: - - *311 - - *312 - - *408 - - *595 + - *308 + - *309 + - *405 + - *592 responses: '200': description: Response content: application/json: - schema: *599 + schema: *596 examples: default: value: @@ -92213,9 +91755,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 requestBody: required: true content: @@ -92223,8 +91765,8 @@ paths: schema: type: object properties: - state: *596 - resolution: *597 + state: *593 + resolution: *594 resolution_comment: description: An optional comment when closing or reopening an alert. Cannot be updated or deleted. @@ -92260,7 +91802,7 @@ paths: description: Response content: application/json: - schema: *599 + schema: *596 examples: default: value: @@ -92355,9 +91897,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-locations-for-a-secret-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 - *19 - *17 responses: @@ -92368,7 +91910,7 @@ paths: schema: type: array description: List of locations where the secret was detected - items: &751 + items: &746 type: object properties: type: @@ -92395,6 +91937,9 @@ paths: - commit details: oneOf: + - *597 + - *598 + - *599 - *600 - *601 - *602 @@ -92405,9 +91950,6 @@ paths: - *607 - *608 - *609 - - *610 - - *611 - - *612 examples: default: value: @@ -92493,8 +92035,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#create-a-push-protection-bypass parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -92502,14 +92044,14 @@ paths: schema: type: object properties: - reason: &614 + reason: &611 description: The reason for bypassing push protection. type: string enum: - false_positive - used_in_tests - will_fix_later - placeholder_id: *613 + placeholder_id: *610 required: - reason - placeholder_id @@ -92526,7 +92068,7 @@ paths: schema: type: object properties: - reason: *614 + reason: *611 expire_at: type: - string @@ -92573,8 +92115,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#get-secret-scanning-scan-history-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '404': description: Repository does not have GitHub Advanced Security or secret @@ -92589,7 +92131,7 @@ paths: properties: incremental_scans: type: array - items: &615 + items: &612 description: Information on a single scan performed by secret scanning on the repository type: object @@ -92617,15 +92159,15 @@ paths: the scan is pending pattern_update_scans: type: array - items: *615 + items: *612 backfill_scans: type: array - items: *615 + items: *612 custom_pattern_backfill_scans: type: array items: allOf: - - *615 + - *612 - type: object properties: pattern_name: @@ -92695,8 +92237,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#list-repository-security-advisories parameters: - - *311 - - *312 + - *308 + - *309 - *51 - name: sort description: The property to sort the results by. @@ -92740,9 +92282,9 @@ paths: application/json: schema: type: array - items: *616 + items: *613 examples: - default: *617 + default: *614 '400': *14 '404': *6 x-github: @@ -92765,8 +92307,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#create-a-repository-security-advisory parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -92936,9 +92478,9 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: &619 + default: &616 value: ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -93171,8 +92713,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -93285,7 +92827,7 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: default: value: @@ -93432,17 +92974,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#get-a-repository-security-advisory parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 responses: '200': description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: *619 + default: *616 '403': *27 '404': *6 x-github: @@ -93466,9 +93008,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#update-a-repository-security-advisory parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 requestBody: required: true content: @@ -93639,10 +93181,10 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: *619 - add_credit: *619 + default: *616 + add_credit: *616 '403': *27 '404': *6 '422': @@ -93680,9 +93222,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 responses: '202': *37 '400': *14 @@ -93709,17 +93251,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#create-a-temporary-private-fork parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 responses: '202': description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 '400': *14 '422': *15 '403': *27 @@ -93745,8 +93287,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#list-stargazers parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -93842,8 +93384,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-activity parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Returns a weekly aggregate of the number of additions and deletions @@ -93852,7 +93394,7 @@ paths: application/json: schema: type: array - items: &620 + items: &617 title: Code Frequency Stat description: Code Frequency Stat type: array @@ -93885,8 +93427,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-last-year-of-commit-activity parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -93964,8 +93506,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-all-contributor-commit-activity parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -94059,8 +93601,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-count parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: The array order is oldest week (index 0) to most recent week. @@ -94214,8 +93756,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-hourly-commit-count-for-each-day parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: For example, `[2, 14, 25]` indicates that there were 25 total @@ -94225,7 +93767,7 @@ paths: application/json: schema: type: array - items: *620 + items: *617 examples: default: value: @@ -94258,8 +93800,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/statuses#create-a-commit-status parameters: - - *311 - - *312 + - *308 + - *309 - name: sha in: path required: true @@ -94315,7 +93857,7 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: default: value: @@ -94369,8 +93911,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#list-watchers parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -94402,14 +93944,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#get-a-repository-subscription parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: if you subscribe to the repository content: application/json: - schema: &622 + schema: &619 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -94482,8 +94024,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#set-a-repository-subscription parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -94509,7 +94051,7 @@ paths: description: Response content: application/json: - schema: *622 + schema: *619 examples: default: value: @@ -94536,8 +94078,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#delete-a-repository-subscription parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -94557,8 +94099,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-tags parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -94640,8 +94182,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -94649,7 +94191,7 @@ paths: application/json: schema: type: array - items: &623 + items: &620 title: Tag protection description: Tag protection type: object @@ -94706,8 +94248,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -94730,7 +94272,7 @@ paths: description: Response content: application/json: - schema: *623 + schema: *620 examples: default: value: @@ -94761,8 +94303,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/tags#closing-down---delete-a-tag-protection-state-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: tag_protection_id description: The unique identifier of the tag protection. in: path @@ -94799,8 +94341,8 @@ paths: url: https://docs.github.com/rest/repos/contents#download-a-repository-archive-tar operationId: repos/download-tarball-archive parameters: - - *311 - - *312 + - *308 + - *309 - name: ref in: path required: true @@ -94836,8 +94378,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-teams parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -94869,8 +94411,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#get-all-repository-topics parameters: - - *311 - - *312 + - *308 + - *309 - *19 - *17 responses: @@ -94878,7 +94420,7 @@ paths: description: Response content: application/json: - schema: &624 + schema: &621 title: Topic description: A topic aggregates entities that are related to a subject. type: object @@ -94890,7 +94432,7 @@ paths: required: - names examples: - default: &625 + default: &622 value: names: - octocat @@ -94913,8 +94455,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#replace-all-repository-topics parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -94945,9 +94487,9 @@ paths: description: Response content: application/json: - schema: *624 + schema: *621 examples: - default: *625 + default: *622 '404': *6 '422': *7 x-github: @@ -94968,9 +94510,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-repository-clones parameters: - - *311 - - *312 - - &626 + - *308 + - *309 + - &623 name: per description: The time frame to display results for. in: query @@ -95001,7 +94543,7 @@ paths: - 128 clones: type: array - items: &627 + items: &624 title: Traffic type: object properties: @@ -95088,8 +94630,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-top-referral-paths parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -95183,8 +94725,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-top-referral-sources parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -95247,9 +94789,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-page-views parameters: - - *311 - - *312 - - *626 + - *308 + - *309 + - *623 responses: '200': description: Response @@ -95270,7 +94812,7 @@ paths: - 3782 views: type: array - items: *627 + items: *624 required: - uniques - count @@ -95347,8 +94889,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#transfer-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -95622,8 +95164,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response if repository is enabled with vulnerability alerts @@ -95646,8 +95188,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-vulnerability-alerts parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -95669,8 +95211,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-vulnerability-alerts parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -95696,8 +95238,8 @@ paths: url: https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip operationId: repos/download-zipball-archive parameters: - - *311 - - *312 + - *308 + - *309 - name: ref in: path required: true @@ -95789,9 +95331,9 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -96040,7 +95582,7 @@ paths: examples: - 73..77 - 77..78 - text_matches: &628 + text_matches: &625 title: Search Result Text Matches type: array items: @@ -96203,7 +95745,7 @@ paths: enum: - author-date - committer-date - - &629 + - &626 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 @@ -96272,7 +95814,7 @@ paths: committer: anyOf: - type: 'null' - - *376 + - *373 comment_count: type: integer message: @@ -96291,7 +95833,7 @@ paths: url: type: string format: uri - verification: *492 + verification: *489 required: - author - committer @@ -96306,7 +95848,7 @@ paths: committer: anyOf: - type: 'null' - - *376 + - *373 parents: type: array items: @@ -96323,7 +95865,7 @@ paths: type: number node_id: type: string - text_matches: *628 + text_matches: *625 required: - sha - node_id @@ -96515,7 +96057,7 @@ paths: - interactions - created - updated - - *629 + - *626 - *17 - *19 - name: advanced_search @@ -96612,11 +96154,11 @@ paths: type: - string - 'null' - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: type: string state_reason: @@ -96644,7 +96186,7 @@ paths: - string - 'null' format: date-time - text_matches: *628 + text_matches: *625 pull_request: type: object properties: @@ -96867,7 +96409,7 @@ paths: enum: - created - updated - - *629 + - *626 - *17 - *19 responses: @@ -96912,7 +96454,7 @@ paths: - 'null' score: type: number - text_matches: *628 + text_matches: *625 required: - id - node_id @@ -96997,7 +96539,7 @@ paths: - forks - help-wanted-issues - updated - - *629 + - *626 - *17 - *19 responses: @@ -97234,7 +96776,7 @@ paths: - admin - pull - push - text_matches: *628 + text_matches: *625 temp_clone_token: type: string allow_merge_commit: @@ -97542,7 +97084,7 @@ paths: - string - 'null' format: uri - text_matches: *628 + text_matches: *625 related: type: - array @@ -97735,7 +97277,7 @@ paths: - followers - repositories - joined - - *629 + - *626 - *17 - *19 responses: @@ -97845,7 +97387,7 @@ paths: type: - boolean - 'null' - text_matches: *628 + text_matches: *625 blog: type: - string @@ -97927,7 +97469,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#get-a-team-legacy parameters: - - &633 + - &630 name: team_id description: The unique identifier of the team. in: path @@ -97968,7 +97510,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#update-a-team-legacy parameters: - - *633 + - *630 requestBody: required: true content: @@ -98069,7 +97611,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#delete-a-team-legacy parameters: - - *633 + - *630 responses: '204': description: Response @@ -98083,226 +97625,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#list-discussions-legacy - parameters: - - *633 - - *51 - - *17 - - *19 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: *307 - examples: - default: *634 - headers: - Link: *57 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy - parameters: - - *633 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *307 - examples: - default: *308 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#get-a-discussion-legacy - parameters: - - *633 - - *309 - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: *308 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy - parameters: - - *633 - - *309 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: *635 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy - parameters: - - *633 - - *309 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -98318,7 +97640,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#list-pending-team-invitations-legacy parameters: - - *633 + - *630 - *17 - *19 responses: @@ -98356,7 +97678,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#list-team-members-legacy parameters: - - *633 + - *630 - name: role description: Filters members returned by their role in the team. in: query @@ -98407,7 +97729,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#get-team-member-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98444,7 +97766,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#add-team-member-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98484,7 +97806,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#remove-team-member-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98521,16 +97843,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#get-team-membership-for-a-user-legacy parameters: - - *633 + - *630 - *62 responses: '200': description: Response content: application/json: - schema: *310 + schema: *307 examples: - response-if-user-is-a-team-maintainer: *636 + response-if-user-is-a-team-maintainer: *631 '404': *6 x-github: githubCloudOnly: false @@ -98563,7 +97885,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user-legacy parameters: - - *633 + - *630 - *62 requestBody: required: false @@ -98589,9 +97911,9 @@ paths: description: Response content: application/json: - schema: *310 + schema: *307 examples: - response-if-users-membership-with-team-is-now-pending: *637 + response-if-users-membership-with-team-is-now-pending: *632 '403': description: Forbidden if team synchronization is set up '422': @@ -98625,7 +97947,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98653,7 +97975,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#list-team-repositories-legacy parameters: - - *633 + - *630 - *17 - *19 responses: @@ -98695,15 +98017,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository-legacy parameters: - - *633 - - *311 - - *312 + - *630 + - *308 + - *309 responses: '200': description: Alternative response with extra repository information content: application/json: - schema: *638 + schema: *633 examples: alternative-response-with-extra-repository-information: value: @@ -98854,9 +98176,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions-legacy parameters: - - *633 - - *311 - - *312 + - *630 + - *308 + - *309 requestBody: required: false content: @@ -98906,9 +98228,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team-legacy parameters: - - *633 - - *311 - - *312 + - *630 + - *308 + - *309 responses: '204': description: Response @@ -98933,7 +98255,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#list-child-teams-legacy parameters: - - *633 + - *630 - *17 - *19 responses: @@ -98945,7 +98267,7 @@ paths: type: array items: *180 examples: - response-if-child-teams-exist: *639 + response-if-child-teams-exist: *634 headers: Link: *57 '404': *6 @@ -98978,7 +98300,7 @@ paths: application/json: schema: oneOf: - - &641 + - &636 title: Private User description: Private User type: object @@ -99228,7 +98550,7 @@ paths: - private_gists - total_private_repos - two_factor_authentication - - *640 + - *635 examples: response-with-public-and-private-profile-information: summary: Response with public and private profile information @@ -99388,7 +98710,7 @@ paths: description: Response content: application/json: - schema: *641 + schema: *636 examples: default: value: @@ -99734,7 +99056,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -99742,7 +99064,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '401': *23 '403': *27 '404': *6 @@ -99786,7 +99108,7 @@ paths: type: integer secrets: type: array - items: &642 + items: &637 title: Codespaces Secret description: Secrets for a GitHub Codespace. type: object @@ -99828,7 +99150,7 @@ paths: - visibility - selected_repositories_url examples: - default: *433 + default: *430 headers: Link: *57 x-github: @@ -99906,7 +99228,7 @@ paths: description: Response content: application/json: - schema: *642 + schema: *637 examples: default: value: @@ -100052,7 +99374,7 @@ paths: type: array items: *145 examples: - default: *643 + default: *638 '401': *23 '403': *27 '404': *6 @@ -100204,7 +99526,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '304': *35 '500': *105 '401': *23 @@ -100262,7 +99584,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '401': *23 '403': *27 '404': *6 @@ -100319,7 +99641,7 @@ paths: description: Response content: application/json: - schema: &644 + schema: &639 type: object title: Fetches information about an export of a codespace. description: An export of a codespace. Also, latest export details @@ -100372,7 +99694,7 @@ paths: examples: - https://github.com/octocat/hello-world/tree/:branch examples: - default: &645 + default: &640 value: state: succeeded completed_at: '2022-01-01T14:59:22Z' @@ -100417,9 +99739,9 @@ paths: description: Response content: application/json: - schema: *644 + schema: *639 examples: - default: *645 + default: *640 '404': *6 x-github: githubCloudOnly: false @@ -100456,9 +99778,9 @@ paths: type: integer machines: type: array - items: *432 + items: *429 examples: - default: *646 + default: *641 '304': *35 '500': *105 '401': *23 @@ -100543,11 +99865,11 @@ paths: - 26a7c758-7299-4a73-b978-5a92a7ae98a0 owner: *4 billable_owner: *4 - repository: *314 + repository: *311 machine: anyOf: - type: 'null' - - *432 + - *429 devcontainer_path: description: Path to devcontainer.json from repo root used to create Codespace. @@ -101352,7 +100674,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '304': *35 '500': *105 '400': *14 @@ -101392,7 +100714,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '500': *105 '401': *23 '403': *27 @@ -101424,7 +100746,7 @@ paths: type: array items: *233 examples: - default: &657 + default: &652 value: - id: 197 name: hello_docker @@ -101525,7 +100847,7 @@ paths: application/json: schema: type: array - items: &647 + items: &642 title: Email description: Email type: object @@ -101595,9 +100917,9 @@ paths: application/json: schema: type: array - items: *647 + items: *642 examples: - default: &659 + default: &654 value: - email: octocat@github.com verified: true @@ -101674,7 +100996,7 @@ paths: application/json: schema: type: array - items: *647 + items: *642 examples: default: value: @@ -101932,7 +101254,7 @@ paths: application/json: schema: type: array - items: &648 + items: &643 title: GPG Key description: A unique encryption key type: object @@ -102077,7 +101399,7 @@ paths: - subkeys - revoked examples: - default: &673 + default: &668 value: - id: 3 name: Octocat's GPG Key @@ -102162,9 +101484,9 @@ paths: description: Response content: application/json: - schema: *648 + schema: *643 examples: - default: &649 + default: &644 value: id: 3 name: Octocat's GPG Key @@ -102221,7 +101543,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user parameters: - - &650 + - &645 name: gpg_key_id description: The unique identifier of the GPG key. in: path @@ -102233,9 +101555,9 @@ paths: description: Response content: application/json: - schema: *648 + schema: *643 examples: - default: *649 + default: *644 '404': *6 '304': *35 '403': *27 @@ -102258,7 +101580,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user parameters: - - *650 + - *645 responses: '204': description: Response @@ -102563,7 +101885,7 @@ paths: required: true content: application/json: - schema: *503 + schema: *500 examples: default: value: @@ -102713,7 +102035,7 @@ paths: application/json: schema: type: array - items: &651 + items: &646 title: Key description: Key type: object @@ -102816,9 +102138,9 @@ paths: description: Response content: application/json: - schema: *651 + schema: *646 examples: - default: &652 + default: &647 value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 @@ -102851,15 +102173,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user parameters: - - *532 + - *529 responses: '200': description: Response content: application/json: - schema: *651 + schema: *646 examples: - default: *652 + default: *647 '404': *6 '304': *35 '403': *27 @@ -102882,7 +102204,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user parameters: - - *532 + - *529 responses: '204': description: Response @@ -102915,7 +102237,7 @@ paths: application/json: schema: type: array - items: &653 + items: &648 title: User Marketplace Purchase description: User Marketplace Purchase type: object @@ -102994,7 +102316,7 @@ paths: - account - plan examples: - default: &654 + default: &649 value: - billing_cycle: monthly next_billing_date: '2017-11-11T00:00:00Z' @@ -103056,9 +102378,9 @@ paths: application/json: schema: type: array - items: *653 + items: *648 examples: - default: *654 + default: *649 headers: Link: *57 '304': *35 @@ -104076,7 +103398,7 @@ paths: url: https://docs.github.com/rest/migrations/users#unlock-a-user-repository parameters: - *228 - - *655 + - *650 responses: '204': description: Response @@ -104191,7 +103513,7 @@ paths: - docker - nuget - container - - *656 + - *651 - *19 - *17 responses: @@ -104203,8 +103525,8 @@ paths: type: array items: *233 examples: - default: *657 - '400': *658 + default: *652 + '400': *653 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -104233,7 +103555,7 @@ paths: application/json: schema: *233 examples: - default: &674 + default: &669 value: id: 40201 name: octo-name @@ -104595,9 +103917,9 @@ paths: application/json: schema: type: array - items: *647 + items: *642 examples: - default: *659 + default: *654 headers: Link: *57 '304': *35 @@ -104710,7 +104032,7 @@ paths: type: array items: *69 examples: - default: &666 + default: &661 summary: Default response value: - id: 1296269 @@ -105028,9 +104350,9 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -105068,9 +104390,9 @@ paths: application/json: schema: type: array - items: *505 + items: *502 examples: - default: *660 + default: *655 headers: Link: *57 '304': *35 @@ -105149,7 +104471,7 @@ paths: application/json: schema: type: array - items: &661 + items: &656 title: Social account description: Social media account type: object @@ -105166,7 +104488,7 @@ paths: - provider - url examples: - default: &662 + default: &657 value: - provider: twitter url: https://twitter.com/github @@ -105229,9 +104551,9 @@ paths: application/json: schema: type: array - items: *661 + items: *656 examples: - default: *662 + default: *657 '422': *15 '304': *35 '404': *6 @@ -105319,7 +104641,7 @@ paths: application/json: schema: type: array - items: &663 + items: &658 title: SSH Signing Key description: A public SSH key used to sign Git commits type: object @@ -105339,7 +104661,7 @@ paths: - title - created_at examples: - default: &692 + default: &687 value: - id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -105404,9 +104726,9 @@ paths: description: Response content: application/json: - schema: *663 + schema: *658 examples: - default: &664 + default: &659 value: id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -105436,7 +104758,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user parameters: - - &665 + - &660 name: ssh_signing_key_id description: The unique identifier of the SSH signing key. in: path @@ -105448,9 +104770,9 @@ paths: description: Response content: application/json: - schema: *663 + schema: *658 examples: - default: *664 + default: *659 '404': *6 '304': *35 '403': *27 @@ -105473,7 +104795,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user parameters: - - *665 + - *660 responses: '204': description: Response @@ -105502,7 +104824,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#list-repositories-starred-by-the-authenticated-user parameters: - - &693 + - &688 name: sort description: The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed @@ -105527,11 +104849,11 @@ paths: type: array items: *69 examples: - default-response: *666 + default-response: *661 application/vnd.github.v3.star+json: schema: type: array - items: &694 + items: &689 title: Starred Repository description: Starred Repository type: object @@ -105687,8 +105009,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response if this repository is starred by you @@ -105716,8 +105038,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#star-a-repository-for-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -105741,8 +105063,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#unstar-a-repository-for-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -105900,10 +105222,10 @@ paths: application/json: schema: oneOf: - - *641 - - *640 + - *636 + - *635 examples: - default-response: &668 + default-response: &663 summary: Default response value: login: octocat @@ -105938,7 +105260,7 @@ paths: following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' - response-with-git-hub-plan-information: &669 + response-with-git-hub-plan-information: &664 summary: Response with GitHub plan information value: login: octocat @@ -106060,7 +105382,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/users#list-users parameters: - - *667 + - *662 - *17 responses: '200': @@ -106109,11 +105431,11 @@ paths: application/json: schema: oneOf: - - *641 - - *640 + - *636 + - *635 examples: - default-response: *668 - response-with-git-hub-plan-information: *669 + default-response: *663 + response-with-git-hub-plan-information: *664 '404': *6 x-github: githubCloudOnly: false @@ -106163,8 +105485,8 @@ paths: required: - subject_digests examples: - default: *670 - withPredicateType: *671 + default: *665 + withPredicateType: *666 responses: '200': description: Response @@ -106218,7 +105540,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: *672 + default: *667 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -106423,7 +105745,7 @@ paths: initiator: type: string examples: - default: *372 + default: *369 '201': description: Response content: @@ -106464,7 +105786,7 @@ paths: type: array items: *233 examples: - default: *657 + default: *652 '403': *27 '401': *23 x-github: @@ -106848,9 +106170,9 @@ paths: application/json: schema: type: array - items: *648 + items: *643 examples: - default: *673 + default: *668 headers: Link: *57 x-github: @@ -106954,7 +106276,7 @@ paths: application/json: schema: *20 examples: - default: *502 + default: *499 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -107079,7 +106401,7 @@ paths: - docker - nuget - container - - *656 + - *651 - *62 - *19 - *17 @@ -107092,10 +106414,10 @@ paths: type: array items: *233 examples: - default: *657 + default: *652 '403': *27 '401': *23 - '400': *658 + '400': *653 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -107125,7 +106447,7 @@ paths: application/json: schema: *233 examples: - default: *674 + default: *669 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -107474,7 +106796,7 @@ paths: type: array items: *254 examples: - default: *675 + default: *670 headers: Link: *57 '304': *35 @@ -107534,7 +106856,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: *676 + items: *671 required: - name - data_type @@ -107550,7 +106872,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: *677 + iteration_configuration: *672 required: - name - data_type @@ -107572,8 +106894,8 @@ paths: value: name: Due date data_type: date - single_select_field: *678 - iteration_field: *679 + single_select_field: *673 + iteration_field: *674 responses: '201': description: Response @@ -107581,11 +106903,11 @@ paths: application/json: schema: *254 examples: - text_field: *680 - number_field: *681 - date_field: *682 - single_select_field: *683 - iteration_field: *684 + text_field: *675 + number_field: *676 + date_field: *677 + single_select_field: *678 + iteration_field: *679 '304': *35 '403': *27 '401': *23 @@ -107607,7 +106929,7 @@ paths: url: https://docs.github.com/rest/projects/fields#get-project-field-for-user parameters: - *251 - - *685 + - *680 - *62 responses: '200': @@ -107616,7 +106938,7 @@ paths: application/json: schema: *254 examples: - default: *686 + default: *681 headers: Link: *57 '304': *35 @@ -107973,7 +107295,7 @@ paths: parameters: - *251 - *62 - - *687 + - *682 - name: fields description: |- Limit results to specific fields, by their IDs. If not specified, the @@ -108248,7 +107570,7 @@ paths: - *108 - *110 - *109 - - *688 + - *683 - *111 responses: '200': @@ -108379,7 +107701,7 @@ paths: parameters: - *62 - *108 - - *689 + - *684 - *109 responses: '200': @@ -108478,9 +107800,9 @@ paths: - *108 - *110 - *109 - - *690 + - *685 - *111 - - *691 + - *686 responses: '200': description: Response when getting a billing usage summary @@ -108614,9 +107936,9 @@ paths: application/json: schema: type: array - items: *661 + items: *656 examples: - default: *662 + default: *657 headers: Link: *57 x-github: @@ -108646,9 +107968,9 @@ paths: application/json: schema: type: array - items: *663 + items: *658 examples: - default: *692 + default: *687 headers: Link: *57 x-github: @@ -108673,7 +107995,7 @@ paths: url: https://docs.github.com/rest/activity/starring#list-repositories-starred-by-a-user parameters: - *62 - - *693 + - *688 - *51 - *17 - *19 @@ -108685,11 +108007,11 @@ paths: schema: anyOf: - type: array - items: *694 + items: *689 - type: array items: *69 examples: - default-response: *666 + default-response: *661 headers: Link: *57 x-github: @@ -108849,7 +108171,7 @@ webhooks: type: string enum: - disabled - enterprise: &695 + enterprise: &690 title: Enterprise description: |- An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -108918,7 +108240,7 @@ webhooks: - created_at - updated_at - avatar_url - installation: &696 + installation: &691 title: Simple Installation description: |- The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured @@ -108939,7 +108261,7 @@ webhooks: required: - id - node_id - organization: &697 + organization: &692 title: Organization Simple description: |- A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -109012,7 +108334,7 @@ webhooks: - public_members_url - avatar_url - description - repository: &698 + repository: &693 title: Repository description: |- The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -109925,10 +109247,10 @@ webhooks: type: string enum: - enabled - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -110004,11 +109326,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - rule: &699 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + rule: &694 title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) @@ -110231,11 +109553,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - rule: *699 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + rule: *694 sender: *4 required: - action @@ -110423,11 +109745,11 @@ webhooks: - everyone required: - from - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - rule: *699 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + rule: *694 sender: *4 required: - action @@ -110511,7 +109833,7 @@ webhooks: type: string enum: - completed - check_run: &701 + check_run: &696 title: CheckRun description: A check performed on the code of a given code change type: object @@ -110621,7 +109943,7 @@ webhooks: - examples: - neutral - deployment: *700 + deployment: *695 details_url: type: string examples: @@ -110719,10 +110041,10 @@ webhooks: - output - app - pull_requests - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 sender: *4 required: - check_run @@ -111115,11 +110437,11 @@ webhooks: type: string enum: - created - check_run: *701 - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + check_run: *696 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 sender: *4 required: - check_run @@ -111515,11 +110837,11 @@ webhooks: type: string enum: - requested_action - check_run: *701 - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + check_run: *696 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 requested_action: description: The action requested by the user. type: object @@ -111924,11 +111246,11 @@ webhooks: type: string enum: - rerequested - check_run: *701 - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + check_run: *696 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 sender: *4 required: - check_run @@ -112920,10 +112242,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -113632,10 +112954,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -114338,10 +113660,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -114510,7 +113832,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -114662,20 +113984,20 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: &702 + commit_oid: &697 description: The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - enterprise: *695 - installation: *696 - organization: *697 - ref: &703 + enterprise: *690 + installation: *691 + organization: *692 + ref: &698 description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - repository: *698 + repository: *693 sender: *4 required: - action @@ -114842,7 +114164,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -115083,12 +114405,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -115186,7 +114508,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -115371,12 +114693,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -115545,7 +114867,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -115722,12 +115044,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -115828,7 +115150,7 @@ webhooks: type: - object - 'null' - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -116017,9 +115339,9 @@ webhooks: type: - string - 'null' - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 ref: description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event @@ -116027,7 +115349,7 @@ webhooks: type: - string - 'null' - repository: *698 + repository: *693 sender: *4 required: - action @@ -116126,7 +115448,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -116273,12 +115595,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -116447,7 +115769,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -116599,10 +115921,10 @@ webhooks: - dismissed_reason - rule - tool - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -116862,10 +116184,10 @@ webhooks: - updated_at - author_association - body - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -116946,18 +116268,18 @@ webhooks: type: - string - 'null' - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 master_branch: description: The name of the repository's default branch (usually `main`). type: string - organization: *697 - pusher_type: &704 + organization: *692 + pusher_type: &699 description: The pusher type for the event. Can be either `user` or a deploy key. type: string - ref: &705 + ref: &700 description: The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource. type: string @@ -116967,7 +116289,7 @@ webhooks: enum: - tag - branch - repository: *698 + repository: *693 sender: *4 required: - ref @@ -117050,9 +116372,9 @@ webhooks: enum: - created definition: *261 - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117137,9 +116459,9 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117217,9 +116539,9 @@ webhooks: enum: - promote_to_enterprise definition: *261 - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117297,9 +116619,9 @@ webhooks: enum: - updated definition: *261 - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117376,10 +116698,10 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - repository: *698 - organization: *697 + enterprise: *690 + installation: *691 + repository: *693 + organization: *692 sender: *4 new_property_values: type: array @@ -117464,18 +116786,18 @@ webhooks: title: delete event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - pusher_type: *704 - ref: *705 + enterprise: *690 + installation: *691 + organization: *692 + pusher_type: *699 + ref: *700 ref_type: description: The type of Git ref object deleted in the repository. type: string enum: - tag - branch - repository: *698 + repository: *693 sender: *4 required: - ref @@ -117559,11 +116881,11 @@ webhooks: type: string enum: - auto_dismissed - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117647,11 +116969,11 @@ webhooks: type: string enum: - auto_reopened - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117735,11 +117057,11 @@ webhooks: type: string enum: - created - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117821,11 +117143,11 @@ webhooks: type: string enum: - dismissed - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117907,11 +117229,11 @@ webhooks: type: string enum: - fixed - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117994,11 +117316,11 @@ webhooks: type: string enum: - reintroduced - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -118080,11 +117402,11 @@ webhooks: type: string enum: - reopened - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -118161,9 +117483,9 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - key: &706 + enterprise: *690 + installation: *691 + key: &701 description: The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. type: object @@ -118201,8 +117523,8 @@ webhooks: - verified - created_at - read_only - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -118279,11 +117601,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - key: *706 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + key: *701 + organization: *692 + repository: *693 sender: *4 required: - action @@ -118855,12 +118177,12 @@ webhooks: - updated_at - statuses_url - repository_url - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: &710 + workflow: &705 title: Workflow type: - object @@ -119598,13 +118920,13 @@ webhooks: description: The URL to review the deployment protection rule. type: string format: uri - deployment: *467 + deployment: *464 pull_requests: type: array - items: *552 - repository: *698 - organization: *697 - installation: *696 + items: *549 + repository: *693 + organization: *692 + installation: *691 sender: *4 responses: '200': @@ -119675,7 +118997,7 @@ webhooks: type: string enum: - approved - approver: &707 + approver: &702 type: object properties: avatar_url: @@ -119718,11 +119040,11 @@ webhooks: type: string comment: type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - reviewers: &708 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + reviewers: &703 type: array items: type: object @@ -119803,7 +119125,7 @@ webhooks: sender: *4 since: type: string - workflow_job_run: &709 + workflow_job_run: &704 type: object properties: conclusion: @@ -120549,18 +119871,18 @@ webhooks: type: string enum: - rejected - approver: *707 + approver: *702 comment: type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - reviewers: *708 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + reviewers: *703 sender: *4 since: type: string - workflow_job_run: *709 + workflow_job_run: *704 workflow_job_runs: type: array items: @@ -121277,13 +120599,13 @@ webhooks: type: string enum: - requested - enterprise: *695 + enterprise: *690 environment: type: string - installation: *696 - organization: *697 - repository: *698 - requestor: &715 + installation: *691 + organization: *692 + repository: *693 + requestor: &710 title: User type: - object @@ -123226,12 +122548,12 @@ webhooks: - updated_at - deployment_url - repository_url - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Deployment Workflow Run type: @@ -123922,7 +123244,7 @@ webhooks: type: string enum: - answered - answer: &713 + answer: &708 type: object properties: author_association: @@ -124082,11 +123404,11 @@ webhooks: - created_at - updated_at - body - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124213,11 +123535,11 @@ webhooks: - from required: - category - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124300,11 +123622,11 @@ webhooks: type: string enum: - closed - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124386,7 +123708,7 @@ webhooks: type: string enum: - created - comment: &712 + comment: &707 type: object properties: author_association: @@ -124546,11 +123868,11 @@ webhooks: - updated_at - body - reactions - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124633,12 +123955,12 @@ webhooks: type: string enum: - deleted - comment: *712 - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + comment: *707 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124733,12 +124055,12 @@ webhooks: - from required: - body - comment: *712 - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + comment: *707 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124822,11 +124144,11 @@ webhooks: type: string enum: - created - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124908,11 +124230,11 @@ webhooks: type: string enum: - deleted - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125012,11 +124334,11 @@ webhooks: type: string required: - from - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125098,10 +124420,10 @@ webhooks: type: string enum: - labeled - discussion: *711 - enterprise: *695 - installation: *696 - label: &714 + discussion: *706 + enterprise: *690 + installation: *691 + label: &709 title: Label type: object properties: @@ -125134,8 +124456,8 @@ webhooks: - color - default - description - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125218,11 +124540,11 @@ webhooks: type: string enum: - locked - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125304,11 +124626,11 @@ webhooks: type: string enum: - pinned - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125390,11 +124712,11 @@ webhooks: type: string enum: - reopened - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125479,16 +124801,16 @@ webhooks: changes: type: object properties: - new_discussion: *711 - new_repository: *698 + new_discussion: *706 + new_repository: *693 required: - new_discussion - new_repository - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125571,10 +124893,10 @@ webhooks: type: string enum: - unanswered - discussion: *711 - old_answer: *713 - organization: *697 - repository: *698 + discussion: *706 + old_answer: *708 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125656,12 +124978,12 @@ webhooks: type: string enum: - unlabeled - discussion: *711 - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125744,11 +125066,11 @@ webhooks: type: string enum: - unlocked - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125830,11 +125152,11 @@ webhooks: type: string enum: - unpinned - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125907,7 +125229,7 @@ webhooks: description: A user forks a repository. type: object properties: - enterprise: *695 + enterprise: *690 forkee: description: The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource. @@ -126585,9 +125907,9 @@ webhooks: type: integer watchers_count: type: integer - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - forkee @@ -126733,9 +126055,9 @@ webhooks: title: gollum event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pages: description: The pages that were updated. type: array @@ -126773,7 +126095,7 @@ webhooks: - action - sha - html_url - repository: *698 + repository: *693 sender: *4 required: - pages @@ -126849,10 +126171,10 @@ webhooks: type: string enum: - created - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: &716 + organization: *692 + repositories: &711 description: An array of repository objects that the installation can access. type: array @@ -126878,8 +126200,8 @@ webhooks: - name - full_name - private - repository: *698 - requester: *715 + repository: *693 + requester: *710 sender: *4 required: - action @@ -126954,11 +126276,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127035,11 +126357,11 @@ webhooks: type: string enum: - new_permissions_accepted - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127116,10 +126438,10 @@ webhooks: type: string enum: - added - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories_added: &717 + organization: *692 + repositories_added: &712 description: An array of repository objects, which were added to the installation. type: array @@ -127165,15 +126487,15 @@ webhooks: private: description: Whether the repository is private or public. type: boolean - repository: *698 - repository_selection: &718 + repository: *693 + repository_selection: &713 description: Describe whether all repositories have been selected or there's a selection involved type: string enum: - all - selected - requester: *715 + requester: *710 sender: *4 required: - action @@ -127252,10 +126574,10 @@ webhooks: type: string enum: - removed - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories_added: *717 + organization: *692 + repositories_added: *712 repositories_removed: description: An array of repository objects, which were removed from the installation. @@ -127282,9 +126604,9 @@ webhooks: - name - full_name - private - repository: *698 - repository_selection: *718 - requester: *715 + repository: *693 + repository_selection: *713 + requester: *710 sender: *4 required: - action @@ -127363,11 +126685,11 @@ webhooks: type: string enum: - suspend - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127549,10 +126871,10 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 target_type: type: string @@ -127631,11 +126953,11 @@ webhooks: type: string enum: - unsuspend - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127883,8 +127205,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. @@ -128701,8 +128023,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 state: description: State of the issue; either 'open' or 'closed' type: string @@ -129063,8 +128385,8 @@ webhooks: - state - locked - assignee - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -129144,7 +128466,7 @@ webhooks: type: string enum: - deleted - comment: &719 + comment: &714 title: issue comment description: The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. @@ -129311,8 +128633,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. @@ -130125,8 +129447,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 state: description: State of the issue; either 'open' or 'closed' type: string @@ -130489,8 +129811,8 @@ webhooks: - state - locked - assignee - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -130570,7 +129892,7 @@ webhooks: type: string enum: - edited - changes: &743 + changes: &738 description: The changes to the comment. type: object properties: @@ -130582,9 +129904,9 @@ webhooks: type: string required: - from - comment: *719 - enterprise: *695 - installation: *696 + comment: *714 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. @@ -131400,8 +130722,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 state: description: State of the issue; either 'open' or 'closed' type: string @@ -131762,8 +131084,8 @@ webhooks: - state - locked - assignee - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -131853,9 +131175,9 @@ webhooks: type: number blocking_issue: *71 blocking_issue_repo: *69 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -131944,9 +131266,9 @@ webhooks: type: number blocking_issue: *71 blocking_issue_repo: *69 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -132034,9 +131356,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -132125,9 +131447,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -132207,10 +131529,10 @@ webhooks: type: string enum: - assigned - assignee: *715 - enterprise: *695 - installation: *696 - issue: &722 + assignee: *710 + enterprise: *690 + installation: *691 + issue: &717 title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -133022,11 +132344,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -133146,8 +132468,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -133227,8 +132549,8 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -134045,11 +133367,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -134312,8 +133634,8 @@ webhooks: required: - state - closed_at - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -134392,8 +133714,8 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -135201,11 +134523,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -135324,8 +134646,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -135404,8 +134726,8 @@ webhooks: type: string enum: - demilestoned - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -136236,11 +135558,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -136338,7 +135660,7 @@ webhooks: format: uri user_view_type: type: string - milestone: &720 + milestone: &715 title: Milestone description: A collection of related issues and pull requests. type: object @@ -136481,8 +135803,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -136581,8 +135903,8 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -137394,11 +136716,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -137518,9 +136840,9 @@ webhooks: - active_lock_reason - body - reactions - label: *714 - organization: *697 - repository: *698 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -137600,8 +136922,8 @@ webhooks: type: string enum: - labeled - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -138412,11 +137734,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -138536,9 +137858,9 @@ webhooks: - active_lock_reason - body - reactions - label: *714 - organization: *697 - repository: *698 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -138618,8 +137940,8 @@ webhooks: type: string enum: - locked - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -139455,11 +138777,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -139556,8 +138878,8 @@ webhooks: format: uri user_view_type: type: string - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -139636,8 +138958,8 @@ webhooks: type: string enum: - milestoned - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -140467,11 +139789,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -140568,9 +139890,9 @@ webhooks: format: uri user_view_type: type: string - milestone: *720 - organization: *697 - repository: *698 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -141462,11 +140784,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -142043,8 +141365,8 @@ webhooks: required: - old_issue - old_repository - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -142856,11 +142178,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -142979,8 +142301,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -143060,9 +142382,9 @@ webhooks: type: string enum: - pinned - enterprise: *695 - installation: *696 - issue: &721 + enterprise: *690 + installation: *691 + issue: &716 title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -143868,11 +143190,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -143991,8 +143313,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -144071,8 +143393,8 @@ webhooks: type: string enum: - reopened - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -144906,11 +144228,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -145008,8 +144330,8 @@ webhooks: user_view_type: type: string type: *216 - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -145898,11 +145220,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -146501,11 +145823,11 @@ webhooks: required: - new_issue - new_repository - enterprise: *695 - installation: *696 - issue: *721 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *716 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146585,12 +145907,12 @@ webhooks: type: string enum: - typed - enterprise: *695 - installation: *696 - issue: *722 + enterprise: *690 + installation: *691 + issue: *717 type: *216 - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146671,7 +145993,7 @@ webhooks: type: string enum: - unassigned - assignee: &746 + assignee: &741 title: User type: - object @@ -146743,11 +146065,11 @@ webhooks: required: - login - id - enterprise: *695 - installation: *696 - issue: *722 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *717 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146826,12 +146148,12 @@ webhooks: type: string enum: - unlabeled - enterprise: *695 - installation: *696 - issue: *722 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *717 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146911,8 +146233,8 @@ webhooks: type: string enum: - unlocked - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -147746,11 +147068,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -147847,8 +147169,8 @@ webhooks: format: uri user_view_type: type: string - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -147928,11 +147250,11 @@ webhooks: type: string enum: - unpinned - enterprise: *695 - installation: *696 - issue: *721 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *716 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148011,12 +147333,12 @@ webhooks: type: string enum: - untyped - enterprise: *695 - installation: *696 - issue: *722 + enterprise: *690 + installation: *691 + issue: *717 type: *216 - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148096,11 +147418,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148178,11 +147500,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148292,11 +147614,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148378,9 +147700,9 @@ webhooks: - cancelled effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: &723 + enterprise: *690 + installation: *691 + marketplace_purchase: &718 title: Marketplace Purchase type: object required: @@ -148468,8 +147790,8 @@ webhooks: type: integer unit_count: type: integer - organization: *697 - previous_marketplace_purchase: &724 + organization: *692 + previous_marketplace_purchase: &719 title: Marketplace Purchase type: object properties: @@ -148553,7 +147875,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *698 + repository: *693 sender: *4 required: - action @@ -148633,10 +147955,10 @@ webhooks: - changed effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: *723 - organization: *697 + enterprise: *690 + installation: *691 + marketplace_purchase: *718 + organization: *692 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -148724,7 +148046,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *698 + repository: *693 sender: *4 required: - action @@ -148806,10 +148128,10 @@ webhooks: - pending_change effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: *723 - organization: *697 + enterprise: *690 + installation: *691 + marketplace_purchase: *718 + organization: *692 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -148895,7 +148217,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *698 + repository: *693 sender: *4 required: - action @@ -148976,8 +148298,8 @@ webhooks: - pending_change_cancelled effective_date: type: string - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 marketplace_purchase: title: Marketplace Purchase type: object @@ -149063,9 +148385,9 @@ webhooks: type: integer unit_count: type: integer - organization: *697 - previous_marketplace_purchase: *724 - repository: *698 + organization: *692 + previous_marketplace_purchase: *719 + repository: *693 sender: *4 required: - action @@ -149145,12 +148467,12 @@ webhooks: - purchased effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: *723 - organization: *697 - previous_marketplace_purchase: *724 - repository: *698 + enterprise: *690 + installation: *691 + marketplace_purchase: *718 + organization: *692 + previous_marketplace_purchase: *719 + repository: *693 sender: *4 required: - action @@ -149252,11 +148574,11 @@ webhooks: type: string required: - to - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 sender: *4 required: - action @@ -149358,11 +148680,11 @@ webhooks: type: - string - 'null' - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 sender: *4 required: - action @@ -149441,11 +148763,11 @@ webhooks: type: string enum: - removed - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 sender: *4 required: - action @@ -149523,11 +148845,11 @@ webhooks: type: string enum: - added - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 scope: description: The scope of the membership. Currently, can only be `team`. @@ -149605,7 +148927,7 @@ webhooks: required: - login - id - team: &725 + team: &720 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -149835,11 +149157,11 @@ webhooks: type: string enum: - removed - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 scope: description: The scope of the membership. Currently, can only be `team`. @@ -149918,7 +149240,7 @@ webhooks: required: - login - id - team: *725 + team: *720 required: - action - scope @@ -150000,8 +149322,8 @@ webhooks: type: string enum: - checks_requested - installation: *696 - merge_group: &726 + installation: *691 + merge_group: &721 type: object title: Merge Group description: A group of pull requests that the merge queue has grouped @@ -150020,15 +149342,15 @@ webhooks: description: The full ref of the branch the merge group will be merged into. type: string - head_commit: *392 + head_commit: *389 required: - head_sha - head_ref - base_sha - base_ref - head_commit - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150114,10 +149436,10 @@ webhooks: - merged - invalidated - dequeued - installation: *696 - merge_group: *726 - organization: *697 - repository: *698 + installation: *691 + merge_group: *721 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150190,7 +149512,7 @@ webhooks: type: string enum: - deleted - enterprise: *695 + enterprise: *690 hook: description: 'The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, @@ -150299,12 +149621,12 @@ webhooks: hook_id: description: The id of the modified webhook. type: integer - installation: *696 - organization: *697 + installation: *691 + organization: *692 repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -150384,11 +149706,11 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 - milestone: *720 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150467,9 +149789,9 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - milestone: &727 + enterprise: *690 + installation: *691 + milestone: &722 title: Milestone description: A collection of related issues and pull requests. type: object @@ -150611,8 +149933,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150691,11 +150013,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - milestone: *720 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150805,11 +150127,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - milestone: *720 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150889,11 +150211,11 @@ webhooks: type: string enum: - opened - enterprise: *695 - installation: *696 - milestone: *727 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *722 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150972,11 +150294,11 @@ webhooks: type: string enum: - blocked - blocked_user: *715 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + blocked_user: *710 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151055,11 +150377,11 @@ webhooks: type: string enum: - unblocked - blocked_user: *715 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + blocked_user: *710 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151138,9 +150460,9 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - membership: &728 + enterprise: *690 + installation: *691 + membership: &723 title: Membership description: The membership between the user and the organization. Not present when the action is `member_invited`. @@ -151250,8 +150572,8 @@ webhooks: - role - organization_url - user - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151329,11 +150651,11 @@ webhooks: type: string enum: - member_added - enterprise: *695 - installation: *696 - membership: *728 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + membership: *723 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151412,8 +150734,8 @@ webhooks: type: string enum: - member_invited - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 invitation: description: The invitation for the user or email if the action is `member_invited`. @@ -151535,10 +150857,10 @@ webhooks: - inviter - team_count - invitation_teams_url - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 - user: *715 + user: *710 required: - action - invitation @@ -151616,11 +150938,11 @@ webhooks: type: string enum: - member_removed - enterprise: *695 - installation: *696 - membership: *728 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + membership: *723 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151707,11 +151029,11 @@ webhooks: properties: from: type: string - enterprise: *695 - installation: *696 - membership: *728 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + membership: *723 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151787,9 +151109,9 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 package: description: Information about the package. type: object @@ -152312,7 +151634,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: &729 + items: &724 title: Ruby Gems metadata type: object properties: @@ -152409,7 +151731,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -152485,9 +151807,9 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 package: description: Information about the package. type: object @@ -152849,7 +152171,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *729 + items: *724 source_url: type: string format: uri @@ -152920,7 +152242,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -153101,12 +152423,12 @@ webhooks: - duration - created_at - updated_at - enterprise: *695 + enterprise: *690 id: type: integer - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - id @@ -153183,7 +152505,7 @@ webhooks: type: string enum: - approved - personal_access_token_request: &730 + personal_access_token_request: &725 title: Personal Access Token Request description: Details of a Personal Access Token Request. type: object @@ -153333,10 +152655,10 @@ webhooks: - token_expired - token_expires_at - token_last_used_at - enterprise: *695 - organization: *697 + enterprise: *690 + organization: *692 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153413,11 +152735,11 @@ webhooks: type: string enum: - cancelled - personal_access_token_request: *730 - enterprise: *695 - organization: *697 + personal_access_token_request: *725 + enterprise: *690 + organization: *692 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153493,11 +152815,11 @@ webhooks: type: string enum: - created - personal_access_token_request: *730 - enterprise: *695 - organization: *697 + personal_access_token_request: *725 + enterprise: *690 + organization: *692 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153572,11 +152894,11 @@ webhooks: type: string enum: - denied - personal_access_token_request: *730 - organization: *697 - enterprise: *695 + personal_access_token_request: *725 + organization: *692 + enterprise: *690 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153681,7 +153003,7 @@ webhooks: id: description: Unique identifier of the webhook. type: integer - last_response: *731 + last_response: *726 name: description: The type of webhook. The only valid value is 'web'. type: string @@ -153713,8 +153035,8 @@ webhooks: hook_id: description: The ID of the webhook that triggered the ping. type: integer - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 zen: description: Random string of GitHub zen. @@ -153959,10 +153281,10 @@ webhooks: - from required: - note - enterprise: *695 - installation: *696 - organization: *697 - project_card: &732 + enterprise: *690 + installation: *691 + organization: *692 + project_card: &727 title: Project Card type: object properties: @@ -154085,7 +153407,7 @@ webhooks: - creator - created_at - updated_at - repository: *698 + repository: *693 sender: *4 required: - action @@ -154166,11 +153488,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - project_card: *732 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_card: *727 + repository: *693 sender: *4 required: - action @@ -154250,9 +153572,9 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 project_card: title: Project Card type: object @@ -154382,7 +153704,7 @@ webhooks: repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -154476,11 +153798,11 @@ webhooks: - from required: - note - enterprise: *695 - installation: *696 - organization: *697 - project_card: *732 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_card: *727 + repository: *693 sender: *4 required: - action @@ -154574,9 +153896,9 @@ webhooks: - from required: - column_id - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 project_card: allOf: - title: Project Card @@ -154773,7 +154095,7 @@ webhooks: type: string required: - after_id - repository: *698 + repository: *693 sender: *4 required: - action @@ -154853,10 +154175,10 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 - organization: *697 - project: &734 + enterprise: *690 + installation: *691 + organization: *692 + project: &729 title: Project type: object properties: @@ -154983,7 +154305,7 @@ webhooks: - creator - created_at - updated_at - repository: *698 + repository: *693 sender: *4 required: - action @@ -155063,10 +154385,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - project_column: &733 + enterprise: *690 + installation: *691 + organization: *692 + project_column: &728 title: Project Column type: object properties: @@ -155106,7 +154428,7 @@ webhooks: - name - created_at - updated_at - repository: *698 + repository: *693 sender: *4 required: - action @@ -155185,14 +154507,14 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - project_column: *733 + enterprise: *690 + installation: *691 + organization: *692 + project_column: *728 repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -155281,11 +154603,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - project_column: *733 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_column: *728 + repository: *693 sender: *4 required: - action @@ -155365,11 +154687,11 @@ webhooks: type: string enum: - moved - enterprise: *695 - installation: *696 - organization: *697 - project_column: *733 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_column: *728 + repository: *693 sender: *4 required: - action @@ -155449,11 +154771,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - project: *734 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 + repository: *693 sender: *4 required: - action @@ -155533,14 +154855,14 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - project: *734 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -155641,11 +154963,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - project: *734 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 + repository: *693 sender: *4 required: - action @@ -155724,11 +155046,11 @@ webhooks: type: string enum: - reopened - enterprise: *695 - installation: *696 - organization: *697 - project: *734 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 + repository: *693 sender: *4 required: - action @@ -155809,8 +155131,8 @@ webhooks: type: string enum: - closed - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -155892,8 +155214,8 @@ webhooks: type: string enum: - created - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -155975,8 +155297,8 @@ webhooks: type: string enum: - deleted - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -156098,8 +155420,8 @@ webhooks: type: string to: type: string - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -156183,7 +155505,7 @@ webhooks: type: string enum: - archived - changes: &738 + changes: &733 type: object properties: archived_at: @@ -156199,9 +155521,9 @@ webhooks: - string - 'null' format: date-time - installation: *696 - organization: *697 - projects_v2_item: &735 + installation: *691 + organization: *692 + projects_v2_item: &730 title: Projects v2 Item description: An item belonging to a project type: object @@ -156341,9 +155663,9 @@ webhooks: - 'null' to: type: string - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156425,9 +155747,9 @@ webhooks: type: string enum: - created - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156508,9 +155830,9 @@ webhooks: type: string enum: - deleted - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156615,7 +155937,7 @@ webhooks: oneOf: - type: string - type: integer - - &736 + - &731 title: Projects v2 Single Select Option description: An option for a single select field type: object @@ -156639,7 +155961,7 @@ webhooks: required: - id - name - - &737 + - &732 title: Projects v2 Iteration Setting description: An iteration setting for an iteration field type: object @@ -156679,8 +156001,8 @@ webhooks: oneOf: - type: string - type: integer - - *736 - - *737 + - *731 + - *732 type: - 'null' - string @@ -156703,9 +156025,9 @@ webhooks: - 'null' required: - body - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156802,9 +156124,9 @@ webhooks: type: - string - 'null' - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156887,10 +156209,10 @@ webhooks: type: string enum: - restored - changes: *738 - installation: *696 - organization: *697 - projects_v2_item: *735 + changes: *733 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156972,8 +156294,8 @@ webhooks: type: string enum: - reopened - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -157055,9 +156377,9 @@ webhooks: type: string enum: - created - installation: *696 - organization: *697 - projects_v2_status_update: *739 + installation: *691 + organization: *692 + projects_v2_status_update: *734 sender: *4 required: - action @@ -157138,9 +156460,9 @@ webhooks: type: string enum: - deleted - installation: *696 - organization: *697 - projects_v2_status_update: *739 + installation: *691 + organization: *692 + projects_v2_status_update: *734 sender: *4 required: - action @@ -157286,9 +156608,9 @@ webhooks: - string - 'null' format: date - installation: *696 - organization: *697 - projects_v2_status_update: *739 + installation: *691 + organization: *692 + projects_v2_status_update: *734 sender: *4 required: - action @@ -157359,10 +156681,10 @@ webhooks: title: public event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - repository @@ -157439,13 +156761,13 @@ webhooks: type: string enum: - assigned - assignee: *715 - enterprise: *695 - installation: *696 - number: &740 + assignee: *710 + enterprise: *690 + installation: *691 + number: &735 description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -159794,7 +159116,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -159876,11 +159198,11 @@ webhooks: type: string enum: - auto_merge_disabled - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -162222,7 +161544,7 @@ webhooks: - draft reason: type: string - repository: *698 + repository: *693 sender: *4 required: - action @@ -162304,11 +161626,11 @@ webhooks: type: string enum: - auto_merge_enabled - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -164650,7 +163972,7 @@ webhooks: - draft reason: type: string - repository: *698 + repository: *693 sender: *4 required: - action @@ -164732,13 +164054,13 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: &741 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: &736 allOf: - - *552 + - *549 - type: object properties: allow_auto_merge: @@ -164800,7 +164122,7 @@ webhooks: Please use `squash_merge_commit_title` instead.** type: boolean default: false - repository: *698 + repository: *693 sender: *4 required: - action @@ -164881,12 +164203,12 @@ webhooks: type: string enum: - converted_to_draft - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -164966,11 +164288,11 @@ webhooks: type: string enum: - demilestoned - enterprise: *695 + enterprise: *690 milestone: *252 - number: *740 - organization: *697 - pull_request: &742 + number: *735 + organization: *692 + pull_request: &737 title: Pull Request type: object properties: @@ -167297,7 +166619,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -167376,11 +166698,11 @@ webhooks: type: string enum: - dequeued - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -169726,7 +169048,7 @@ webhooks: - BRANCH_PROTECTIONS - GIT_TREE_INVALID - INVALID_MERGE_COMMIT - repository: *698 + repository: *693 sender: *4 required: - action @@ -169850,12 +169172,12 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -169935,11 +169257,11 @@ webhooks: type: string enum: - enqueued - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -172270,7 +171592,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -172350,11 +171672,11 @@ webhooks: type: string enum: - labeled - enterprise: *695 - installation: *696 - label: *714 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + label: *709 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -174702,7 +174024,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -174783,10 +174105,10 @@ webhooks: type: string enum: - locked - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -177132,7 +176454,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -177212,12 +176534,12 @@ webhooks: type: string enum: - milestoned - enterprise: *695 + enterprise: *690 milestone: *252 - number: *740 - organization: *697 - pull_request: *742 - repository: *698 + number: *735 + organization: *692 + pull_request: *737 + repository: *693 sender: *4 required: - action @@ -177296,12 +176618,12 @@ webhooks: type: string enum: - opened - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -177382,12 +176704,12 @@ webhooks: type: string enum: - ready_for_review - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -177467,12 +176789,12 @@ webhooks: type: string enum: - reopened - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -177847,9 +177169,9 @@ webhooks: - start_side - side - reactions - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: type: object properties: @@ -180079,7 +179401,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *698 + repository: *693 sender: *4 required: - action @@ -180159,7 +179481,7 @@ webhooks: type: string enum: - deleted - comment: &744 + comment: &739 title: Pull Request Review Comment description: The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. @@ -180452,9 +179774,9 @@ webhooks: - start_side - side - reactions - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: type: object properties: @@ -182672,7 +181994,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *698 + repository: *693 sender: *4 required: - action @@ -182752,11 +182074,11 @@ webhooks: type: string enum: - edited - changes: *743 - comment: *744 - enterprise: *695 - installation: *696 - organization: *697 + changes: *738 + comment: *739 + enterprise: *690 + installation: *691 + organization: *692 pull_request: type: object properties: @@ -184977,7 +184299,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *698 + repository: *693 sender: *4 required: - action @@ -185058,9 +184380,9 @@ webhooks: type: string enum: - dismissed - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -187293,7 +186615,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 + repository: *693 review: description: The review that was affected. type: object @@ -187544,9 +186866,9 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -189660,8 +188982,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 - review: &745 + repository: *693 + review: &740 description: The review that was affected. type: object properties: @@ -189899,12 +189221,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -192251,7 +191573,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_reviewer: title: User type: @@ -192337,12 +191659,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -194696,7 +194018,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_team: title: Team description: Groups of organization members that gives permissions @@ -194891,12 +194213,12 @@ webhooks: type: string enum: - review_requested - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -197245,7 +196567,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_reviewer: title: User type: @@ -197332,12 +196654,12 @@ webhooks: type: string enum: - review_requested - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -199677,7 +198999,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_team: title: Team description: Groups of organization members that gives permissions @@ -199861,9 +199183,9 @@ webhooks: type: string enum: - submitted - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -202099,8 +201421,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 - review: *745 + repository: *693 + review: *740 sender: *4 required: - action @@ -202180,9 +201502,9 @@ webhooks: type: string enum: - resolved - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -204313,7 +203635,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 + repository: *693 sender: *4 thread: type: object @@ -204710,9 +204032,9 @@ webhooks: type: string enum: - unresolved - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -206826,7 +206148,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 + repository: *693 sender: *4 thread: type: object @@ -207225,10 +206547,10 @@ webhooks: type: string before: type: string - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -209563,7 +208885,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -209645,11 +208967,11 @@ webhooks: type: string enum: - unassigned - assignee: *746 - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + assignee: *741 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -211999,7 +211321,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -212078,11 +211400,11 @@ webhooks: type: string enum: - unlabeled - enterprise: *695 - installation: *696 - label: *714 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + label: *709 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -214421,7 +213743,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -214502,10 +213824,10 @@ webhooks: type: string enum: - unlocked - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -216834,7 +216156,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -217037,7 +216359,7 @@ webhooks: deleted: description: Whether this push deleted the `ref`. type: boolean - enterprise: *695 + enterprise: *690 forced: description: Whether this push was a force push of the `ref`. type: boolean @@ -217132,8 +216454,8 @@ webhooks: - url - author - committer - installation: *696 - organization: *697 + installation: *691 + organization: *692 pusher: title: Committer description: Metaproperties for Git author/committer information. @@ -217721,9 +217043,9 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 registry_package: type: object properties: @@ -218200,7 +217522,7 @@ webhooks: type: string rubygems_metadata: type: array - items: *729 + items: *724 summary: type: string tag_name: @@ -218256,7 +217578,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -218334,9 +217656,9 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 registry_package: type: object properties: @@ -218648,7 +217970,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *729 + items: *724 summary: type: string tag_name: @@ -218698,7 +218020,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -218775,10 +218097,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - release: &747 + enterprise: *690 + installation: *691 + organization: *692 + release: &742 title: Release description: The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. @@ -219109,7 +218431,7 @@ webhooks: - updated_at - zipball_url - body - repository: *698 + repository: *693 sender: *4 required: - action @@ -219186,11 +218508,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - release: *747 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *742 + repository: *693 sender: *4 required: - action @@ -219307,11 +218629,11 @@ webhooks: type: boolean required: - to - enterprise: *695 - installation: *696 - organization: *697 - release: *747 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *742 + repository: *693 sender: *4 required: - action @@ -219389,9 +218711,9 @@ webhooks: type: string enum: - prereleased - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 release: title: Release description: The [release](https://docs.github.com/rest/releases/releases/#get-a-release) @@ -219727,7 +219049,7 @@ webhooks: - string - 'null' format: uri - repository: *698 + repository: *693 sender: *4 required: - action @@ -219803,10 +219125,10 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 - release: &748 + enterprise: *690 + installation: *691 + organization: *692 + release: &743 title: Release description: The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. @@ -220139,7 +219461,7 @@ webhooks: - string - 'null' format: uri - repository: *698 + repository: *693 sender: *4 required: - action @@ -220215,11 +219537,11 @@ webhooks: type: string enum: - released - enterprise: *695 - installation: *696 - organization: *697 - release: *747 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *742 + repository: *693 sender: *4 required: - action @@ -220295,11 +219617,11 @@ webhooks: type: string enum: - unpublished - enterprise: *695 - installation: *696 - organization: *697 - release: *748 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *743 + repository: *693 sender: *4 required: - action @@ -220375,11 +219697,11 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - repository_advisory: *616 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + repository_advisory: *613 sender: *4 required: - action @@ -220455,11 +219777,11 @@ webhooks: type: string enum: - reported - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - repository_advisory: *616 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + repository_advisory: *613 sender: *4 required: - action @@ -220535,10 +219857,10 @@ webhooks: type: string enum: - archived - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220615,10 +219937,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220696,10 +220018,10 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220784,10 +220106,10 @@ webhooks: additionalProperties: true description: The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220902,10 +220224,10 @@ webhooks: - 'null' items: type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220977,10 +220299,10 @@ webhooks: title: repository_import event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 status: type: string @@ -221061,10 +220383,10 @@ webhooks: type: string enum: - privatized - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221141,10 +220463,10 @@ webhooks: type: string enum: - publicized - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221238,10 +220560,10 @@ webhooks: - name required: - repository - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221321,10 +220643,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 repository_ruleset: *292 sender: *4 required: @@ -221403,10 +220725,10 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 repository_ruleset: *292 sender: *4 required: @@ -221485,10 +220807,10 @@ webhooks: type: string enum: - edited - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 repository_ruleset: *292 changes: type: object @@ -221550,16 +220872,16 @@ webhooks: properties: added: type: array - items: *572 + items: *569 deleted: type: array - items: *572 + items: *569 updated: type: array items: type: object properties: - rule: *572 + rule: *569 changes: type: object properties: @@ -221796,10 +221118,10 @@ webhooks: - from required: - owner - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221877,10 +221199,10 @@ webhooks: type: string enum: - unarchived - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221958,7 +221280,7 @@ webhooks: type: string enum: - create - alert: &749 + alert: &744 title: Repository Vulnerability Alert Alert description: The security alert of the vulnerable dependency. type: object @@ -222082,10 +221404,10 @@ webhooks: type: string enum: - open - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222295,10 +221617,10 @@ webhooks: type: string enum: - dismissed - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222376,11 +221698,11 @@ webhooks: type: string enum: - reopen - alert: *749 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *744 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222582,10 +221904,10 @@ webhooks: enum: - fixed - open - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222663,7 +221985,7 @@ webhooks: type: string enum: - assigned - alert: &750 + alert: &745 type: object properties: number: *163 @@ -222778,10 +222100,10 @@ webhooks: - type: 'null' - *4 assignee: *4 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222859,11 +222181,11 @@ webhooks: type: string enum: - created - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222944,11 +222266,11 @@ webhooks: type: string enum: - created - alert: *750 - installation: *696 - location: *751 - organization: *697 - repository: *698 + alert: *745 + installation: *691 + location: *746 + organization: *692 + repository: *693 sender: *4 required: - location @@ -223186,11 +222508,11 @@ webhooks: type: string enum: - publicly_leaked - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223268,11 +222590,11 @@ webhooks: type: string enum: - reopened - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223350,11 +222672,11 @@ webhooks: type: string enum: - resolved - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223432,12 +222754,12 @@ webhooks: type: string enum: - unassigned - alert: *750 + alert: *745 assignee: *4 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223515,11 +222837,11 @@ webhooks: type: string enum: - validated - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223649,10 +222971,10 @@ webhooks: - organization - enterprise - - repository: *698 - enterprise: *695 - installation: *696 - organization: *697 + repository: *693 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -223730,11 +223052,11 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - security_advisory: &752 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + security_advisory: &747 description: The details of the security advisory, including summary, description, and severity. type: object @@ -223920,11 +223242,11 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - security_advisory: *752 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + security_advisory: *747 sender: *4 required: - action @@ -223997,10 +223319,10 @@ webhooks: type: string enum: - withdrawn - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 security_advisory: description: The details of the security advisory, including summary, description, and severity. @@ -224187,10 +223509,10 @@ webhooks: type: object properties: security_and_analysis: *265 - enterprise: *695 - installation: *696 - organization: *697 - repository: *314 + enterprise: *690 + installation: *691 + organization: *692 + repository: *311 sender: *4 required: - changes @@ -224268,12 +223590,12 @@ webhooks: type: string enum: - cancelled - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: &753 + sponsorship: &748 type: object properties: created_at: @@ -224578,12 +223900,12 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - sponsorship @@ -224671,12 +223993,12 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - changes @@ -224753,17 +224075,17 @@ webhooks: type: string enum: - pending_cancellation - effective_date: &754 + effective_date: &749 description: The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect. type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - sponsorship @@ -224837,7 +224159,7 @@ webhooks: type: string enum: - pending_tier_change - changes: &755 + changes: &750 type: object properties: tier: @@ -224881,13 +224203,13 @@ webhooks: - from required: - tier - effective_date: *754 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + effective_date: *749 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - changes @@ -224964,13 +224286,13 @@ webhooks: type: string enum: - tier_changed - changes: *755 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + changes: *750 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - changes @@ -225044,10 +224366,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -225131,10 +224453,10 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -225568,15 +224890,15 @@ webhooks: type: - string - 'null' - enterprise: *695 + enterprise: *690 id: description: The unique identifier of the status. type: integer - installation: *696 + installation: *691 name: type: string - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 sha: description: The Commit SHA. @@ -225692,9 +225014,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -225784,9 +225106,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -225876,9 +225198,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -225968,9 +225290,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -226047,12 +225369,12 @@ webhooks: title: team_add event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - team: &756 + team: &751 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -226282,9 +225604,9 @@ webhooks: type: string enum: - added_to_repository - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -226754,7 +226076,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -226830,9 +226152,9 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -227302,7 +226624,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -227379,9 +226701,9 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -227851,7 +227173,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -227995,9 +227317,9 @@ webhooks: - from required: - permissions - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -228467,7 +227789,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - changes @@ -228545,9 +227867,9 @@ webhooks: type: string enum: - removed_from_repository - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -229017,7 +228339,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -229093,10 +228415,10 @@ webhooks: type: string enum: - started - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -229169,17 +228491,17 @@ webhooks: title: workflow_dispatch event type: object properties: - enterprise: *695 + enterprise: *690 inputs: type: - object - 'null' additionalProperties: true - installation: *696 - organization: *697 + installation: *691 + organization: *692 ref: type: string - repository: *698 + repository: *693 sender: *4 workflow: type: string @@ -229261,10 +228583,10 @@ webhooks: type: string enum: - completed - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: allOf: @@ -229520,7 +228842,7 @@ webhooks: type: string required: - conclusion - deployment: *467 + deployment: *464 required: - action - repository @@ -229599,10 +228921,10 @@ webhooks: type: string enum: - in_progress - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: allOf: @@ -229884,7 +229206,7 @@ webhooks: required: - status - steps - deployment: *467 + deployment: *464 required: - action - repository @@ -229963,10 +229285,10 @@ webhooks: type: string enum: - queued - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: type: object @@ -230112,7 +229434,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *467 + deployment: *464 required: - action - repository @@ -230191,10 +229513,10 @@ webhooks: type: string enum: - waiting - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: type: object @@ -230341,7 +229663,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *467 + deployment: *464 required: - action - repository @@ -230421,12 +229743,12 @@ webhooks: type: string enum: - completed - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Workflow Run type: object @@ -231445,12 +230767,12 @@ webhooks: type: string enum: - in_progress - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Workflow Run type: object @@ -232454,12 +231776,12 @@ webhooks: type: string enum: - requested - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Workflow Run type: object diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json index e852876e8..407ba2157 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json @@ -229707,17 +229707,17 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { + "/orgs/{org}/teams/{team_slug}/invitations": { "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + "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]\n> 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-discussions-in-org", + "operationId": "teams/list-pending-invitations-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#list-discussions" + "url": "https://docs.github.com/rest/teams/members#list-pending-team-invitations" }, "parameters": [ { @@ -229739,17 +229739,376 @@ } }, { - "name": "direction", - "description": "The direction to sort the results by.", + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Organization Invitation", + "description": "Organization Invitation", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "login": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "role": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "failed_at": { + "type": [ + "string", + "null" + ] + }, + "failed_reason": { + "type": [ + "string", + "null" + ] + }, + "inviter": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "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" + ] + }, + "team_count": { + "type": "integer" + }, + "node_id": { + "type": "string", + "examples": [ + "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + ] + }, + "invitation_teams_url": { + "type": "string", + "examples": [ + "\"https://api.github.com/organizations/16/invitations/1/teams\"" + ] + }, + "invitation_source": { + "type": "string", + "examples": [ + "\"member\"" + ] + } + }, + "required": [ + "id", + "login", + "email", + "role", + "created_at", + "inviter", + "team_count", + "invitation_teams_url", + "node_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 1, + "login": "monalisa", + "node_id": "MDQ6VXNlcjE=", + "email": "octocat@github.com", + "role": "direct_member", + "created_at": "2016-11-30T06:46:10-08:00", + "failed_at": "", + "failed_reason": "", + "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_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", + "invitation_source": "member" + } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" + } + } + }, + "/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/teams/members#list-team-members" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role", + "description": "Filters members returned by their role in the team.", "in": "query", "required": false, "schema": { "type": "string", "enum": [ - "asc", - "desc" + "member", + "maintainer", + "all" ], - "default": "desc" + "default": "all" } }, { @@ -229769,15 +230128,6 @@ "type": "integer", "default": 1 } - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } } ], "responses": { @@ -229788,346 +230138,170 @@ "schema": { "type": "array", "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Simple User", + "description": "A GitHub user.", "type": "object", "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } + "name": { + "type": [ + "string", + "null" ] }, - "body": { - "description": "The main text of the discussion.", + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { "type": "string", "examples": [ - "Please suggest improvements to our workflow in comments." + "octocat" ] }, - "body_html": { - "type": "string", + "id": { + "type": "integer", + "format": "int64", "examples": [ - "

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

" + 1 ] }, - "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.", + "node_id": { "type": "string", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "MDQ6VXNlcjE=" ] }, - "created_at": { + "avatar_url": { "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://github.com/images/error/octocat_happy.gif" ] }, - "last_edited_at": { + "gravatar_id": { "type": [ "string", "null" ], - "format": "date-time" + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] }, "html_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" + "https://github.com/octocat" ] }, - "node_id": { + "followers_url": { "type": "string", + "format": "uri", "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + "https://api.github.com/users/octocat/followers" ] }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", + "following_url": { + "type": "string", "examples": [ - 42 + "https://api.github.com/users/octocat/following{/other_user}" ] }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", + "gists_url": { + "type": "string", "examples": [ - true + "https://api.github.com/users/octocat/gists{/gist_id}" ] }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", + "starred_url": { + "type": "string", "examples": [ - true + "https://api.github.com/users/octocat/starred{/owner}{/repo}" ] }, - "team_url": { + "subscriptions_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027" + "https://api.github.com/users/octocat/subscriptions" ] }, - "title": { - "description": "The title of the discussion.", + "organizations_url": { "type": "string", + "format": "uri", "examples": [ - "How can we improve our workflow?" + "https://api.github.com/users/octocat/orgs" ] }, - "updated_at": { + "repos_url": { "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/users/octocat/repos" ] }, - "url": { + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "https://api.github.com/users/octocat/received_events" ] }, - "reactions": { - "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" + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", + "avatar_url", + "events_url", + "followers_url", + "following_url", + "gists_url", + "gravatar_id", "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", - "updated_at", + "login", + "organizations_url", + "received_events_url", + "repos_url", + "site_admin", + "starred_url", + "subscriptions_url", + "type", "url" ] } @@ -230136,52 +230310,24 @@ "default": { "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", - "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 - } + "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 } ] } @@ -230202,19 +230348,126 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" + } + } + }, + "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/teams/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/teams/members#get-team-membership-for-a-user" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "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", + "type": "string", + "examples": [ + "member" + ] + }, + "state": { + "description": "The state of the user's membership in the team.", + "type": "string", + "enum": [ + "active", + "pending" + ] + } + }, + "required": [ + "role", + "state", + "url" + ] + }, + "examples": { + "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" + } + } + } + } + } + }, + "404": { + "description": "if user has no team membership" + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" } }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "put": { + "summary": "Add or update team membership for a user", + "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.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]\n> 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/create-discussion-in-org", + "operationId": "teams/add-or-update-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion" + "url": "https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user" }, "parameters": [ { @@ -230234,39 +230487,40 @@ "schema": { "type": "string" } + }, + { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } } ], "requestBody": { - "required": true, + "required": false, "content": { "application/json": { "schema": { "type": "object", "properties": { - "title": { - "type": "string", - "description": "The discussion post's title." - }, - "body": { + "role": { "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 + "description": "The role that this user should have in the team.", + "enum": [ + "member", + "maintainer" + ], + "default": "member" } - }, - "required": [ - "title", - "body" - ] + } }, "examples": { "default": { + "summary": "Add or update team membership for an organization member", "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "role": "maintainer" } } } @@ -230274,430 +230528,83 @@ } }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Team Membership", + "description": "Team Membership", "type": "object", "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { + "url": { "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] + "format": "uri" }, - "last_edited_at": { - "type": [ - "string", - "null" + "role": { + "description": "The role of the user in the team.", + "enum": [ + "member", + "maintainer" ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { + "default": "member", "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "member" ] }, - "url": { + "state": { + "description": "The state of the user's membership in the team.", "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" + "enum": [ + "active", + "pending" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", + "role", + "state", "url" ] }, "examples": { - "default": { + "response-if-users-membership-with-team-is-now-pending": { + "summary": "Response if user's membership with team is now pending", "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", - "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 - } + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "pending" } } } } } + }, + "403": { + "description": "Forbidden if team synchronization is set up" + }, + "422": { + "description": "Unprocessable Entity if you attempt to add an organization to a team" } }, "x-github": { - "triggersNotification": true, "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" } - } - }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + }, + "delete": { + "summary": "Remove team membership for a user", + "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> 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/get-discussion-in-org", + "operationId": "teams/remove-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#get-a-discussion" + "url": "https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user" }, "parameters": [ { @@ -230719,437 +230626,42 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", + "name": "username", + "description": "The handle for the GitHub user account.", "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } } ], "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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", - "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 - } - } - } - } - } - } + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden if team synchronization is set up" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" } - }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + } + }, + "/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]\n> 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/update-discussion-in-org", + "operationId": "teams/list-repos-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion" + "url": "https://docs.github.com/rest/teams/teams#list-team-repositories" }, "parameters": [ { @@ -231171,604 +230683,62 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", "schema": { - "type": "integer" + "type": "integer", + "default": 30 } - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "title": "Welcome to our first team post" - } - } - } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 } } - }, + ], "responses": { "200": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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 + "type": "array", + "items": { + "title": "Minimal Repository", + "description": "Minimal Repository", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1296269 + ] }, - "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", - "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 - } - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - } - }, - "/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]\n> 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/teams/members#list-pending-team-invitations" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Organization Invitation", - "description": "Organization Invitation", - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "login": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" ] }, - "role": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "failed_at": { - "type": [ - "string", - "null" + "name": { + "type": "string", + "examples": [ + "Hello-World" ] }, - "failed_reason": { - "type": [ - "string", - "null" + "full_name": { + "type": "string", + "examples": [ + "octocat/Hello-World" ] }, - "inviter": { + "owner": { "title": "Simple User", "description": "A GitHub user.", "type": "object", @@ -231936,337 +230906,659 @@ "url" ] }, - "team_count": { - "type": "integer" + "private": { + "type": "boolean" }, - "node_id": { + "html_url": { "type": "string", + "format": "uri", "examples": [ - "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + "https://github.com/octocat/Hello-World" ] }, - "invitation_teams_url": { + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "This your first repo!" + ] + }, + "fork": { + "type": "boolean" + }, + "url": { "type": "string", + "format": "uri", "examples": [ - "\"https://api.github.com/organizations/16/invitations/1/teams\"" + "https://api.github.com/repos/octocat/Hello-World" ] }, - "invitation_source": { + "archive_url": { "type": "string", "examples": [ - "\"member\"" + "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" ] - } - }, - "required": [ - "id", - "login", - "email", - "role", - "created_at", - "inviter", - "team_count", - "invitation_teams_url", - "node_id" - ] - } - }, - "examples": { - "default": { - "value": [ - { - "id": 1, - "login": "monalisa", - "node_id": "MDQ6VXNlcjE=", - "email": "octocat@github.com", - "role": "direct_member", - "created_at": "2016-11-30T06:46:10-08:00", - "failed_at": "", - "failed_reason": "", - "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_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", - "invitation_source": "member" - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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/teams/members#list-team-members" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "role", - "description": "Filters members returned by their role in the team.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "member", - "maintainer", - "all" - ], - "default": "all" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" + }, + "assignees_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" ] }, - "email": { - "type": [ - "string", - "null" + "blobs_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" ] }, - "login": { + "branches_url": { "type": "string", "examples": [ - "octocat" + "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" ] }, - "id": { - "type": "integer", - "format": "int64", + "collaborators_url": { + "type": "string", "examples": [ - 1 + "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" ] }, - "node_id": { + "comments_url": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" + "http://api.github.com/repos/octocat/Hello-World/comments{/number}" ] }, - "avatar_url": { + "commits_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" + ] + }, + "compare_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" + ] + }, + "contents_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" + ] + }, + "contributors_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/images/error/octocat_happy.gif" + "http://api.github.com/repos/octocat/Hello-World/contributors" ] }, - "gravatar_id": { - "type": [ - "string", - "null" - ], + "deployments_url": { + "type": "string", + "format": "uri", "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "http://api.github.com/repos/octocat/Hello-World/deployments" ] }, - "url": { + "downloads_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "http://api.github.com/repos/octocat/Hello-World/downloads" ] }, - "html_url": { + "events_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/octocat" + "http://api.github.com/repos/octocat/Hello-World/events" ] }, - "followers_url": { + "forks_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "http://api.github.com/repos/octocat/Hello-World/forks" ] }, - "following_url": { + "git_commits_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" ] }, - "gists_url": { + "git_refs_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" ] }, - "starred_url": { + "git_tags_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" ] }, - "subscriptions_url": { + "git_url": { + "type": "string" + }, + "issue_comment_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" + ] + }, + "issue_events_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" + ] + }, + "issues_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/issues{/number}" + ] + }, + "keys_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" + ] + }, + "labels_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/labels{/name}" + ] + }, + "languages_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "http://api.github.com/repos/octocat/Hello-World/languages" ] }, - "organizations_url": { + "merges_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "http://api.github.com/repos/octocat/Hello-World/merges" ] }, - "repos_url": { + "milestones_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" + ] + }, + "notifications_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" + ] + }, + "pulls_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" + ] + }, + "releases_url": { + "type": "string", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/releases{/id}" + ] + }, + "ssh_url": { + "type": "string" + }, + "stargazers_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "http://api.github.com/repos/octocat/Hello-World/stargazers" ] }, - "events_url": { + "statuses_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" ] }, - "received_events_url": { + "subscribers_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "http://api.github.com/repos/octocat/Hello-World/subscribers" ] }, - "type": { + "subscription_url": { "type": "string", + "format": "uri", "examples": [ - "User" + "http://api.github.com/repos/octocat/Hello-World/subscription" ] }, - "site_admin": { - "type": "boolean" + "tags_url": { + "type": "string", + "format": "uri", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/tags" + ] }, - "starred_at": { + "teams_url": { "type": "string", + "format": "uri", "examples": [ - "\"2020-07-09T00:17:55Z\"" + "http://api.github.com/repos/octocat/Hello-World/teams" ] }, - "user_view_type": { + "trees_url": { "type": "string", "examples": [ - "public" + "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" + ] + }, + "clone_url": { + "type": "string" + }, + "mirror_url": { + "type": [ + "string", + "null" + ] + }, + "hooks_url": { + "type": "string", + "format": "uri", + "examples": [ + "http://api.github.com/repos/octocat/Hello-World/hooks" + ] + }, + "svn_url": { + "type": "string" + }, + "homepage": { + "type": [ + "string", + "null" + ] + }, + "language": { + "type": [ + "string", + "null" + ] + }, + "forks_count": { + "type": "integer" + }, + "stargazers_count": { + "type": "integer" + }, + "watchers_count": { + "type": "integer" + }, + "size": { + "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", + "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" + }, + "has_discussions": { + "type": "boolean" + }, + "archived": { + "type": "boolean" + }, + "disabled": { + "type": "boolean" + }, + "visibility": { + "type": "string" + }, + "pushed_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2011-01-26T19:06:43Z" + ] + }, + "created_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2011-01-26T19:01:12Z" + ] + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "examples": [ + "2011-01-26T19:14:43Z" + ] + }, + "permissions": { + "type": "object", + "properties": { + "admin": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "pull": { + "type": "boolean" + } + } + }, + "role_name": { + "type": "string", + "examples": [ + "admin" + ] + }, + "temp_clone_token": { + "type": "string" + }, + "delete_branch_on_merge": { + "type": "boolean" + }, + "subscribers_count": { + "type": "integer" + }, + "network_count": { + "type": "integer" + }, + "code_of_conduct": { + "title": "Code Of Conduct", + "description": "Code Of Conduct", + "type": "object", + "properties": { + "key": { + "type": "string", + "examples": [ + "contributor_covenant" + ] + }, + "name": { + "type": "string", + "examples": [ + "Contributor Covenant" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/codes_of_conduct/contributor_covenant" + ] + }, + "body": { + "type": "string", + "examples": [ + "# 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](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n" + ] + }, + "html_url": { + "type": [ + "string", + "null" + ], + "format": "uri" + } + }, + "required": [ + "url", + "html_url", + "key", + "name" + ] + }, + "license": { + "type": [ + "object", + "null" + ], + "properties": { + "key": { + "type": "string" + }, + "name": { + "type": "string" + }, + "spdx_id": { + "type": "string" + }, + "url": { + "type": "string" + }, + "node_id": { + "type": "string" + } + } + }, + "forks": { + "type": "integer", + "examples": [ + 0 + ] + }, + "open_issues": { + "type": "integer", + "examples": [ + 0 + ] + }, + "watchers": { + "type": "integer", + "examples": [ + 0 + ] + }, + "allow_forking": { + "type": "boolean" + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false ] + }, + "security_and_analysis": { + "type": [ + "object", + "null" + ], + "properties": { + "advanced_security": { + "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n", + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "code_security": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "dependabot_security_updates": { + "description": "Enable or disable Dependabot security updates for the repository.", + "type": "object", + "properties": { + "status": { + "description": "The enablement status of Dependabot security updates for the repository.", + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning_push_protection": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning_non_provider_patterns": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "enabled", + "disabled" + ] + } + } + } + } + }, + "custom_properties": { + "type": "object", + "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", + "additionalProperties": true } }, "required": [ - "avatar_url", + "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", - "followers_url", - "following_url", - "gists_url", - "gravatar_id", + "fork", + "forks_url", + "full_name", + "git_commits_url", + "git_refs_url", + "git_tags_url", + "hooks_url", "html_url", "id", "node_id", - "login", - "organizations_url", - "received_events_url", - "repos_url", - "site_admin", - "starred_url", - "subscriptions_url", - "type", + "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" ] } @@ -232275,301 +231567,157 @@ "default": { "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 - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/rest/teams/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/teams/members#get-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } - } - } - } - }, - "404": { - "description": "if user has no team membership" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - }, - "put": { - "summary": "Add or update team membership for a user", - "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.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]\n> 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/teams/members#add-or-update-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "role": { - "type": "string", - "description": "The role that this user should have in the team.", - "enum": [ - "member", - "maintainer" - ], - "default": "member" - } - } - }, - "examples": { - "default": { - "summary": "Add or update team membership for an organization member", - "value": { - "role": "maintainer" + "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": false, + "topics": [ + "octocat", + "atom", + "electron", + "api" + ], + "has_issues": true, + "has_projects": true, + "has_wiki": true, + "has_pages": false, + "has_downloads": true, + "has_discussions": false, + "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 + }, + "security_and_analysis": { + "advanced_security": { + "status": "enabled" + }, + "secret_scanning": { + "status": "enabled" + }, + "secret_scanning_push_protection": { + "status": "disabled" + }, + "secret_scanning_non_provider_patterns": { + "status": "disabled" + } + } + } + ] } } } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } + "type": "string" } } } - }, - "403": { - "description": "Forbidden if team synchronization is set up" - }, - "422": { - "description": "Unprocessable Entity if you attempt to add an organization to a team" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "members" + "subcategory": "teams" } - }, - "delete": { - "summary": "Remove team membership for a user", - "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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://docs.github.com/articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `DELETE /organizations/{org_id}/team/{team_id}/memberships/{username}`.", + } + }, + "/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/using-the-rest-api/getting-started-with-the-rest-api#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\nIf the repository is private, you must have at least `read` permission for that repository, and your token must have the `repo` or `admin:org` scope. Otherwise, you will receive a `404 Not Found` response status.\n\n> [!NOTE]\n> 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/remove-membership-for-user-in-org", + "operationId": "teams/check-permissions-for-repo-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user" + "url": "https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository" }, "parameters": [ { @@ -232591,47 +231739,8 @@ } }, { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "403": { - "description": "Forbidden if team synchronization is set up" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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/rest/teams/teams#list-team-repositories" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", + "name": "owner", + "description": "The account owner of the repository. The name is not case sensitive.", "in": "path", "required": true, "schema": { @@ -232639,1207 +231748,133 @@ } }, { - "name": "team_slug", - "description": "The slug of the team name.", + "name": "repo", + "description": "The name of the repository without the `.git` extension. The name is not case sensitive.", "in": "path", "required": true, "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } } ], "responses": { "200": { - "description": "Response", + "description": "Alternative response with repository permissions", "content": { "application/json": { "schema": { - "type": "array", - "items": { - "title": "Minimal Repository", - "description": "Minimal Repository", - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1296269 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" - ] - }, - "name": { - "type": "string", - "examples": [ - "Hello-World" - ] - }, - "full_name": { - "type": "string", - "examples": [ - "octocat/Hello-World" - ] - }, - "owner": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] + "title": "Team Repository", + "description": "A team's access to a repository.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the repository", + "type": "integer", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" + ] + }, + "name": { + "description": "The name of the repository.", + "type": "string", + "examples": [ + "Team Environment" + ] + }, + "full_name": { + "type": "string", + "examples": [ + "octocat/Hello-World" + ] + }, + "license": { + "anyOf": [ + { + "type": "null" + }, + { + "title": "License Simple", + "description": "License Simple", + "type": "object", + "properties": { + "key": { + "type": "string", + "examples": [ + "mit" + ] + }, + "name": { + "type": "string", + "examples": [ + "MIT License" + ] + }, + "url": { + "type": [ + "string", + "null" + ], + "format": "uri", + "examples": [ + "https://api.github.com/licenses/mit" + ] + }, + "spdx_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "MIT" + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDc6TGljZW5zZW1pdA==" + ] + }, + "html_url": { + "type": "string", + "format": "uri" + } }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } + "required": [ + "key", + "name", + "url", + "spdx_id", + "node_id" + ] + } + ] + }, + "forks": { + "type": "integer" + }, + "permissions": { + "type": "object", + "properties": { + "admin": { + "type": "boolean" }, - "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" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "This your first repo!" - ] - }, - "fork": { - "type": "boolean" - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/repos/octocat/Hello-World" - ] - }, - "archive_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" - ] - }, - "assignees_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" - ] - }, - "blobs_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" - ] - }, - "branches_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" - ] - }, - "collaborators_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" - ] - }, - "comments_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/comments{/number}" - ] - }, - "commits_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" - ] - }, - "compare_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" - ] - }, - "contents_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" - ] - }, - "contributors_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contributors" - ] - }, - "deployments_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/deployments" - ] - }, - "downloads_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/downloads" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/events" - ] - }, - "forks_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/forks" - ] - }, - "git_commits_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}" - ] - }, - "git_refs_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}" - ] - }, - "git_tags_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}" - ] - }, - "git_url": { - "type": "string" - }, - "issue_comment_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}" - ] - }, - "issue_events_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/issues{/number}" - ] - }, - "keys_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}" - ] - }, - "labels_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/labels{/name}" - ] - }, - "languages_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/languages" - ] - }, - "merges_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/merges" - ] - }, - "milestones_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/milestones{/number}" - ] - }, - "notifications_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}" - ] - }, - "pulls_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/pulls{/number}" - ] - }, - "releases_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/releases{/id}" - ] - }, - "ssh_url": { - "type": "string" - }, - "stargazers_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/stargazers" - ] - }, - "statuses_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}" - ] - }, - "subscribers_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/subscribers" - ] - }, - "subscription_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/subscription" - ] - }, - "tags_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/tags" - ] - }, - "teams_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/teams" - ] - }, - "trees_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}" - ] - }, - "clone_url": { - "type": "string" - }, - "mirror_url": { - "type": [ - "string", - "null" - ] - }, - "hooks_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/hooks" - ] - }, - "svn_url": { - "type": "string" - }, - "homepage": { - "type": [ - "string", - "null" - ] - }, - "language": { - "type": [ - "string", - "null" - ] - }, - "forks_count": { - "type": "integer" - }, - "stargazers_count": { - "type": "integer" - }, - "watchers_count": { - "type": "integer" - }, - "size": { - "description": "The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.", - "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" - }, - "has_discussions": { - "type": "boolean" - }, - "archived": { - "type": "boolean" - }, - "disabled": { - "type": "boolean" - }, - "visibility": { - "type": "string" - }, - "pushed_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2011-01-26T19:06:43Z" - ] - }, - "created_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2011-01-26T19:01:12Z" - ] - }, - "updated_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "examples": [ - "2011-01-26T19:14:43Z" - ] - }, - "permissions": { - "type": "object", - "properties": { - "admin": { - "type": "boolean" - }, - "maintain": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "triage": { - "type": "boolean" - }, - "pull": { - "type": "boolean" - } - } - }, - "role_name": { - "type": "string", - "examples": [ - "admin" - ] - }, - "temp_clone_token": { - "type": "string" - }, - "delete_branch_on_merge": { - "type": "boolean" - }, - "subscribers_count": { - "type": "integer" - }, - "network_count": { - "type": "integer" - }, - "code_of_conduct": { - "title": "Code Of Conduct", - "description": "Code Of Conduct", - "type": "object", - "properties": { - "key": { - "type": "string", - "examples": [ - "contributor_covenant" - ] - }, - "name": { - "type": "string", - "examples": [ - "Contributor Covenant" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/codes_of_conduct/contributor_covenant" - ] - }, - "body": { - "type": "string", - "examples": [ - "# 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](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/).\n" - ] - }, - "html_url": { - "type": [ - "string", - "null" - ], - "format": "uri" - } - }, - "required": [ - "url", - "html_url", - "key", - "name" - ] - }, - "license": { - "type": [ - "object", - "null" - ], - "properties": { - "key": { - "type": "string" - }, - "name": { - "type": "string" - }, - "spdx_id": { - "type": "string" - }, - "url": { - "type": "string" - }, - "node_id": { - "type": "string" - } - } - }, - "forks": { - "type": "integer", - "examples": [ - 0 - ] - }, - "open_issues": { - "type": "integer", - "examples": [ - 0 - ] - }, - "watchers": { - "type": "integer", - "examples": [ - 0 - ] - }, - "allow_forking": { - "type": "boolean" - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "security_and_analysis": { - "type": [ - "object", - "null" - ], - "properties": { - "advanced_security": { - "description": "Enable or disable GitHub Advanced Security for the repository.\n\nFor standalone Code Scanning or Secret Protection products, this parameter cannot be used.\n", - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "code_security": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "dependabot_security_updates": { - "description": "Enable or disable Dependabot security updates for the repository.", - "type": "object", - "properties": { - "status": { - "description": "The enablement status of Dependabot security updates for the repository.", - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning_push_protection": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning_non_provider_patterns": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - }, - "secret_scanning_ai_detection": { - "type": "object", - "properties": { - "status": { - "type": "string", - "enum": [ - "enabled", - "disabled" - ] - } - } - } - } - }, - "custom_properties": { - "type": "object", - "description": "The custom properties that were defined for the repository. The keys are the custom property names, and the values are the corresponding custom property values.", - "additionalProperties": true - } - }, - "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" - ] - } - }, - "examples": { - "default": { - "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": false, - "topics": [ - "octocat", - "atom", - "electron", - "api" - ], - "has_issues": true, - "has_projects": true, - "has_wiki": true, - "has_pages": false, - "has_downloads": true, - "has_discussions": false, - "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 - }, - "security_and_analysis": { - "advanced_security": { - "status": "enabled" - }, - "secret_scanning": { - "status": "enabled" - }, - "secret_scanning_push_protection": { - "status": "disabled" - }, - "secret_scanning_non_provider_patterns": { - "status": "disabled" - } - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "teams" - } - } - }, - "/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/using-the-rest-api/getting-started-with-the-rest-api#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\nIf the repository is private, you must have at least `read` permission for that repository, and your token must have the `repo` or `admin:org` scope. Otherwise, you will receive a `404 Not Found` response status.\n\n> [!NOTE]\n> 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/rest/teams/teams#check-team-permissions-for-a-repository" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "owner", - "description": "The account owner of the repository. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "repo", - "description": "The name of the repository without the `.git` extension. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Alternative response with repository permissions", - "content": { - "application/json": { - "schema": { - "title": "Team Repository", - "description": "A team's access to a repository.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the repository", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" - ] - }, - "name": { - "description": "The name of the repository.", - "type": "string", - "examples": [ - "Team Environment" - ] - }, - "full_name": { - "type": "string", - "examples": [ - "octocat/Hello-World" - ] - }, - "license": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "License Simple", - "description": "License Simple", - "type": "object", - "properties": { - "key": { - "type": "string", - "examples": [ - "mit" - ] - }, - "name": { - "type": "string", - "examples": [ - "MIT License" - ] - }, - "url": { - "type": [ - "string", - "null" - ], - "format": "uri", - "examples": [ - "https://api.github.com/licenses/mit" - ] - }, - "spdx_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "MIT" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDc6TGljZW5zZW1pdA==" - ] - }, - "html_url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "key", - "name", - "url", - "spdx_id", - "node_id" - ] - } - ] - }, - "forks": { - "type": "integer" - }, - "permissions": { - "type": "object", - "properties": { - "admin": { - "type": "boolean" - }, - "pull": { - "type": "boolean" - }, - "triage": { - "type": "boolean" - }, - "push": { - "type": "boolean" - }, - "maintain": { - "type": "boolean" + "pull": { + "type": "boolean" + }, + "triage": { + "type": "boolean" + }, + "push": { + "type": "boolean" + }, + "maintain": { + "type": "boolean" } }, "required": [ @@ -620222,1752 +618257,122 @@ "type": "string" }, "documentation_url": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "search", - "subcategory": "search" - } - } - }, - "/teams/{team_id}": { - "get": { - "summary": "Get a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/teams#get-a-team-by-name) endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/teams#get-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } - } - } - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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]\n> 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/rest/teams/teams#update-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "notification_setting": { - "type": "string", - "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ] - }, - "permission": { - "type": "string", - "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - "enum": [ - "pull", - "push", - "admin" - ], - "default": "pull" - }, - "parent_team_id": { - "type": [ - "integer", - "null" - ], - "description": "The ID of a team to set as the parent team." - } - }, - "required": [ - "name" - ] - }, - "examples": { - "default": { - "value": { - "name": "new team name", - "description": "new team description", - "privacy": "closed", - "notification_setting": "notifications_enabled" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response when the updated information already exists", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } + "type": "string" } } } } } }, - "201": { + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "search", + "subcategory": "search" + } + } + }, + "/teams/{team_id}": { + "get": { + "summary": "Get a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/teams#get-a-team-by-name) endpoint.", + "tags": [ + "teams" + ], + "operationId": "teams/get-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/rest/teams/teams#get-a-team-legacy" + }, + "parameters": [ + { + "name": "team_id", + "description": "The unique identifier of the team.", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { "description": "Response", "content": { "application/json": { @@ -622744,245 +619149,6 @@ } } } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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/rest/teams/teams#delete-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } } }, "x-github": { @@ -622994,501 +619160,17 @@ "subcategory": "teams" }, "deprecated": true - } - }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#list-discussions-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "direction", - "description": "The direction to sort the results by.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "desc" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - } - }, - "examples": { - "default": { - "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", - "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 - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "patch": { + "summary": "Update a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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]\n> With nested teams, the `privacy` for parent teams cannot be `secret`.", "tags": [ "teams" ], - "operationId": "teams/create-discussion-legacy", + "operationId": "teams/update-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy" + "url": "https://docs.github.com/rest/teams/teams#update-a-team-legacy" }, "parameters": [ { @@ -623508,30 +619190,59 @@ "schema": { "type": "object", "properties": { - "title": { + "name": { "type": "string", - "description": "The discussion post's title." + "description": "The name of the team." }, - "body": { + "description": { "type": "string", - "description": "The discussion post's body text." + "description": "The description of the team." }, - "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 + "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" + ] + }, + "notification_setting": { + "type": "string", + "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ] + }, + "permission": { + "type": "string", + "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + "enum": [ + "pull", + "push", + "admin" + ], + "default": "pull" + }, + "parent_team_id": { + "type": [ + "integer", + "null" + ], + "description": "The ID of a team to set as the parent team." } }, "required": [ - "title", - "body" + "name" ] }, "examples": { "default": { "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "name": "new team name", + "description": "new team description", + "privacy": "closed", + "notification_setting": "notifications_enabled" } } } @@ -623539,495 +619250,120 @@ } }, "responses": { - "201": { - "description": "Response", + "200": { + "description": "Response when the updated information already exists", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", "examples": [ - "

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

" + 42 ] }, - "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.", + "node_id": { "type": "string", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "MDQ6VGVhbTE=" ] }, - "created_at": { + "url": { + "description": "URL for the team", "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1" ] }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, "html_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" + "https://github.com/orgs/rails/teams/core" ] }, - "node_id": { + "name": { + "description": "Name of the team", "type": "string", "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + "Developers" ] }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", + "slug": { + "type": "string", "examples": [ - 42 + "justice-league" ] }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", + "description": { + "type": [ + "string", + "null" + ], "examples": [ - true + "A great team." ] }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], "examples": [ - true + "closed" ] }, - "team_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], "examples": [ - "https://api.github.com/organizations/1/team/2343027" + "notifications_enabled" ] }, - "title": { - "description": "The title of the discussion.", + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "How can we improve our workflow?" + "push" ] }, - "updated_at": { + "members_url": { "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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", - "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 - } - } - } - } - } - } - } - }, - "x-github": { - "triggersNotification": true, - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#get-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -624035,472 +619371,751 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" } } } } } } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "title": "Welcome to our first team post" - } - } - } - } - } - }, - "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "author": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Developers" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], + "examples": [ + "notifications_enabled" + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "push" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -624508,361 +620123,763 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" + } + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } } } } } } } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } } }, "x-github": { @@ -624871,20 +620888,20 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true }, "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "summary": "Delete a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/teams/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-discussion-legacy", + "operationId": "teams/delete-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy" + "url": "https://docs.github.com/rest/teams/teams#delete-a-team-legacy" }, "parameters": [ { @@ -624895,20 +620912,112 @@ "schema": { "type": "integer" } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } } ], "responses": { "204": { "description": "Response" + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } } }, "x-github": { @@ -624917,7 +621026,7 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true } diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml index c5ea72e87..f136965b0 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml @@ -1071,7 +1071,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/global-advisories#get-a-global-security-advisory parameters: - - &618 + - &615 name: ghsa_id description: The GHSA (GitHub Security Advisory) identifier of the advisory. in: path @@ -9170,7 +9170,7 @@ paths: Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. schema: type: string - - &457 + - &454 name: has in: query description: |- @@ -9290,7 +9290,7 @@ paths: - direct - transitive - - security_advisory: &458 + security_advisory: &455 type: object description: Details for the GitHub Security Advisory. readOnly: true @@ -9558,7 +9558,7 @@ paths: and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - auto_dismissed_at: &459 + auto_dismissed_at: &456 type: - string - 'null' @@ -9566,7 +9566,7 @@ paths: ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissal_request: &460 + dismissal_request: &457 title: Dependabot alert dismissal request description: Information about an active dismissal request for this Dependabot alert. @@ -10957,7 +10957,7 @@ paths: properties: action: type: string - discussion: &711 + discussion: &706 title: Discussion description: A Discussion in a repository. type: object @@ -11743,7 +11743,7 @@ paths: - hooray - eyes - rocket - sub_issues_summary: &630 + sub_issues_summary: &627 title: Sub-issues Summary type: object properties: @@ -11764,7 +11764,7 @@ paths: - string - 'null' format: uri - issue_dependencies_summary: &631 + issue_dependencies_summary: &628 title: Issue Dependencies Summary type: object properties: @@ -11783,7 +11783,7 @@ paths: - total_blocking issue_field_values: type: array - items: &632 + items: &629 title: Issue Field Value description: A value assigned to an issue field type: object @@ -11896,7 +11896,7 @@ paths: action: type: string issue: *71 - comment: &507 + comment: &504 title: Issue Comment description: Comments provide a way for people to collaborate on an issue. @@ -12619,7 +12619,7 @@ paths: type: string release: allOf: - - &563 + - &560 title: Release description: A release. type: object @@ -12701,7 +12701,7 @@ paths: author: *4 assets: type: array - items: &564 + items: &561 title: Release Asset description: Data related to a release. type: object @@ -13304,7 +13304,7 @@ paths: url: type: string format: uri - user: &640 + user: &635 title: Public User description: Public User type: object @@ -16661,14 +16661,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/events#list-public-events-for-a-network-of-repositories parameters: - - &311 + - &308 name: owner description: The account owner of the repository. The name is not case sensitive. in: path required: true schema: type: string - - &312 + - &309 name: repo description: The name of the repository without the `.git` extension. The name is not case sensitive. @@ -16730,7 +16730,7 @@ paths: '404': *6 '403': *27 '304': *35 - '301': &315 + '301': &312 description: Moved permanently content: application/json: @@ -16752,7 +16752,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user parameters: - - &537 + - &534 name: all description: If `true`, show notifications marked as read. in: query @@ -16760,7 +16760,7 @@ paths: schema: type: boolean default: false - - &538 + - &535 name: participating description: If `true`, only shows notifications in which the user is directly participating or mentioned. @@ -16770,7 +16770,7 @@ paths: type: boolean default: false - *77 - - &539 + - &536 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: @@ -17306,7 +17306,7 @@ paths: - url - subscription_url examples: - default: &540 + default: &537 value: - id: '1' repository: @@ -18333,7 +18333,7 @@ paths: - property_name - value examples: - default: &546 + default: &543 value: - property_name: environment value: production @@ -18383,7 +18383,7 @@ paths: required: - properties examples: - default: &547 + default: &544 value: properties: - property_name: environment @@ -18957,7 +18957,7 @@ paths: required: false schema: type: string - - &688 + - &683 name: model description: The model name to query usage for. The name is not case sensitive. in: query @@ -19103,7 +19103,7 @@ paths: parameters: - *66 - *108 - - &689 + - &684 name: month description: If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. If no year is specified the @@ -19215,7 +19215,7 @@ paths: - *108 - *110 - *109 - - &690 + - &685 name: repository description: The repository name to query for usage in the format owner/repository. in: query @@ -19223,7 +19223,7 @@ paths: schema: type: string - *111 - - &691 + - &686 name: sku description: The SKU to query for usage. in: query @@ -20202,7 +20202,7 @@ paths: type: integer repository_cache_usages: type: array - items: &322 + items: &319 title: Actions Cache Usage by repository description: GitHub Actions Cache Usage by repository. type: object @@ -21440,7 +21440,7 @@ paths: - all - local_only - selected - selected_actions_url: &328 + selected_actions_url: &325 type: string description: The API URL to use to get or set the actions and reusable workflows that are allowed to run, when `allowed_actions` @@ -21523,7 +21523,7 @@ paths: description: Response content: application/json: - schema: &332 + schema: &329 type: object properties: days: @@ -21565,7 +21565,7 @@ paths: required: true content: application/json: - schema: &333 + schema: &330 type: object properties: days: @@ -21622,7 +21622,7 @@ paths: required: - approval_policy examples: - default: &334 + default: &331 value: approval_policy: first_time_contributors '404': *6 @@ -21681,7 +21681,7 @@ paths: description: Response content: application/json: - schema: &335 + schema: &332 type: object required: - run_workflows_from_fork_pull_requests @@ -21735,7 +21735,7 @@ paths: required: true content: application/json: - schema: &336 + schema: &333 type: object required: - run_workflows_from_fork_pull_requests @@ -22370,7 +22370,7 @@ paths: description: Response content: application/json: - schema: &337 + schema: &334 type: object properties: default_workflow_permissions: &138 @@ -22421,7 +22421,7 @@ paths: required: false content: application/json: - schema: &338 + schema: &335 type: object properties: default_workflow_permissions: *138 @@ -22914,7 +22914,7 @@ paths: type: array items: *145 examples: - default: &643 + default: &638 value: total_count: 1 repositories: @@ -23561,7 +23561,7 @@ paths: application/json: schema: type: array - items: &339 + items: &336 title: Runner Application description: Runner Application type: object @@ -23586,7 +23586,7 @@ paths: - download_url - filename examples: - default: &340 + default: &337 value: - os: osx architecture: x64 @@ -23672,7 +23672,7 @@ paths: - no-gpu work_folder: _work responses: - '201': &341 + '201': &338 description: Response content: application/json: @@ -23787,7 +23787,7 @@ paths: - token - expires_at examples: - default: &342 + default: &339 value: token: LLBF3JGZDX3P5PMEXLND6TS6FCWO6 expires_at: '2020-01-22T12:13:35.123-08:00' @@ -23826,7 +23826,7 @@ paths: application/json: schema: *149 examples: - default: &343 + default: &340 value: token: AABF3JGZDX3P5PMEXLND6TS6FCWO6 expires_at: '2020-01-29T12:13:35.123-08:00' @@ -23860,7 +23860,7 @@ paths: application/json: schema: *147 examples: - default: &344 + default: &341 value: id: 23 name: MBP @@ -24086,7 +24086,7 @@ paths: - *66 - *146 responses: - '200': &345 + '200': &342 description: Response content: application/json: @@ -24143,7 +24143,7 @@ paths: parameters: - *66 - *146 - - &346 + - &343 name: name description: The name of a self-hosted runner's custom label. in: path @@ -24275,7 +24275,7 @@ paths: description: Response content: application/json: - schema: &358 + schema: &355 title: ActionsPublicKey description: The public key used for setting Actions Secrets. type: object @@ -24310,7 +24310,7 @@ paths: - key_id - key examples: - default: &359 + default: &356 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -24723,7 +24723,7 @@ paths: url: https://docs.github.com/rest/actions/variables#list-organization-variables parameters: - *66 - - &327 + - &324 name: per_page description: The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." @@ -25885,12 +25885,12 @@ paths: required: - subject_digests examples: - default: &670 + default: &665 value: subject_digests: - sha256:abc123 - sha512:def456 - withPredicateType: &671 + withPredicateType: &666 value: subject_digests: - sha256:abc123 @@ -25949,7 +25949,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: &672 + default: &667 value: attestations_subject_digests: - sha256:abc: @@ -26298,7 +26298,7 @@ paths: initiator: type: string examples: - default: &372 + default: &369 value: attestations: - bundle: @@ -27254,7 +27254,7 @@ paths: url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-an-organization parameters: - *66 - - &396 + - &393 name: tool_name description: The name of a code scanning tool. Only results by this tool will be listed. You can specify the tool by using either `tool_name` or `tool_guid`, @@ -27264,7 +27264,7 @@ paths: schema: &170 type: string description: The name of the tool used to generate the code scanning analysis. - - &397 + - &394 name: tool_guid description: The GUID of a code scanning tool. Only results by this tool will be listed. Note that some code scanning tools may not include a GUID in @@ -27288,7 +27288,7 @@ paths: be returned. in: query required: false - schema: &399 + schema: &396 type: string description: State of a code scanning alert. enum: @@ -27311,7 +27311,7 @@ paths: be returned. in: query required: false - schema: &400 + schema: &397 type: string description: Severity of a code scanning alert. enum: @@ -27345,7 +27345,7 @@ paths: updated_at: *165 url: *166 html_url: *167 - instances_url: &401 + instances_url: &398 type: string description: The REST API URL for fetching the list of instances for an alert. @@ -27367,7 +27367,7 @@ paths: - type: 'null' - *4 dismissed_at: *169 - dismissed_reason: &402 + dismissed_reason: &399 type: - string - 'null' @@ -27378,14 +27378,14 @@ paths: - won't fix - used in tests - - dismissed_comment: &403 + dismissed_comment: &400 type: - string - 'null' description: The dismissal comment associated with the dismissal of the alert. maxLength: 280 - rule: &404 + rule: &401 type: object properties: id: @@ -27446,7 +27446,7 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: &405 + tool: &402 type: object properties: name: *170 @@ -27457,26 +27457,26 @@ paths: description: The version of the tool used to generate the code scanning analysis. guid: *171 - most_recent_instance: &406 + most_recent_instance: &403 type: object properties: - ref: &398 + ref: &395 type: string description: |- The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, `refs/heads/` or simply ``. - analysis_key: &416 + analysis_key: &413 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. - environment: &417 + environment: &414 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. - category: &418 + category: &415 type: string description: Identifies the configuration under which the analysis was executed. Used to distinguish between multiple @@ -27490,7 +27490,7 @@ paths: properties: text: type: string - location: &419 + location: &416 type: object description: Describe a region within a file for the alert. properties: @@ -27511,7 +27511,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: &420 + items: &417 type: - string - 'null' @@ -28805,7 +28805,7 @@ paths: machine: anyOf: - type: 'null' - - &432 + - &429 type: object title: Codespace machine description: A description of the machine powering a codespace. @@ -29757,7 +29757,7 @@ paths: - updated_at - visibility examples: - default: &433 + default: &430 value: total_count: 2 secrets: @@ -29795,7 +29795,7 @@ paths: description: Response content: application/json: - schema: &434 + schema: &431 title: CodespacesPublicKey description: The public key used for setting Codespaces secrets. type: object @@ -29830,7 +29830,7 @@ paths: - key_id - key examples: - default: &435 + default: &432 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -29862,7 +29862,7 @@ paths: application/json: schema: *179 examples: - default: &437 + default: &434 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -31485,7 +31485,7 @@ paths: description: Response content: application/json: - schema: &463 + schema: &460 title: DependabotPublicKey description: The public key used for setting Dependabot Secrets. type: object @@ -31504,7 +31504,7 @@ paths: - key_id - key examples: - default: &464 + default: &461 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -33332,7 +33332,7 @@ paths: application/json: schema: *20 examples: - default: &502 + default: &499 value: id: 1 account: @@ -33560,7 +33560,7 @@ paths: required: true content: application/json: - schema: &503 + schema: &500 title: Interaction Restrictions description: Limit interactions to a specific type of user for a specified duration @@ -34420,7 +34420,7 @@ paths: application/json: schema: *221 examples: - default: &431 + default: &428 value: id: 1 name: monalisa-octocat-hello-world-g4wpq6h95q @@ -35682,7 +35682,7 @@ paths: parameters: - *66 - *228 - - &655 + - &650 name: repo_name description: repo_name parameter in: path @@ -36741,7 +36741,7 @@ paths: - nuget - container - *66 - - &656 + - &651 name: visibility description: |- The selected visibility of the packages. This parameter is optional and only filters an existing result set. @@ -36782,7 +36782,7 @@ paths: default: *234 '403': *27 '401': *23 - '400': &658 + '400': &653 description: The value of `per_page` multiplied by `page` cannot be greater than 10000. x-github: @@ -38608,7 +38608,7 @@ paths: latest_status_update: anyOf: - type: 'null' - - &739 + - &734 title: Projects v2 Status Update description: An status update belonging to a project type: object @@ -38882,7 +38882,7 @@ paths: content: oneOf: - *71 - - &446 + - &443 title: Pull Request Simple description: Pull Request Simple type: object @@ -39127,7 +39127,7 @@ paths: - review_comment - self author_association: *72 - auto_merge: &549 + auto_merge: &546 title: Auto merge description: The status of auto merging a pull request. type: @@ -39509,7 +39509,7 @@ paths: - updated_at - project_url examples: - default: &675 + default: &670 value: - id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -39686,7 +39686,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: &676 + items: &671 type: object properties: name: @@ -39722,7 +39722,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: &677 + iteration_configuration: &672 type: object description: The configuration for iteration fields. properties: @@ -39771,7 +39771,7 @@ paths: value: name: Due date data_type: date - single_select_field: &678 + single_select_field: &673 summary: Create a single select field value: name: Priority @@ -39798,7 +39798,7 @@ paths: description: raw: High priority items html: High priority items - iteration_field: &679 + iteration_field: &674 summary: Create an iteration field value: name: Sprint @@ -39824,7 +39824,7 @@ paths: application/json: schema: *254 examples: - text_field: &680 + text_field: &675 value: id: 24680 node_id: PVTF_lADOABCD2468024680 @@ -39833,7 +39833,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-05-15T08:00:00Z' updated_at: '2022-05-15T08:00:00Z' - number_field: &681 + number_field: &676 value: id: 13579 node_id: PVTF_lADOABCD1357913579 @@ -39842,7 +39842,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-01T14:30:00Z' updated_at: '2022-06-01T14:30:00Z' - date_field: &682 + date_field: &677 value: id: 98765 node_id: PVTF_lADOABCD9876598765 @@ -39851,7 +39851,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-10T09:15:00Z' updated_at: '2022-06-10T09:15:00Z' - single_select_field: &683 + single_select_field: &678 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -39885,7 +39885,7 @@ paths: raw: High priority items created_at: '2022-04-28T12:00:00Z' updated_at: '2022-04-28T12:00:00Z' - iteration_field: &684 + iteration_field: &679 value: id: 11223 node_id: PVTF_lADOABCD1122311223 @@ -39931,7 +39931,7 @@ paths: url: https://docs.github.com/rest/projects/fields#get-project-field-for-organization parameters: - *251 - - &685 + - &680 name: field_id description: The unique identifier of the field. in: path @@ -39946,7 +39946,7 @@ paths: application/json: schema: *254 examples: - default: &686 + default: &681 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -41083,7 +41083,7 @@ paths: parameters: - *251 - *66 - - &687 + - &682 name: view_number description: The number that identifies the project view. in: path @@ -42018,7 +42018,7 @@ paths: description: Response content: application/json: - schema: &314 + schema: &311 title: Full Repository description: Full Repository type: object @@ -42483,7 +42483,7 @@ paths: description: Whether anonymous git access is allowed. default: true type: boolean - code_of_conduct: &451 + code_of_conduct: &448 title: Code Of Conduct Simple description: Code of Conduct Simple type: object @@ -42597,7 +42597,7 @@ paths: - network_count - subscribers_count examples: - default: &316 + default: &313 value: id: 1296269 node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 @@ -43118,7 +43118,7 @@ paths: - *66 - *17 - *19 - - &571 + - &568 name: targets description: | A comma-separated list of rule targets to filter by. @@ -43404,7 +43404,7 @@ paths: - object rules: type: array - items: &572 + items: &569 title: Repository Rule type: object description: A repository rule. @@ -43466,7 +43466,7 @@ paths: type: string enum: - required_linear_history - - &570 + - &567 title: merge_queue description: Merges must be performed via a merge queue. type: object @@ -44362,7 +44362,7 @@ paths: url: https://docs.github.com/rest/orgs/rule-suites#list-organization-rule-suites parameters: - *66 - - &573 + - &570 name: ref description: The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit @@ -44377,7 +44377,7 @@ paths: in: query schema: type: string - - &574 + - &571 name: time_period description: |- The time period to filter by. @@ -44393,14 +44393,14 @@ paths: - week - month default: day - - &575 + - &572 name: actor_name description: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. in: query schema: type: string - - &576 + - &573 name: rule_suite_result description: The rule suite results to filter on. When specified, only suites with this result will be returned. @@ -44420,7 +44420,7 @@ paths: description: Response content: application/json: - schema: &577 + schema: &574 title: Rule Suites description: Response type: array @@ -44476,7 +44476,7 @@ paths: whether rules would pass or fail if all rules in the rule suite were `active`. examples: - default: &578 + default: &575 value: - id: 21 actor_id: 12 @@ -44520,7 +44520,7 @@ paths: url: https://docs.github.com/rest/orgs/rule-suites#get-an-organization-rule-suite parameters: - *66 - - &579 + - &576 name: rule_suite_id description: |- The unique identifier of the rule suite result. @@ -44536,7 +44536,7 @@ paths: description: Response content: application/json: - schema: &580 + schema: &577 title: Rule Suite description: Response type: object @@ -44643,7 +44643,7 @@ paths: description: The detailed failure message for the rule. Null if the rule passed. examples: - default: &581 + default: &578 value: id: 21 actor_id: 12 @@ -44889,7 +44889,7 @@ paths: type: string format: date-time examples: - default: &583 + default: &580 value: - version_id: 3 actor: @@ -44942,7 +44942,7 @@ paths: description: Response content: application/json: - schema: &584 + schema: &581 allOf: - *295 - type: object @@ -45014,7 +45014,7 @@ paths: url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-an-organization parameters: - *66 - - &585 + - &582 name: state in: query description: Set to `open` or `resolved` to only list secret scanning alerts @@ -45025,7 +45025,7 @@ paths: enum: - open - resolved - - &586 + - &583 name: secret_type in: query description: A comma-separated list of secret types to return. All default @@ -45035,7 +45035,7 @@ paths: required: false schema: type: string - - &587 + - &584 name: resolution in: query description: A comma-separated list of resolutions. Only secret scanning alerts @@ -45044,7 +45044,7 @@ paths: required: false schema: type: string - - &588 + - &585 name: assignee in: query description: Filters alerts by assignee. Use `*` to get all assigned alerts, @@ -45063,7 +45063,7 @@ paths: all-unassigned: value: none summary: Filter for all unassigned alerts - - &589 + - &586 name: sort description: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. @@ -45078,7 +45078,7 @@ paths: - *51 - *19 - *17 - - &590 + - &587 name: before description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To @@ -45088,7 +45088,7 @@ paths: required: false schema: type: string - - &591 + - &588 name: after description: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To @@ -45098,7 +45098,7 @@ paths: required: false schema: type: string - - &592 + - &589 name: validity in: query description: A comma-separated list of validities that, when present, will @@ -45107,7 +45107,7 @@ paths: required: false schema: type: string - - &593 + - &590 name: is_publicly_leaked in: query description: A boolean value representing whether or not to filter alerts @@ -45116,7 +45116,7 @@ paths: schema: type: boolean default: false - - &594 + - &591 name: is_multi_repo in: query description: A boolean value representing whether or not to filter alerts @@ -45125,7 +45125,7 @@ paths: schema: type: boolean default: false - - &595 + - &592 name: hide_secret in: query description: A boolean value representing whether or not to hide literal secrets @@ -45157,14 +45157,14 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: &596 + state: &593 description: Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. type: string enum: - open - resolved - resolution: &597 + resolution: &594 type: - string - 'null' @@ -45271,14 +45271,14 @@ paths: first_location_detected: anyOf: - type: 'null' - - &598 + - &595 description: 'Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request. ' oneOf: - - &600 + - &597 description: Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. @@ -45335,7 +45335,7 @@ paths: - blob_url - commit_sha - commit_url - - &601 + - &598 description: Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. @@ -45396,7 +45396,7 @@ paths: - page_url - commit_sha - commit_url - - &602 + - &599 description: Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. @@ -45411,7 +45411,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_title_url - - &603 + - &600 description: Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. @@ -45426,7 +45426,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_body_url - - &604 + - &601 description: Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. @@ -45441,7 +45441,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - issue_comment_url - - &605 + - &602 description: Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. @@ -45456,7 +45456,7 @@ paths: - https://github.com/community/community/discussions/39082 required: - discussion_title_url - - &606 + - &603 description: Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. @@ -45471,7 +45471,7 @@ paths: - https://github.com/community/community/discussions/39082#discussion-4566270 required: - discussion_body_url - - &607 + - &604 description: Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. @@ -45486,7 +45486,7 @@ paths: - https://github.com/community/community/discussions/39082#discussioncomment-4158232 required: - discussion_comment_url - - &608 + - &605 description: Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. @@ -45501,7 +45501,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_title_url - - &609 + - &606 description: Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. @@ -45516,7 +45516,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_body_url - - &610 + - &607 description: Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. @@ -45531,7 +45531,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - pull_request_comment_url - - &611 + - &608 description: Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. @@ -45546,7 +45546,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80 required: - pull_request_review_url - - &612 + - &609 description: Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull @@ -46046,7 +46046,7 @@ paths: application/json: schema: type: array - items: &616 + items: &613 description: A repository security advisory. type: object properties: @@ -46365,7 +46365,7 @@ paths: - private_fork additionalProperties: false examples: - default: &617 + default: &614 value: - ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -48227,464 +48227,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#list-discussions - parameters: - - *66 - - *67 - - *51 - - *17 - - *19 - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: &307 - title: Team Discussion - description: A team discussion is a persistent record of a free-form - conversation within a team. - type: object - properties: - author: - anyOf: - - type: 'null' - - *4 - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned - for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted - to team members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: *73 - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url - examples: - default: &634 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - headers: - Link: *57 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion - parameters: - - *66 - - *67 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *307 - examples: - default: &308 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#get-a-discussion - parameters: - - *66 - - *67 - - &309 - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: *308 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion - parameters: - - *66 - - *67 - - *309 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: &635 - 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 - 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 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion - parameters: - - *66 - - *67 - - *309 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/invitations": get: summary: List pending team invitations @@ -48797,7 +48339,7 @@ paths: description: Response content: application/json: - schema: &310 + schema: &307 title: Team Membership description: Team Membership type: object @@ -48825,7 +48367,7 @@ paths: - state - url examples: - response-if-user-is-a-team-maintainer: &636 + response-if-user-is-a-team-maintainer: &631 summary: Response if user is a team maintainer value: url: https://api.github.com/teams/1/memberships/octocat @@ -48888,9 +48430,9 @@ paths: description: Response content: application/json: - schema: *310 + schema: *307 examples: - response-if-users-membership-with-team-is-now-pending: &637 + response-if-users-membership-with-team-is-now-pending: &632 summary: Response if user's membership with team is now pending value: url: https://api.github.com/teams/1/memberships/octocat @@ -48997,14 +48539,14 @@ paths: parameters: - *66 - *67 - - *311 - - *312 + - *308 + - *309 responses: '200': description: Alternative response with repository permissions content: application/json: - schema: &638 + schema: &633 title: Team Repository description: A team's access to a repository. type: object @@ -49647,8 +49189,8 @@ paths: parameters: - *66 - *67 - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -49695,8 +49237,8 @@ paths: parameters: - *66 - *67 - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -49733,7 +49275,7 @@ paths: type: array items: *180 examples: - response-if-child-teams-exist: &639 + response-if-child-teams-exist: &634 value: - id: 2 node_id: MDQ6VGVhbTI= @@ -49887,7 +49429,7 @@ paths: resources: type: object properties: - core: &313 + core: &310 title: Rate Limit type: object properties: @@ -49904,21 +49446,21 @@ paths: - remaining - reset - used - graphql: *313 - search: *313 - code_search: *313 - source_import: *313 - integration_manifest: *313 - code_scanning_upload: *313 - actions_runner_registration: *313 - scim: *313 - dependency_snapshots: *313 - dependency_sbom: *313 - code_scanning_autofix: *313 + graphql: *310 + search: *310 + code_search: *310 + source_import: *310 + integration_manifest: *310 + code_scanning_upload: *310 + actions_runner_registration: *310 + scim: *310 + dependency_snapshots: *310 + dependency_sbom: *310 + code_scanning_autofix: *310 required: - core - search - rate: *313 + rate: *310 required: - rate - resources @@ -50023,14 +49565,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#get-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *314 + schema: *311 examples: default-response: summary: Default response @@ -50531,7 +50073,7 @@ paths: status: disabled '403': *27 '404': *6 - '301': *315 + '301': *312 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -50549,8 +50091,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#update-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -50798,10 +50340,10 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 - '307': &317 + default: *313 + '307': &314 description: Temporary Redirect content: application/json: @@ -50830,8 +50372,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#delete-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -50853,7 +50395,7 @@ paths: value: message: Organization members cannot delete repositories. documentation_url: https://docs.github.com/rest/repos/repos#delete-a-repository - '307': *317 + '307': *314 '404': *6 '409': *50 x-github: @@ -50877,11 +50419,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#list-artifacts-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - - &350 + - &347 name: name description: The name field of an artifact. When specified, only artifacts with this name will be returned. @@ -50904,7 +50446,7 @@ paths: type: integer artifacts: type: array - items: &318 + items: &315 title: Artifact description: An artifact type: object @@ -50999,7 +50541,7 @@ paths: - expires_at - updated_at examples: - default: &351 + default: &348 value: total_count: 2 artifacts: @@ -51060,9 +50602,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#get-an-artifact parameters: - - *311 - - *312 - - &319 + - *308 + - *309 + - &316 name: artifact_id description: The unique identifier of the artifact. in: path @@ -51074,7 +50616,7 @@ paths: description: Response content: application/json: - schema: *318 + schema: *315 examples: default: value: @@ -51112,9 +50654,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#delete-an-artifact parameters: - - *311 - - *312 - - *319 + - *308 + - *309 + - *316 responses: '204': description: Response @@ -51138,9 +50680,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#download-an-artifact parameters: - - *311 - - *312 - - *319 + - *308 + - *309 + - *316 - name: archive_format in: path required: true @@ -51154,7 +50696,7 @@ paths: 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 - '410': &506 + '410': &503 description: Gone content: application/json: @@ -51179,14 +50721,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#get-github-actions-cache-retention-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &320 + schema: &317 title: Actions cache retention limit for a repository description: GitHub Actions cache retention policy for a repository. type: object @@ -51220,13 +50762,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#set-github-actions-cache-retention-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *320 + schema: *317 examples: selected_actions: *40 responses: @@ -51255,14 +50797,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#get-github-actions-cache-storage-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &321 + schema: &318 title: Actions cache storage limit for a repository description: GitHub Actions cache storage policy for a repository. type: object @@ -51296,13 +50838,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#set-github-actions-cache-storage-limit-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *321 + schema: *318 examples: selected_actions: *42 responses: @@ -51333,14 +50875,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#get-github-actions-cache-usage-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *322 + schema: *319 examples: default: value: @@ -51366,11 +50908,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - - &323 + - &320 name: ref description: The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference @@ -51404,7 +50946,7 @@ paths: description: Response content: application/json: - schema: &324 + schema: &321 title: Repository actions caches description: Repository actions caches type: object @@ -51454,7 +50996,7 @@ paths: - total_count - actions_caches examples: - default: &325 + default: &322 value: total_count: 1 actions_caches: @@ -51486,23 +51028,23 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key parameters: - - *311 - - *312 + - *308 + - *309 - name: key description: A key for identifying the cache. in: query required: true schema: type: string - - *323 + - *320 responses: '200': description: Response content: application/json: - schema: *324 + schema: *321 examples: - default: *325 + default: *322 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -51522,8 +51064,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id parameters: - - *311 - - *312 + - *308 + - *309 - name: cache_id description: The unique identifier of the GitHub Actions cache. in: path @@ -51554,9 +51096,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#get-a-job-for-a-workflow-run parameters: - - *311 - - *312 - - &326 + - *308 + - *309 + - &323 name: job_id description: The unique identifier of the job. in: path @@ -51568,7 +51110,7 @@ paths: description: Response content: application/json: - schema: &354 + schema: &351 title: Job description: Information of a job execution in a workflow run type: object @@ -51915,9 +51457,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run parameters: - - *311 - - *312 - - *326 + - *308 + - *309 + - *323 responses: '302': description: Response @@ -51945,9 +51487,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run parameters: - - *311 - - *312 - - *326 + - *308 + - *309 + - *323 requestBody: required: false content: @@ -51993,8 +51535,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Status response @@ -52044,8 +51586,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -52108,8 +51650,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#list-repository-organization-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -52127,7 +51669,7 @@ paths: type: integer secrets: type: array - items: &356 + items: &353 title: Actions Secret description: Set secrets for GitHub Actions. type: object @@ -52148,7 +51690,7 @@ paths: - created_at - updated_at examples: - default: &357 + default: &354 value: total_count: 2 secrets: @@ -52181,9 +51723,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#list-repository-organization-variables parameters: - - *311 - - *312 - - *327 + - *308 + - *309 + - *324 - *19 responses: '200': @@ -52200,7 +51742,7 @@ paths: type: integer variables: type: array - items: &360 + items: &357 title: Actions Variable type: object properties: @@ -52234,7 +51776,7 @@ paths: - created_at - updated_at examples: - default: &361 + default: &358 value: total_count: 2 variables: @@ -52267,8 +51809,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-github-actions-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52277,11 +51819,11 @@ paths: schema: type: object properties: - enabled: &329 + enabled: &326 type: boolean description: Whether GitHub Actions is enabled on the repository. allowed_actions: *130 - selected_actions_url: *328 + selected_actions_url: *325 sha_pinning_required: *131 required: - enabled @@ -52310,8 +51852,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-github-actions-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -52322,7 +51864,7 @@ paths: schema: type: object properties: - enabled: *329 + enabled: *326 allowed_actions: *130 sha_pinning_required: *131 required: @@ -52354,14 +51896,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &330 + schema: &327 type: object properties: access_level: @@ -52378,7 +51920,7 @@ paths: required: - access_level examples: - default: &331 + default: &328 value: access_level: organization x-github: @@ -52402,15 +51944,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *330 + schema: *327 examples: - default: *331 + default: *328 responses: '204': description: Response @@ -52434,14 +51976,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-artifact-and-log-retention-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *332 + schema: *329 examples: default: value: @@ -52465,8 +52007,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-artifact-and-log-retention-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Empty response for successful settings update @@ -52476,7 +52018,7 @@ paths: required: true content: application/json: - schema: *333 + schema: *330 examples: default: summary: Set retention days @@ -52500,8 +52042,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52509,7 +52051,7 @@ paths: application/json: schema: *132 examples: - default: *334 + default: *331 '404': *6 x-github: enabledForGitHubApps: true @@ -52528,8 +52070,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -52563,14 +52105,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *335 + schema: *332 examples: default: *133 '403': *27 @@ -52592,13 +52134,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *336 + schema: *333 examples: default: *133 responses: @@ -52624,8 +52166,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52652,8 +52194,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -52685,14 +52227,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#get-default-workflow-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *337 + schema: *334 examples: default: *140 x-github: @@ -52715,8 +52257,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/permissions#set-default-workflow-permissions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Success response @@ -52727,7 +52269,7 @@ paths: required: true content: application/json: - schema: *338 + schema: *335 examples: default: *140 x-github: @@ -52756,8 +52298,8 @@ paths: in: query schema: type: string - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -52801,8 +52343,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -52810,9 +52352,9 @@ paths: application/json: schema: type: array - items: *339 + items: *336 examples: - default: *340 + default: *337 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52834,8 +52376,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -52878,7 +52420,7 @@ paths: - no-gpu work_folder: _work responses: - '201': *341 + '201': *338 '404': *6 '422': *7 '409': *50 @@ -52909,8 +52451,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '201': description: Response @@ -52918,7 +52460,7 @@ paths: application/json: schema: *149 examples: - default: *342 + default: *339 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52946,8 +52488,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '201': description: Response @@ -52955,7 +52497,7 @@ paths: application/json: schema: *149 examples: - default: *343 + default: *340 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52977,8 +52519,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: '200': @@ -52987,7 +52529,7 @@ paths: application/json: schema: *147 examples: - default: *344 + default: *341 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -53008,8 +52550,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: '204': @@ -53036,8 +52578,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: '200': *151 @@ -53062,8 +52604,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 requestBody: required: true @@ -53112,8 +52654,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 requestBody: required: true @@ -53163,11 +52705,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 responses: - '200': *345 + '200': *342 '404': *6 x-github: githubCloudOnly: false @@ -53194,10 +52736,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *146 - - *346 + - *343 responses: '200': *151 '404': *6 @@ -53225,9 +52767,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-repository parameters: - - *311 - - *312 - - &364 + - *308 + - *309 + - &361 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. @@ -53235,7 +52777,7 @@ paths: required: false schema: type: string - - &365 + - &362 name: branch description: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. @@ -53243,7 +52785,7 @@ paths: required: false schema: type: string - - &366 + - &363 name: event description: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events @@ -53252,7 +52794,7 @@ paths: required: false schema: type: string - - &367 + - &364 name: status description: Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status @@ -53279,7 +52821,7 @@ paths: - pending - *17 - *19 - - &368 + - &365 name: created description: Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." @@ -53288,7 +52830,7 @@ paths: schema: type: string format: date-time - - &347 + - &344 name: exclude_pull_requests description: If `true` pull requests are omitted from the response (empty array). @@ -53297,13 +52839,13 @@ paths: schema: type: boolean default: false - - &369 + - &366 name: check_suite_id description: Returns workflow runs with the `check_suite_id` that you specify. in: query schema: type: integer - - &370 + - &367 name: head_sha description: Only returns workflow runs that are associated with the specified `head_sha`. @@ -53326,7 +52868,7 @@ paths: type: integer workflow_runs: type: array - items: &348 + items: &345 title: Workflow Run description: An invocation of a workflow type: object @@ -53504,7 +53046,7 @@ paths: head_commit: anyOf: - type: 'null' - - &392 + - &389 title: Simple Commit description: A commit. type: object @@ -53619,7 +53161,7 @@ paths: - workflow_url - pull_requests examples: - default: &371 + default: &368 value: total_count: 1 workflow_runs: @@ -53855,24 +53397,24 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run parameters: - - *311 - - *312 - - &349 + - *308 + - *309 + - &346 name: run_id description: The unique identifier of the workflow run. in: path required: true schema: type: integer - - *347 + - *344 responses: '200': description: Response content: application/json: - schema: *348 + schema: *345 examples: - default: &352 + default: &349 value: id: 30433642 name: Build @@ -54113,9 +53655,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#delete-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '204': description: Response @@ -54138,9 +53680,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-the-review-history-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '200': description: Response @@ -54268,9 +53810,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#approve-a-workflow-run-for-a-fork-pull-request parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '201': description: Response @@ -54303,12 +53845,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/artifacts#list-workflow-run-artifacts parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 - *17 - *19 - - *350 + - *347 responses: '200': description: Response @@ -54324,9 +53866,9 @@ paths: type: integer artifacts: type: array - items: *318 + items: *315 examples: - default: *351 + default: *348 headers: Link: *57 x-github: @@ -54350,25 +53892,25 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-a-workflow-run-attempt parameters: - - *311 - - *312 - - *349 - - &353 + - *308 + - *309 + - *346 + - &350 name: attempt_number description: The attempt number of the workflow run. in: path required: true schema: type: integer - - *347 + - *344 responses: '200': description: Response content: application/json: - schema: *348 + schema: *345 examples: - default: *352 + default: *349 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -54391,10 +53933,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt parameters: - - *311 - - *312 - - *349 - - *353 + - *308 + - *309 + - *346 + - *350 - *17 - *19 responses: @@ -54412,9 +53954,9 @@ paths: type: integer jobs: type: array - items: *354 + items: *351 examples: - default: &355 + default: &352 value: total_count: 1 jobs: @@ -54527,10 +54069,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-attempt-logs parameters: - - *311 - - *312 - - *349 - - *353 + - *308 + - *309 + - *346 + - *350 responses: '302': description: Response @@ -54558,9 +54100,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#cancel-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '202': description: Response @@ -54593,9 +54135,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: true content: @@ -54662,9 +54204,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#force-cancel-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '202': description: Response @@ -54697,9 +54239,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 - name: filter description: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all @@ -54729,9 +54271,9 @@ paths: type: integer jobs: type: array - items: *354 + items: *351 examples: - default: *355 + default: *352 headers: Link: *57 x-github: @@ -54756,9 +54298,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#download-workflow-run-logs parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '302': description: Response @@ -54785,9 +54327,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#delete-workflow-run-logs parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '204': description: Response @@ -54814,9 +54356,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '200': description: Response @@ -54885,7 +54427,7 @@ paths: items: type: object properties: - type: &472 + type: &469 type: string description: The type of reviewer. enum: @@ -54971,9 +54513,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: true content: @@ -55023,7 +54565,7 @@ paths: application/json: schema: type: array - items: &467 + items: &464 title: Deployment description: A request for a specific ref(branch,sha,tag) to be deployed @@ -55135,7 +54677,7 @@ paths: - created_at - updated_at examples: - default: &468 + default: &465 value: - url: https://api.github.com/repos/octocat/example/deployments/1 id: 1 @@ -55191,9 +54733,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#re-run-a-workflow parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: false content: @@ -55238,9 +54780,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 requestBody: required: false content: @@ -55294,9 +54836,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#get-workflow-run-usage parameters: - - *311 - - *312 - - *349 + - *308 + - *309 + - *346 responses: '200': description: Response @@ -55433,8 +54975,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#list-repository-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -55452,9 +54994,9 @@ paths: type: integer secrets: type: array - items: *356 + items: *353 examples: - default: *357 + default: *354 headers: Link: *57 x-github: @@ -55479,16 +55021,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-a-repository-public-key parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *358 + schema: *355 examples: - default: *359 + default: *356 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -55510,17 +55052,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '200': description: Response content: application/json: - schema: *356 + schema: *353 examples: - default: &485 + default: &482 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -55546,8 +55088,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#create-or-update-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 requestBody: required: true @@ -55605,8 +55147,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#delete-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '204': @@ -55632,9 +55174,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#list-repository-variables parameters: - - *311 - - *312 - - *327 + - *308 + - *309 + - *324 - *19 responses: '200': @@ -55651,9 +55193,9 @@ paths: type: integer variables: type: array - items: *360 + items: *357 examples: - default: *361 + default: *358 headers: Link: *57 x-github: @@ -55676,8 +55218,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#create-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -55729,17 +55271,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#get-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 responses: '200': description: Response content: application/json: - schema: *360 + schema: *357 examples: - default: &486 + default: &483 value: name: USERNAME value: octocat @@ -55765,8 +55307,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#update-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 requestBody: required: true @@ -55809,8 +55351,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#delete-a-repository-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 responses: '204': @@ -55836,8 +55378,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#list-repository-workflows parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -55855,7 +55397,7 @@ paths: type: integer workflows: type: array - items: &362 + items: &359 title: Workflow description: A GitHub Actions workflow type: object @@ -55973,9 +55515,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#get-a-workflow parameters: - - *311 - - *312 - - &363 + - *308 + - *309 + - &360 name: workflow_id in: path description: The ID of the workflow. You can also pass the workflow file name @@ -55990,7 +55532,7 @@ paths: description: Response content: application/json: - schema: *362 + schema: *359 examples: default: value: @@ -56023,9 +55565,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#disable-a-workflow parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '204': description: Response @@ -56050,9 +55592,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#create-a-workflow-dispatch-event parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '204': description: Response @@ -56103,9 +55645,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#enable-a-workflow parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '204': description: Response @@ -56132,19 +55674,19 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-workflow parameters: - - *311 - - *312 + - *308 + - *309 + - *360 + - *361 + - *362 - *363 - *364 + - *17 + - *19 - *365 + - *344 - *366 - *367 - - *17 - - *19 - - *368 - - *347 - - *369 - - *370 responses: '200': description: Response @@ -56160,9 +55702,9 @@ paths: type: integer workflow_runs: type: array - items: *348 + items: *345 examples: - default: *371 + default: *368 headers: Link: *57 x-github: @@ -56194,9 +55736,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/workflows#get-workflow-usage parameters: - - *311 - - *312 - - *363 + - *308 + - *309 + - *360 responses: '200': description: Response @@ -56257,8 +55799,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-activities parameters: - - *311 - - *312 + - *308 + - *309 - *51 - *17 - *43 @@ -56426,8 +55968,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#list-assignees parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -56464,8 +56006,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#check-if-a-user-can-be-assigned parameters: - - *311 - - *312 + - *308 + - *309 - name: assignee in: path required: true @@ -56501,8 +56043,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/attestations#create-an-attestation parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -56614,8 +56156,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/attestations#list-attestations parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *43 - *44 @@ -56672,7 +56214,7 @@ paths: initiator: type: string examples: - default: *372 + default: *369 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -56692,8 +56234,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#get-all-autolinks-of-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -56701,7 +56243,7 @@ paths: application/json: schema: type: array - items: &373 + items: &370 title: Autolink reference description: An autolink reference. type: object @@ -56760,8 +56302,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#create-an-autolink-reference-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -56800,9 +56342,9 @@ paths: description: response content: application/json: - schema: *373 + schema: *370 examples: - default: &374 + default: &371 value: id: 1 key_prefix: TICKET- @@ -56833,9 +56375,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#get-an-autolink-reference-of-a-repository parameters: - - *311 - - *312 - - &375 + - *308 + - *309 + - &372 name: autolink_id description: The unique identifier of the autolink. in: path @@ -56847,9 +56389,9 @@ paths: description: Response content: application/json: - schema: *373 + schema: *370 examples: - default: *374 + default: *371 '404': *6 x-github: githubCloudOnly: false @@ -56869,9 +56411,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/autolinks#delete-an-autolink-reference-from-a-repository parameters: - - *311 - - *312 - - *375 + - *308 + - *309 + - *372 responses: '204': description: Response @@ -56895,8 +56437,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response if Dependabot is enabled @@ -56946,8 +56488,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-dependabot-security-updates parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -56968,8 +56510,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-dependabot-security-updates parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -56989,8 +56531,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#list-branches parameters: - - *311 - - *312 + - *308 + - *309 - name: protected description: Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. @@ -57028,7 +56570,7 @@ paths: - url protected: type: boolean - protection: &377 + protection: &374 title: Branch Protection description: Branch Protection type: object @@ -57071,7 +56613,7 @@ paths: required: - contexts - checks - enforce_admins: &380 + enforce_admins: &377 title: Protected Branch Admin Enforced description: Protected Branch Admin Enforced type: object @@ -57088,7 +56630,7 @@ paths: required: - url - enabled - required_pull_request_reviews: &382 + required_pull_request_reviews: &379 title: Protected Branch Pull Request Review description: Protected Branch Pull Request Review type: object @@ -57172,7 +56714,7 @@ paths: required: - dismiss_stale_reviews - require_code_owner_reviews - restrictions: &379 + restrictions: &376 title: Branch Restriction Policy description: Branch Restriction Policy type: object @@ -57465,9 +57007,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#get-a-branch parameters: - - *311 - - *312 - - &378 + - *308 + - *309 + - &375 name: branch description: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/graphql). @@ -57481,14 +57023,14 @@ paths: description: Response content: application/json: - schema: &388 + schema: &385 title: Branch With Protection description: Branch With Protection type: object properties: name: type: string - commit: &442 + commit: &439 title: Commit description: Commit type: object @@ -57527,7 +57069,7 @@ paths: author: anyOf: - type: 'null' - - &376 + - &373 title: Git User description: Metaproperties for Git author/committer information. @@ -57549,7 +57091,7 @@ paths: committer: anyOf: - type: 'null' - - *376 + - *373 message: type: string examples: @@ -57573,7 +57115,7 @@ paths: required: - sha - url - verification: &492 + verification: &489 title: Verification type: object properties: @@ -57653,7 +57195,7 @@ paths: type: integer files: type: array - items: &453 + items: &450 title: Diff Entry description: Diff Entry type: object @@ -57749,7 +57291,7 @@ paths: - self protected: type: boolean - protection: *377 + protection: *374 protection_url: type: string format: uri @@ -57858,7 +57400,7 @@ paths: contexts: [] checks: [] protection_url: https://api.github.com/repos/octocat/Hello-World/branches/main/protection - '301': *315 + '301': *312 '404': *6 x-github: githubCloudOnly: false @@ -57880,15 +57422,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *377 + schema: *374 examples: default: value: @@ -58082,9 +57624,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#update-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -58344,7 +57886,7 @@ paths: url: type: string format: uri - required_status_checks: &385 + required_status_checks: &382 title: Status Check Policy description: Status Check Policy type: object @@ -58503,7 +58045,7 @@ paths: additionalProperties: false required: - enabled - restrictions: *379 + restrictions: *376 required_conversation_resolution: type: object properties: @@ -58615,9 +58157,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -58642,17 +58184,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-admin-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: &381 + default: &378 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins enabled: true @@ -58674,17 +58216,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-admin-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: *381 + default: *378 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -58703,9 +58245,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-admin-branch-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -58730,17 +58272,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-pull-request-review-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *382 + schema: *379 examples: - default: &383 + default: &380 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews dismissal_restrictions: @@ -58836,9 +58378,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#update-pull-request-review-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -58936,9 +58478,9 @@ paths: description: Response content: application/json: - schema: *382 + schema: *379 examples: - default: *383 + default: *380 '422': *15 x-github: githubCloudOnly: false @@ -58959,9 +58501,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-pull-request-review-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -58988,17 +58530,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-commit-signature-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: &384 + default: &381 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures enabled: true @@ -59021,17 +58563,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#create-commit-signature-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *380 + schema: *377 examples: - default: *384 + default: *381 '404': *6 x-github: githubCloudOnly: false @@ -59051,9 +58593,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-commit-signature-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -59078,17 +58620,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-status-checks-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *385 + schema: *382 examples: - default: &386 + default: &383 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks strict: true @@ -59114,9 +58656,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#update-status-check-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59168,9 +58710,9 @@ paths: description: Response content: application/json: - schema: *385 + schema: *382 examples: - default: *386 + default: *383 '404': *6 '422': *15 x-github: @@ -59192,9 +58734,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-status-check-protection parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -59218,9 +58760,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-all-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -59254,9 +58796,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59323,9 +58865,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59389,9 +58931,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-status-check-contexts parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: content: application/json: @@ -59457,15 +58999,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response content: application/json: - schema: *379 + schema: *376 examples: default: value: @@ -59556,9 +59098,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#delete-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '204': description: Response @@ -59581,9 +59123,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -59593,7 +59135,7 @@ paths: type: array items: *5 examples: - default: &387 + default: &384 value: - id: 1 slug: octoapp @@ -59650,9 +59192,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-app-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -59686,7 +59228,7 @@ paths: type: array items: *5 examples: - default: *387 + default: *384 '422': *15 x-github: githubCloudOnly: false @@ -59707,9 +59249,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-app-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -59743,7 +59285,7 @@ paths: type: array items: *5 examples: - default: *387 + default: *384 '422': *15 x-github: githubCloudOnly: false @@ -59764,9 +59306,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-app-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -59800,7 +59342,7 @@ paths: type: array items: *5 examples: - default: *387 + default: *384 '422': *15 x-github: githubCloudOnly: false @@ -59822,9 +59364,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -59854,9 +59396,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-team-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59915,9 +59457,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-team-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: false content: @@ -59976,9 +59518,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-team-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: content: application/json: @@ -60037,9 +59579,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#get-users-with-access-to-the-protected-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 responses: '200': description: Response @@ -60073,9 +59615,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#add-user-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60133,9 +59675,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#set-user-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60193,9 +59735,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branch-protection#remove-user-access-restrictions parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60255,9 +59797,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#rename-a-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 requestBody: required: true content: @@ -60279,7 +59821,7 @@ paths: description: Response content: application/json: - schema: *388 + schema: *385 examples: default: value: @@ -60395,8 +59937,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#create-a-check-run parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -60675,7 +60217,7 @@ paths: description: Response content: application/json: - schema: &389 + schema: &386 title: CheckRun description: A check performed on the code of a given code change type: object @@ -60811,7 +60353,7 @@ paths: check. type: array items: *75 - deployment: &700 + deployment: &695 title: Deployment description: A deployment created as the result of an Actions check run from a workflow that references an environment @@ -61098,9 +60640,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#get-a-check-run parameters: - - *311 - - *312 - - &390 + - *308 + - *309 + - &387 name: check_run_id description: The unique identifier of the check run. in: path @@ -61112,9 +60654,9 @@ paths: description: Response content: application/json: - schema: *389 + schema: *386 examples: - default: &391 + default: &388 value: id: 4 head_sha: ce587453ced02b1526dfb4cb910479d431683101 @@ -61214,9 +60756,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#update-a-check-run parameters: - - *311 - - *312 - - *390 + - *308 + - *309 + - *387 requestBody: required: true content: @@ -61456,9 +60998,9 @@ paths: description: Response content: application/json: - schema: *389 + schema: *386 examples: - default: *391 + default: *388 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -61478,9 +61020,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#list-check-run-annotations parameters: - - *311 - - *312 - - *390 + - *308 + - *309 + - *387 - *17 - *19 responses: @@ -61590,9 +61132,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#rerequest-a-check-run parameters: - - *311 - - *312 - - *390 + - *308 + - *309 + - *387 responses: '201': description: Response @@ -61636,8 +61178,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#create-a-check-suite parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -61659,7 +61201,7 @@ paths: description: Response when the suite already exists content: application/json: - schema: &393 + schema: &390 title: CheckSuite description: A suite of checks performed on the code of a given code change @@ -61757,7 +61299,7 @@ paths: - string - 'null' format: date-time - head_commit: *392 + head_commit: *389 latest_check_runs_count: type: integer check_runs_url: @@ -61785,7 +61327,7 @@ paths: - check_runs_url - pull_requests examples: - default: &394 + default: &391 value: id: 5 node_id: MDEwOkNoZWNrU3VpdGU1 @@ -62076,9 +61618,9 @@ paths: description: Response when the suite was created content: application/json: - schema: *393 + schema: *390 examples: - default: *394 + default: *391 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -62097,8 +61639,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#update-repository-preferences-for-check-suites parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -62407,9 +61949,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#get-a-check-suite parameters: - - *311 - - *312 - - &395 + - *308 + - *309 + - &392 name: check_suite_id description: The unique identifier of the check suite. in: path @@ -62421,9 +61963,9 @@ paths: description: Response content: application/json: - schema: *393 + schema: *390 examples: - default: *394 + default: *391 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -62446,17 +61988,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#list-check-runs-in-a-check-suite parameters: - - *311 - - *312 - - *395 - - &448 + - *308 + - *309 + - *392 + - &445 name: check_name description: Returns check runs with the specified `name`. in: query required: false schema: type: string - - &449 + - &446 name: status description: Returns check runs with the specified `status`. in: query @@ -62495,9 +62037,9 @@ paths: type: integer check_runs: type: array - items: *389 + items: *386 examples: - default: &450 + default: &447 value: total_count: 1 check_runs: @@ -62599,9 +62141,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#rerequest-a-check-suite parameters: - - *311 - - *312 - - *395 + - *308 + - *309 + - *392 responses: '201': description: Response @@ -62634,21 +62176,21 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository parameters: - - *311 - - *312 - - *396 - - *397 + - *308 + - *309 + - *393 + - *394 - *19 - *17 - - &414 + - &411 name: ref description: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. in: query required: false - schema: *398 - - &415 + schema: *395 + - &412 name: pr description: The number of the pull request for the results you want to list. in: query @@ -62673,13 +62215,13 @@ paths: be returned. in: query required: false - schema: *399 + schema: *396 - name: severity description: If specified, only code scanning alerts with this severity will be returned. in: query required: false - schema: *400 + schema: *397 - name: assignees description: | Filter alerts by assignees. Provide a comma-separated list of user handles (e.g., `octocat` or `octocat,hubot`). @@ -62703,7 +62245,7 @@ paths: updated_at: *165 url: *166 html_url: *167 - instances_url: *401 + instances_url: *398 state: *172 fixed_at: *168 dismissed_by: @@ -62711,11 +62253,11 @@ paths: - type: 'null' - *4 dismissed_at: *169 - dismissed_reason: *402 - dismissed_comment: *403 - rule: *404 - tool: *405 - most_recent_instance: *406 + dismissed_reason: *399 + dismissed_comment: *400 + rule: *401 + tool: *402 + most_recent_instance: *403 dismissal_approved_by: anyOf: - type: 'null' @@ -62838,7 +62380,7 @@ paths: classifications: [] instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances '304': *35 - '403': &407 + '403': &404 description: Response if GitHub Advanced Security is not enabled for this repository content: @@ -62865,9 +62407,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-alert parameters: - - *311 - - *312 - - &408 + - *308 + - *309 + - &405 name: alert_number in: path description: The number that identifies an alert. You can find this at the @@ -62881,7 +62423,7 @@ paths: description: Response content: application/json: - schema: &409 + schema: &406 type: object properties: number: *163 @@ -62889,7 +62431,7 @@ paths: updated_at: *165 url: *166 html_url: *167 - instances_url: *401 + instances_url: *398 state: *172 fixed_at: *168 dismissed_by: @@ -62897,8 +62439,8 @@ paths: - type: 'null' - *4 dismissed_at: *169 - dismissed_reason: *402 - dismissed_comment: *403 + dismissed_reason: *399 + dismissed_comment: *400 rule: type: object properties: @@ -62960,8 +62502,8 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: *405 - most_recent_instance: *406 + tool: *402 + most_recent_instance: *403 dismissal_approved_by: anyOf: - type: 'null' @@ -63057,7 +62599,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '304': *35 - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63077,9 +62619,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 requestBody: required: true content: @@ -63094,8 +62636,8 @@ paths: enum: - open - dismissed - dismissed_reason: *402 - dismissed_comment: *403 + dismissed_reason: *399 + dismissed_comment: *400 create_request: type: boolean description: If `true`, attempt to create an alert dismissal request. @@ -63123,7 +62665,7 @@ paths: description: Response content: application/json: - schema: *409 + schema: *406 examples: default: value: @@ -63199,7 +62741,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '400': *14 - '403': &413 + '403': &410 description: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository content: @@ -63226,15 +62768,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 responses: '200': description: Response content: application/json: - schema: &410 + schema: &407 type: object properties: status: @@ -63261,13 +62803,13 @@ paths: - description - started_at examples: - default: &411 + default: &408 value: status: success description: This fixes an XSS vulnerability by escaping the user input. started_at: '2024-02-14T12:29:18Z' - '400': &412 + '400': &409 description: Bad Request content: application/json: @@ -63278,7 +62820,7 @@ paths: message: The alert_number is not valid documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert status: '400' - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63303,29 +62845,29 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 responses: '200': description: OK content: application/json: - schema: *410 + schema: *407 examples: - default: *411 + default: *408 '202': description: Accepted content: application/json: - schema: *410 + schema: *407 examples: default: value: status: pending description: started_at: '2024-02-14T12:29:18Z' - '400': *412 + '400': *409 '403': description: Response if the repository is archived, if GitHub Advanced Security is not enabled for this repository or if rate limit is exceeded @@ -63357,9 +62899,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 requestBody: required: false content: @@ -63405,8 +62947,8 @@ paths: value: target_ref: refs/heads/main sha: 178f4f6090b3fccad4a65b3e83d076a622d59652 - '400': *412 - '403': *413 + '400': *409 + '403': *410 '404': *6 '422': description: Unprocessable Entity @@ -63430,13 +62972,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 - *19 - *17 - - *414 - - *415 + - *411 + - *412 responses: '200': description: Response @@ -63447,10 +62989,10 @@ paths: items: type: object properties: - ref: *398 - analysis_key: *416 - environment: *417 - category: *418 + ref: *395 + analysis_key: *413 + environment: *414 + category: *415 state: type: - string @@ -63467,7 +63009,7 @@ paths: properties: text: type: string - location: *419 + location: *416 html_url: type: string classifications: @@ -63475,7 +63017,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: *420 + items: *417 examples: default: value: @@ -63514,7 +63056,7 @@ paths: end_column: 50 classifications: - source - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63548,25 +63090,25 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository parameters: - - *311 - - *312 - - *396 - - *397 + - *308 + - *309 + - *393 + - *394 - *19 - *17 - - *415 + - *412 - name: ref in: query description: The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. required: false - schema: *398 + schema: *395 - name: sarif_id in: query description: Filter analyses belonging to the same SARIF upload. required: false - schema: &421 + schema: &418 type: string description: An identifier for the upload. examples: @@ -63588,23 +63130,23 @@ paths: application/json: schema: type: array - items: &422 + items: &419 type: object properties: - ref: *398 - commit_sha: &430 + ref: *395 + commit_sha: &427 description: The SHA of the commit to which the analysis you are uploading relates. type: string minLength: 40 maxLength: 40 pattern: "^[0-9a-fA-F]+$" - analysis_key: *416 + analysis_key: *413 environment: type: string description: Identifies the variable values associated with the environment in which this analysis was performed. - category: *418 + category: *415 error: type: string examples: @@ -63629,8 +63171,8 @@ paths: description: The REST API URL of the analysis resource. format: uri readOnly: true - sarif_id: *421 - tool: *405 + sarif_id: *418 + tool: *402 deletable: type: boolean warning: @@ -63692,7 +63234,7 @@ paths: version: 1.2.0 deletable: true warning: '' - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -63728,8 +63270,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -63742,7 +63284,7 @@ paths: description: Response content: application/json: - schema: *422 + schema: *419 examples: response: summary: application/json response @@ -63796,7 +63338,7 @@ paths: properties: - github/alertNumber: 2 - github/alertUrl: https://api.github.com/repos/monalisa/monalisa/code-scanning/alerts/2 - '403': *407 + '403': *404 '404': *6 '422': description: Response if analysis could not be processed @@ -63883,8 +63425,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -63940,7 +63482,7 @@ paths: next_analysis_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41 confirm_delete_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41?confirm_delete '400': *14 - '403': *413 + '403': *410 '404': *6 '503': *106 x-github: @@ -63962,8 +63504,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -63971,7 +63513,7 @@ paths: application/json: schema: type: array - items: &423 + items: &420 title: CodeQL Database description: A CodeQL database. type: object @@ -64083,7 +63625,7 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/ruby commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -64112,8 +63654,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: language in: path description: The language of the CodeQL database. @@ -64125,7 +63667,7 @@ paths: description: Response content: application/json: - schema: *423 + schema: *420 examples: default: value: @@ -64157,9 +63699,9 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '302': &455 + '302': &452 description: Found - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -64181,8 +63723,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#delete-a-codeql-database parameters: - - *311 - - *312 + - *308 + - *309 - name: language in: path description: The language of the CodeQL database. @@ -64192,7 +63734,7 @@ paths: responses: '204': description: Response - '403': *413 + '403': *410 '404': *6 '503': *106 x-github: @@ -64220,8 +63762,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#create-a-codeql-variant-analysis parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -64230,7 +63772,7 @@ paths: type: object additionalProperties: false properties: - language: &424 + language: &421 type: string description: The language targeted by the CodeQL query enum: @@ -64310,7 +63852,7 @@ paths: description: Variant analysis submitted for processing content: application/json: - schema: &428 + schema: &425 title: Variant Analysis description: A run of a CodeQL query against one or more repositories. type: object @@ -64320,7 +63862,7 @@ paths: description: The ID of the variant analysis. controller_repo: *56 actor: *4 - query_language: *424 + query_language: *421 query_pack_url: type: string description: The download url for the query pack. @@ -64368,7 +63910,7 @@ paths: items: type: object properties: - repository: &425 + repository: &422 title: Repository Identifier description: Repository Identifier type: object @@ -64410,7 +63952,7 @@ paths: - private - stargazers_count - updated_at - analysis_status: &429 + analysis_status: &426 type: string description: The new status of the CodeQL variant analysis repository task. @@ -64442,7 +63984,7 @@ paths: from processing. This information is only available to the user that initiated the variant analysis. properties: - access_mismatch_repos: &426 + access_mismatch_repos: &423 type: object properties: repository_count: @@ -64457,7 +63999,7 @@ paths: This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. - items: *425 + items: *422 required: - repository_count - repositories @@ -64480,8 +64022,8 @@ paths: required: - repository_count - repository_full_names - no_codeql_db_repos: *426 - over_limit_repos: *426 + no_codeql_db_repos: *423 + over_limit_repos: *423 required: - access_mismatch_repos - not_found_repos @@ -64497,7 +64039,7 @@ paths: examples: repositories_parameter: summary: Response for a successful variant analysis submission - value: &427 + value: &424 summary: Default response value: id: 1 @@ -64643,10 +64185,10 @@ paths: private: false repository_owners: summary: Response for a successful variant analysis submission - value: *427 + value: *424 repository_lists: summary: Response for a successful variant analysis submission - value: *427 + value: *424 '404': *6 '422': description: Unable to process variant analysis submission @@ -64674,8 +64216,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-summary-of-a-codeql-variant-analysis parameters: - - *311 - - *312 + - *308 + - *309 - name: codeql_variant_analysis_id in: path description: The unique identifier of the variant analysis. @@ -64687,9 +64229,9 @@ paths: description: Response content: application/json: - schema: *428 + schema: *425 examples: - default: *427 + default: *424 '404': *6 '503': *106 x-github: @@ -64712,7 +64254,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-analysis-status-of-a-repository-in-a-codeql-variant-analysis parameters: - - *311 + - *308 - name: repo in: path description: The name of the controller repository. @@ -64747,7 +64289,7 @@ paths: type: object properties: repository: *56 - analysis_status: *429 + analysis_status: *426 artifact_size_in_bytes: type: integer description: The size of the artifact. This is only available @@ -64872,8 +64414,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -64966,7 +64508,7 @@ paths: threat_model: remote updated_at: '2023-01-19T11:21:34Z' schedule: weekly - '403': *407 + '403': *404 '404': *6 '503': *106 x-github: @@ -64987,8 +64529,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -65082,7 +64624,7 @@ paths: value: run_id: 42 run_url: https://api.github.com/repos/octoorg/octocat/actions/runs/42 - '403': *413 + '403': *410 '404': *6 '409': description: Response if there is already a validation run in progress with @@ -65153,8 +64695,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -65162,7 +64704,7 @@ paths: schema: type: object properties: - commit_sha: *430 + commit_sha: *427 ref: type: string description: |- @@ -65222,7 +64764,7 @@ paths: schema: type: object properties: - id: *421 + id: *418 url: type: string description: The REST API URL for checking the status of the upload. @@ -65236,7 +64778,7 @@ paths: url: https://api.github.com/repos/octocat/hello-world/code-scanning/sarifs/47177e22-5596-11eb-80a1-c1e54ef945c6 '400': description: Bad Request if the sarif field is invalid - '403': *413 + '403': *410 '404': *6 '413': description: Payload Too Large if the sarif field is too large @@ -65259,8 +64801,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload parameters: - - *311 - - *312 + - *308 + - *309 - name: sarif_id description: The SARIF ID obtained after uploading. in: path @@ -65308,7 +64850,7 @@ paths: value: processing_status: complete analyses_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses?sarif_id=47177e22-5596-11eb-80a1-c1e54ef945c6 - '403': *407 + '403': *404 '404': description: Not Found if the sarif id does not match any upload '503': *106 @@ -65333,8 +64875,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/code-security/configurations#get-the-code-security-configuration-associated-with-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -65415,8 +64957,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-codeowners-errors parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: 'A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository''s default branch @@ -65544,8 +65086,8 @@ paths: parameters: - *17 - *19 - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -65859,8 +65401,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#create-a-codespace-in-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -65926,7 +65468,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -65934,7 +65476,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '400': *14 '401': *23 '403': *27 @@ -65963,8 +65505,8 @@ paths: parameters: - *17 - *19 - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -66028,8 +65570,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/machines#list-available-machine-types-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: location description: The location to check for available machines. Assigned by IP if not provided. @@ -66066,9 +65608,9 @@ paths: type: integer machines: type: array - items: *432 + items: *429 examples: - default: &646 + default: &641 value: total_count: 2 machines: @@ -66108,8 +65650,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#get-default-attributes-for-a-codespace parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked. @@ -66196,8 +65738,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of `ref` will typically @@ -66266,8 +65808,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#list-repository-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -66285,7 +65827,7 @@ paths: type: integer secrets: type: array - items: &436 + items: &433 title: Codespaces Secret description: Set repository secrets for GitHub Codespaces. type: object @@ -66306,7 +65848,7 @@ paths: - created_at - updated_at examples: - default: *433 + default: *430 headers: Link: *57 x-github: @@ -66329,16 +65871,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-public-key parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *434 + schema: *431 examples: - default: *435 + default: *432 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -66358,17 +65900,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#get-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '200': description: Response content: application/json: - schema: *436 + schema: *433 examples: - default: *437 + default: *434 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -66388,8 +65930,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#create-or-update-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 requestBody: required: true @@ -66442,8 +65984,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/repository-secrets#delete-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '204': @@ -66472,8 +66014,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#list-repository-collaborators parameters: - - *311 - - *312 + - *308 + - *309 - name: affiliation description: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` @@ -66511,7 +66053,7 @@ paths: application/json: schema: type: array - items: &438 + items: &435 title: Collaborator description: Collaborator type: object @@ -66704,8 +66246,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator parameters: - - *311 - - *312 + - *308 + - *309 - *62 responses: '204': @@ -66752,8 +66294,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#add-a-repository-collaborator parameters: - - *311 - - *312 + - *308 + - *309 - *62 requestBody: required: false @@ -66780,7 +66322,7 @@ paths: description: Response when a new invitation is created content: application/json: - schema: &505 + schema: &502 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -67008,8 +66550,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#remove-a-repository-collaborator parameters: - - *311 - - *312 + - *308 + - *309 - *62 responses: '204': @@ -67041,8 +66583,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/collaborators#get-repository-permissions-for-a-user parameters: - - *311 - - *312 + - *308 + - *309 - *62 responses: '200': @@ -67063,7 +66605,7 @@ paths: user: anyOf: - type: 'null' - - *438 + - *435 required: - permission - role_name @@ -67117,8 +66659,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#list-commit-comments-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -67128,7 +66670,7 @@ paths: application/json: schema: type: array - items: &439 + items: &436 title: Commit Comment description: Commit Comment type: object @@ -67186,7 +66728,7 @@ paths: - created_at - updated_at examples: - default: &444 + default: &441 value: - html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -67245,17 +66787,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#get-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '200': description: Response content: application/json: - schema: *439 + schema: *436 examples: - default: &445 + default: &442 value: html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -67312,8 +66854,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#update-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -67336,7 +66878,7 @@ paths: description: Response content: application/json: - schema: *439 + schema: *436 examples: default: value: @@ -67387,8 +66929,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#delete-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '204': @@ -67410,8 +66952,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). @@ -67438,7 +66980,7 @@ paths: application/json: schema: type: array - items: &440 + items: &437 title: Reaction description: Reactions to conversations provide a way to help people express their feelings more simply and effectively. @@ -67482,7 +67024,7 @@ paths: - content - created_at examples: - default: &509 + default: &506 value: - id: 1 node_id: MDg6UmVhY3Rpb24x @@ -67527,8 +67069,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-commit-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -67561,9 +67103,9 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: &441 + default: &438 value: id: 1 node_id: MDg6UmVhY3Rpb24x @@ -67592,9 +67134,9 @@ paths: description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -67616,10 +67158,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-a-commit-comment-reaction parameters: - - *311 - - *312 + - *308 + - *309 - *86 - - &510 + - &507 name: reaction_id description: The unique identifier of the reaction. in: path @@ -67674,8 +67216,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#list-commits parameters: - - *311 - - *312 + - *308 + - *309 - name: sha description: 'SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`).' @@ -67731,9 +67273,9 @@ paths: application/json: schema: type: array - items: *442 + items: *439 examples: - default: &556 + default: &553 value: - url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -67827,9 +67369,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#list-branches-for-head-commit parameters: - - *311 - - *312 - - &443 + - *308 + - *309 + - &440 name: commit_sha description: The SHA of the commit. in: path @@ -67901,9 +67443,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#list-commit-comments parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 - *17 - *19 responses: @@ -67913,9 +67455,9 @@ paths: application/json: schema: type: array - items: *439 + items: *436 examples: - default: *444 + default: *441 headers: Link: *57 x-github: @@ -67943,9 +67485,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/comments#create-a-commit-comment parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 requestBody: required: true content: @@ -67980,9 +67522,9 @@ paths: description: Response content: application/json: - schema: *439 + schema: *436 examples: - default: *445 + default: *442 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -68010,9 +67552,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 - *17 - *19 responses: @@ -68022,9 +67564,9 @@ paths: application/json: schema: type: array - items: *446 + items: *443 examples: - default: &548 + default: &545 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -68561,11 +68103,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#get-a-commit parameters: - - *311 - - *312 + - *308 + - *309 - *19 - *17 - - &447 + - &444 name: ref description: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" @@ -68580,9 +68122,9 @@ paths: description: Response content: application/json: - schema: *442 + schema: *439 examples: - default: &534 + default: &531 value: url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -68695,11 +68237,11 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/runs#list-check-runs-for-a-git-reference parameters: - - *311 - - *312 - - *447 - - *448 - - *449 + - *308 + - *309 + - *444 + - *445 + - *446 - name: filter description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. @@ -68733,9 +68275,9 @@ paths: type: integer check_runs: type: array - items: *389 + items: *386 examples: - default: *450 + default: *447 headers: Link: *57 x-github: @@ -68760,9 +68302,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/checks/suites#list-check-suites-for-a-git-reference parameters: - - *311 - - *312 - - *447 + - *308 + - *309 + - *444 - name: app_id description: Filters check suites by GitHub App `id`. in: query @@ -68770,7 +68312,7 @@ paths: schema: type: integer example: 1 - - *448 + - *445 - *17 - *19 responses: @@ -68788,7 +68330,7 @@ paths: type: integer check_suites: type: array - items: *393 + items: *390 examples: default: value: @@ -68988,9 +68530,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/statuses#get-the-combined-status-for-a-specific-reference parameters: - - *311 - - *312 - - *447 + - *308 + - *309 + - *444 - *17 - *19 responses: @@ -69192,9 +68734,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/statuses#list-commit-statuses-for-a-reference parameters: - - *311 - - *312 - - *447 + - *308 + - *309 + - *444 - *17 - *19 responses: @@ -69204,7 +68746,7 @@ paths: application/json: schema: type: array - items: &621 + items: &618 title: Status description: The status of a commit. type: object @@ -69285,7 +68827,7 @@ paths: site_admin: false headers: Link: *57 - '301': *315 + '301': *312 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -69313,8 +68855,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/community#get-community-profile-metrics parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -69347,11 +68889,11 @@ paths: code_of_conduct: anyOf: - type: 'null' - - *451 + - *448 code_of_conduct_file: anyOf: - type: 'null' - - &452 + - &449 title: Community Health File type: object properties: @@ -69371,19 +68913,19 @@ paths: contributing: anyOf: - type: 'null' - - *452 + - *449 readme: anyOf: - type: 'null' - - *452 + - *449 issue_template: anyOf: - type: 'null' - - *452 + - *449 pull_request_template: anyOf: - type: 'null' - - *452 + - *449 required: - code_of_conduct - code_of_conduct_file @@ -69512,8 +69054,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/commits#compare-two-commits parameters: - - *311 - - *312 + - *308 + - *309 - *19 - *17 - name: basehead @@ -69561,8 +69103,8 @@ paths: format: uri examples: - https://github.com/octocat/Hello-World/compare/master...topic.patch - base_commit: *442 - merge_base_commit: *442 + base_commit: *439 + merge_base_commit: *439 status: type: string enum: @@ -69586,10 +69128,10 @@ paths: - 6 commits: type: array - items: *442 + items: *439 files: type: array - items: *453 + items: *450 required: - url - html_url @@ -69875,8 +69417,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#get-repository-content parameters: - - *311 - - *312 + - *308 + - *309 - name: path description: path parameter in: path @@ -70029,7 +69571,7 @@ paths: - type - url examples: - response-if-content-is-a-file: &454 + response-if-content-is-a-file: &451 summary: Response if content is a file value: type: file @@ -70166,7 +69708,7 @@ paths: - size - type - url - - &561 + - &558 title: Content File description: Content File type: object @@ -70384,7 +69926,7 @@ paths: - url - submodule_git_url examples: - response-if-content-is-a-file: *454 + response-if-content-is-a-file: *451 response-if-content-is-a-directory: summary: Response if content is a directory and the application/json media type is requested @@ -70453,7 +69995,7 @@ paths: html: https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9 '404': *6 '403': *27 - '302': *455 + '302': *452 '304': *35 x-github: githubCloudOnly: false @@ -70476,8 +70018,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#create-or-update-file-contents parameters: - - *311 - - *312 + - *308 + - *309 - name: path description: path parameter in: path @@ -70572,7 +70114,7 @@ paths: description: Response content: application/json: - schema: &456 + schema: &453 title: File Commit description: File Commit type: object @@ -70728,7 +70270,7 @@ paths: description: Response content: application/json: - schema: *456 + schema: *453 examples: example-for-creating-a-file: value: @@ -70782,7 +70324,7 @@ paths: schema: oneOf: - *3 - - &487 + - &484 description: Repository rule violation was detected type: object properties: @@ -70803,7 +70345,7 @@ paths: items: type: object properties: - placeholder_id: &613 + placeholder_id: &610 description: The ID of the push protection bypass placeholder. This value is returned on any push protected routes. @@ -70835,8 +70377,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#delete-a-file parameters: - - *311 - - *312 + - *308 + - *309 - name: path description: path parameter in: path @@ -70897,7 +70439,7 @@ paths: description: Response content: application/json: - schema: *456 + schema: *453 examples: default: value: @@ -70952,8 +70494,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-contributors parameters: - - *311 - - *312 + - *308 + - *309 - name: anon description: Set to `1` or `true` to include anonymous contributors in results. in: query @@ -71077,8 +70619,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *181 - *182 - *183 @@ -71090,7 +70632,7 @@ paths: schema: type: string - *185 - - *457 + - *454 - *186 - *187 - *51 @@ -71111,7 +70653,7 @@ paths: application/json: schema: type: array - items: &461 + items: &458 type: object description: A Dependabot alert. properties: @@ -71161,7 +70703,7 @@ paths: - direct - transitive - - security_advisory: *458 + security_advisory: *455 security_vulnerability: *55 url: *166 html_url: *167 @@ -71192,8 +70734,8 @@ paths: dismissal. maxLength: 280 fixed_at: *168 - auto_dismissed_at: *459 - dismissal_request: *460 + auto_dismissed_at: *456 + dismissal_request: *457 required: - number - state @@ -71423,9 +70965,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/alerts#get-a-dependabot-alert parameters: - - *311 - - *312 - - &462 + - *308 + - *309 + - &459 name: alert_number in: path description: |- @@ -71440,7 +70982,7 @@ paths: description: Response content: application/json: - schema: *461 + schema: *458 examples: default: value: @@ -71553,9 +71095,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/alerts#update-a-dependabot-alert parameters: - - *311 - - *312 - - *462 + - *308 + - *309 + - *459 requestBody: required: true content: @@ -71600,7 +71142,7 @@ paths: description: Response content: application/json: - schema: *461 + schema: *458 examples: default: value: @@ -71729,8 +71271,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#list-repository-secrets parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -71748,7 +71290,7 @@ paths: type: integer secrets: type: array - items: &465 + items: &462 title: Dependabot Secret description: Set secrets for Dependabot. type: object @@ -71802,16 +71344,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#get-a-repository-public-key parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *463 + schema: *460 examples: - default: *464 + default: *461 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -71831,15 +71373,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#get-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '200': description: Response content: application/json: - schema: *465 + schema: *462 examples: default: value: @@ -71865,8 +71407,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#create-or-update-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 requestBody: required: true @@ -71919,8 +71461,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependabot/secrets#delete-a-repository-secret parameters: - - *311 - - *312 + - *308 + - *309 - *153 responses: '204': @@ -71943,8 +71485,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependency-graph/dependency-review#get-a-diff-of-the-dependencies-between-commits parameters: - - *311 - - *312 + - *308 + - *309 - name: basehead description: The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their @@ -72118,8 +71660,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependency-graph/sboms#export-a-software-bill-of-materials-sbom-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -72379,8 +71921,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -72463,7 +72005,7 @@ paths: - version - url additionalProperties: false - metadata: &466 + metadata: &463 title: metadata description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -72502,7 +72044,7 @@ paths: examples: - "/src/build/package-lock.json" additionalProperties: false - metadata: *466 + metadata: *463 resolved: type: object description: A collection of resolved package dependencies. @@ -72516,7 +72058,7 @@ paths: pattern: "^pkg" examples: - pkg:/npm/%40actions/http-client@1.0.11 - metadata: *466 + metadata: *463 relationship: type: string description: A notation of whether a dependency is requested @@ -72649,8 +72191,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#list-deployments parameters: - - *311 - - *312 + - *308 + - *309 - name: sha description: The SHA recorded at creation time. in: query @@ -72691,9 +72233,9 @@ paths: application/json: schema: type: array - items: *467 + items: *464 examples: - default: *468 + default: *465 headers: Link: *57 x-github: @@ -72759,8 +72301,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#create-a-deployment parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -72842,7 +72384,7 @@ paths: description: Response content: application/json: - schema: *467 + schema: *464 examples: simple-example: summary: Simple example @@ -72915,9 +72457,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#get-a-deployment parameters: - - *311 - - *312 - - &469 + - *308 + - *309 + - &466 name: deployment_id description: deployment_id parameter in: path @@ -72929,7 +72471,7 @@ paths: description: Response content: application/json: - schema: *467 + schema: *464 examples: default: value: @@ -72994,9 +72536,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/deployments#delete-a-deployment parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 responses: '204': description: Response @@ -73018,9 +72560,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/statuses#list-deployment-statuses parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 - *17 - *19 responses: @@ -73030,7 +72572,7 @@ paths: application/json: schema: type: array - items: &470 + items: &467 title: Deployment Status description: The status of a deployment. type: object @@ -73194,9 +72736,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/statuses#create-a-deployment-status parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 requestBody: required: true content: @@ -73271,9 +72813,9 @@ paths: description: Response content: application/json: - schema: *470 + schema: *467 examples: - default: &471 + default: &468 value: url: https://api.github.com/repos/octocat/example/deployments/42/statuses/1 id: 1 @@ -73329,9 +72871,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/statuses#get-a-deployment-status parameters: - - *311 - - *312 - - *469 + - *308 + - *309 + - *466 - name: status_id in: path required: true @@ -73342,9 +72884,9 @@ paths: description: Response content: application/json: - schema: *470 + schema: *467 examples: - default: *471 + default: *468 '404': *6 x-github: githubCloudOnly: false @@ -73369,8 +72911,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#create-a-repository-dispatch-event parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -73427,8 +72969,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#list-environments parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -73446,7 +72988,7 @@ paths: - 5 environments: type: array - items: &473 + items: &470 title: Environment description: Details of a deployment environment type: object @@ -73508,7 +73050,7 @@ paths: type: string examples: - wait_timer - wait_timer: &475 + wait_timer: &472 type: integer description: The amount of time to delay a job after the job is initially triggered. The time (in minutes) @@ -73550,7 +73092,7 @@ paths: items: type: object properties: - type: *472 + type: *469 reviewer: anyOf: - *4 @@ -73577,7 +73119,7 @@ paths: - id - node_id - type - deployment_branch_policy: &476 + deployment_branch_policy: &473 type: - object - 'null' @@ -73694,9 +73236,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#get-an-environment parameters: - - *311 - - *312 - - &474 + - *308 + - *309 + - &471 name: environment_name in: path required: true @@ -73709,9 +73251,9 @@ paths: description: Response content: application/json: - schema: *473 + schema: *470 examples: - default: &477 + default: &474 value: id: 161088068 node_id: MDExOkVudmlyb25tZW50MTYxMDg4MDY4 @@ -73795,9 +73337,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#create-or-update-an-environment parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 requestBody: required: false content: @@ -73807,7 +73349,7 @@ paths: - object - 'null' properties: - wait_timer: *475 + wait_timer: *472 prevent_self_review: type: boolean description: Whether or not a user who created the job is prevented @@ -73826,14 +73368,14 @@ paths: items: type: object properties: - type: *472 + type: *469 id: type: integer description: The id of the user or team who can review the deployment examples: - 4532992 - deployment_branch_policy: *476 + deployment_branch_policy: *473 additionalProperties: false examples: default: @@ -73853,9 +73395,9 @@ paths: description: Response content: application/json: - schema: *473 + schema: *470 examples: - default: *477 + default: *474 '422': description: Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` @@ -73879,9 +73421,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/environments#delete-an-environment parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 responses: '204': description: Default response @@ -73906,9 +73448,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#list-deployment-branch-policies parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *17 - *19 responses: @@ -73927,7 +73469,7 @@ paths: - 2 branch_policies: type: array - items: &478 + items: &475 title: Deployment branch policy description: Details of a deployment branch or tag policy. type: object @@ -73988,9 +73530,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#create-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 requestBody: required: true content: @@ -74038,9 +73580,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - example-wildcard: &479 + example-wildcard: &476 value: id: 364662 node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI= @@ -74082,10 +73624,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#get-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 - - &480 + - *308 + - *309 + - *471 + - &477 name: branch_policy_id in: path required: true @@ -74097,9 +73639,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - default: *479 + default: *476 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74118,10 +73660,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#update-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 - - *480 + - *308 + - *309 + - *471 + - *477 requestBody: required: true content: @@ -74150,9 +73692,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - default: *479 + default: *476 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74171,10 +73713,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/branch-policies#delete-a-deployment-branch-policy parameters: - - *311 - - *312 - - *474 - - *480 + - *308 + - *309 + - *471 + - *477 responses: '204': description: Response @@ -74199,9 +73741,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#get-all-deployment-protection-rules-for-an-environment parameters: - - *474 - - *312 - - *311 + - *471 + - *309 + - *308 responses: '200': description: List of deployment protection rules @@ -74218,7 +73760,7 @@ paths: - 10 custom_deployment_protection_rules: type: array - items: &481 + items: &478 title: Deployment protection rule description: Deployment protection rule type: object @@ -74240,7 +73782,7 @@ paths: for the environment. examples: - true - app: &482 + app: &479 title: Custom deployment protection rule app description: A GitHub App that is providing a custom deployment protection rule. @@ -74343,9 +73885,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#create-a-custom-deployment-protection-rule-on-an-environment parameters: - - *474 - - *312 - - *311 + - *471 + - *309 + - *308 requestBody: content: application/json: @@ -74366,9 +73908,9 @@ paths: description: The enabled custom deployment protection rule content: application/json: - schema: *481 + schema: *478 examples: - default: &483 + default: &480 value: id: 3 node_id: IEH37kRlcGxveW1lbnRTdGF0ddiv @@ -74403,9 +73945,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#list-custom-deployment-rule-integrations-available-for-an-environment parameters: - - *474 - - *312 - - *311 + - *471 + - *309 + - *308 - *19 - *17 responses: @@ -74425,7 +73967,7 @@ paths: - 35 available_custom_deployment_protection_rule_integrations: type: array - items: *482 + items: *479 examples: default: value: @@ -74460,10 +74002,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#get-a-custom-deployment-protection-rule parameters: - - *311 - - *312 - - *474 - - &484 + - *308 + - *309 + - *471 + - &481 name: protection_rule_id description: The unique identifier of the protection rule. in: path @@ -74475,9 +74017,9 @@ paths: description: Response content: application/json: - schema: *481 + schema: *478 examples: - default: *483 + default: *480 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74498,10 +74040,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/deployments/protection-rules#disable-a-custom-protection-rule-for-an-environment parameters: - - *474 - - *312 - - *311 - - *484 + - *471 + - *309 + - *308 + - *481 responses: '204': description: Response @@ -74527,9 +74069,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#list-environment-secrets parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *17 - *19 responses: @@ -74547,9 +74089,9 @@ paths: type: integer secrets: type: array - items: *356 + items: *353 examples: - default: *357 + default: *354 headers: Link: *57 x-github: @@ -74574,17 +74116,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-an-environment-public-key parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 responses: '200': description: Response content: application/json: - schema: *358 + schema: *355 examples: - default: *359 + default: *356 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74606,18 +74148,18 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#get-an-environment-secret parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *153 responses: '200': description: Response content: application/json: - schema: *356 + schema: *353 examples: - default: *485 + default: *482 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74639,9 +74181,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#create-or-update-an-environment-secret parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *153 requestBody: required: true @@ -74699,9 +74241,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/secrets#delete-an-environment-secret parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *153 responses: '204': @@ -74727,10 +74269,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#list-environment-variables parameters: - - *311 - - *312 - - *474 - - *327 + - *308 + - *309 + - *471 + - *324 - *19 responses: '200': @@ -74747,9 +74289,9 @@ paths: type: integer variables: type: array - items: *360 + items: *357 examples: - default: *361 + default: *358 headers: Link: *57 x-github: @@ -74772,9 +74314,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#create-an-environment-variable parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 requestBody: required: true content: @@ -74826,18 +74368,18 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#get-an-environment-variable parameters: - - *311 - - *312 - - *474 + - *308 + - *309 + - *471 - *156 responses: '200': description: Response content: application/json: - schema: *360 + schema: *357 examples: - default: *486 + default: *483 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74858,10 +74400,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#update-an-environment-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 - - *474 + - *471 requestBody: required: true content: @@ -74903,10 +74445,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/actions/variables#delete-an-environment-variable parameters: - - *311 - - *312 + - *308 + - *309 - *156 - - *474 + - *471 responses: '204': description: Response @@ -74928,8 +74470,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/events#list-repository-events parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -74997,8 +74539,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/forks#list-forks parameters: - - *311 - - *312 + - *308 + - *309 - name: sort description: The sort order. `stargazers` will sort by star count. in: query @@ -75157,8 +74699,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/forks#create-a-fork parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -75191,9 +74733,9 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 '400': *14 '422': *15 '403': *27 @@ -75214,8 +74756,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/blobs#create-a-blob parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -75275,7 +74817,7 @@ paths: schema: oneOf: - *114 - - *487 + - *484 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -75300,8 +74842,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/blobs#get-a-blob parameters: - - *311 - - *312 + - *308 + - *309 - name: file_sha in: path required: true @@ -75401,8 +74943,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/commits#create-a-commit parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -75511,7 +75053,7 @@ paths: description: Response content: application/json: - schema: &488 + schema: &485 title: Git Commit description: Low-level Git commit operations within a repository type: object @@ -75738,15 +75280,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/commits#get-a-commit-object parameters: - - *311 - - *312 - - *443 + - *308 + - *309 + - *440 responses: '200': description: Response content: application/json: - schema: *488 + schema: *485 examples: default: value: @@ -75802,9 +75344,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#list-matching-references parameters: - - *311 - - *312 - - &489 + - *308 + - *309 + - &486 name: ref description: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -75821,7 +75363,7 @@ paths: application/json: schema: type: array - items: &490 + items: &487 title: Git Reference description: Git references within a repository type: object @@ -75897,17 +75439,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#get-a-reference parameters: - - *311 - - *312 - - *489 + - *308 + - *309 + - *486 responses: '200': description: Response content: application/json: - schema: *490 + schema: *487 examples: - default: &491 + default: &488 value: ref: refs/heads/featureA node_id: MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ== @@ -75936,8 +75478,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#create-a-reference parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -75966,9 +75508,9 @@ paths: description: Response content: application/json: - schema: *490 + schema: *487 examples: - default: *491 + default: *488 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA @@ -75994,9 +75536,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#update-a-reference parameters: - - *311 - - *312 - - *489 + - *308 + - *309 + - *486 requestBody: required: true content: @@ -76025,9 +75567,9 @@ paths: description: Response content: application/json: - schema: *490 + schema: *487 examples: - default: *491 + default: *488 '422': *15 '409': *50 x-github: @@ -76045,9 +75587,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/refs#delete-a-reference parameters: - - *311 - - *312 - - *489 + - *308 + - *309 + - *486 responses: '204': description: Response @@ -76102,8 +75644,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/tags#create-a-tag-object parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -76170,7 +75712,7 @@ paths: description: Response content: application/json: - schema: &493 + schema: &490 title: Git Tag description: Metadata for a Git tag type: object @@ -76226,7 +75768,7 @@ paths: - sha - type - url - verification: *492 + verification: *489 required: - sha - url @@ -76236,7 +75778,7 @@ paths: - tag - message examples: - default: &494 + default: &491 value: node_id: MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw== tag: v0.0.1 @@ -76309,8 +75851,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/tags#get-a-tag parameters: - - *311 - - *312 + - *308 + - *309 - name: tag_sha in: path required: true @@ -76321,9 +75863,9 @@ paths: description: Response content: application/json: - schema: *493 + schema: *490 examples: - default: *494 + default: *491 '404': *6 '409': *50 x-github: @@ -76347,8 +75889,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/trees#create-a-tree parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -76422,7 +75964,7 @@ paths: description: Response content: application/json: - schema: &495 + schema: &492 title: Git Tree description: The hierarchy between files in a Git repository. type: object @@ -76524,8 +76066,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/git/trees#get-a-tree parameters: - - *311 - - *312 + - *308 + - *309 - name: tree_sha description: The SHA1 value or ref (branch or tag) name of the tree. in: path @@ -76548,7 +76090,7 @@ paths: description: Response content: application/json: - schema: *495 + schema: *492 examples: default-response: summary: Default response @@ -76607,8 +76149,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#list-repository-webhooks parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -76618,7 +76160,7 @@ paths: application/json: schema: type: array - items: &496 + items: &493 title: Webhook description: Webhooks for repositories. type: object @@ -76681,7 +76223,7 @@ paths: format: uri examples: - https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries - last_response: &731 + last_response: &726 title: Hook Response type: object properties: @@ -76758,8 +76300,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#create-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -76812,9 +76354,9 @@ paths: description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: &497 + default: &494 value: type: Repository id: 12345678 @@ -76862,17 +76404,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#get-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *497 + default: *494 '404': *6 x-github: githubCloudOnly: false @@ -76892,8 +76434,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#update-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 requestBody: required: true @@ -76939,9 +76481,9 @@ paths: description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *497 + default: *494 '422': *15 '404': *6 x-github: @@ -76962,8 +76504,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#delete-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '204': @@ -76988,8 +76530,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#get-a-webhook-configuration-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '200': @@ -77017,8 +76559,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#update-a-webhook-configuration-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *193 requestBody: required: false @@ -77063,8 +76605,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#list-deliveries-for-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 - *17 - *194 @@ -77096,8 +76638,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#get-a-delivery-for-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 - *16 responses: @@ -77126,8 +76668,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 - *16 responses: @@ -77151,8 +76693,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#ping-a-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '204': @@ -77178,8 +76720,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/webhooks#test-the-push-repository-webhook parameters: - - *311 - - *312 + - *308 + - *309 - *193 responses: '204': @@ -77203,8 +76745,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-immutable-releases-are-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response if immutable releases are enabled @@ -77252,8 +76794,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-immutable-releases parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '409': *50 @@ -77273,8 +76815,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-immutable-releases parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '409': *50 @@ -77331,14 +76873,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#get-an-import-status parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &498 + schema: &495 title: Import description: A repository import from an external source. type: object @@ -77445,7 +76987,7 @@ paths: - html_url - authors_url examples: - default: &501 + default: &498 value: vcs: subversion use_lfs: true @@ -77461,7 +77003,7 @@ paths: authors_url: https://api.github.com/repos/octocat/socm/import/authors repository_url: https://api.github.com/repos/octocat/socm '404': *6 - '503': &499 + '503': &496 description: Unavailable due to service under maintenance. content: application/json: @@ -77490,8 +77032,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#start-an-import parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -77539,7 +77081,7 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: default: value: @@ -77564,7 +77106,7 @@ paths: type: string '422': *15 '404': *6 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77592,8 +77134,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#update-an-import parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -77645,7 +77187,7 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: example-1: summary: Example 1 @@ -77693,7 +77235,7 @@ paths: 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 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77716,12 +77258,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#cancel-an-import parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77747,9 +77289,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#get-commit-authors parameters: - - *311 - - *312 - - &667 + - *308 + - *309 + - &662 name: since description: A user ID. Only return users with an ID greater than this ID. in: query @@ -77763,7 +77305,7 @@ paths: application/json: schema: type: array - items: &500 + items: &497 title: Porter Author description: Porter Author type: object @@ -77817,7 +77359,7 @@ paths: url: https://api.github.com/repos/octocat/socm/import/authors/2268559 import_url: https://api.github.com/repos/octocat/socm/import '404': *6 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77842,8 +77384,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#map-a-commit-author parameters: - - *311 - - *312 + - *308 + - *309 - name: author_id in: path required: true @@ -77873,7 +77415,7 @@ paths: description: Response content: application/json: - schema: *500 + schema: *497 examples: default: value: @@ -77886,7 +77428,7 @@ paths: import_url: https://api.github.com/repos/octocat/socm/import '422': *15 '404': *6 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77910,8 +77452,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#get-large-files parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -77952,7 +77494,7 @@ paths: path: foo/bar/3 oid: c20ad4d76fe97759aa27a0c99bff6710 size: 12582912 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77980,8 +77522,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -78008,11 +77550,11 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: *501 + default: *498 '422': *15 - '503': *499 + '503': *496 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -78035,8 +77577,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/apps/apps#get-a-repository-installation-for-the-authenticated-app parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -78044,8 +77586,8 @@ paths: application/json: schema: *20 examples: - default: *502 - '301': *315 + default: *499 + '301': *312 '404': *6 x-github: githubCloudOnly: false @@ -78065,8 +77607,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/interactions/repos#get-interaction-restrictions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -78079,7 +77621,7 @@ paths: properties: {} additionalProperties: false examples: - default: &504 + default: &501 value: limit: collaborators_only origin: repository @@ -78104,13 +77646,13 @@ paths: description: API method documentation url: https://docs.github.com/rest/interactions/repos#set-interaction-restrictions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: application/json: - schema: *503 + schema: *500 examples: default: summary: Example request body @@ -78124,7 +77666,7 @@ paths: application/json: schema: *211 examples: - default: *504 + default: *501 '409': description: Response x-github: @@ -78146,8 +77688,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/interactions/repos#remove-interaction-restrictions-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -78170,8 +77712,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/invitations#list-repository-invitations parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -78181,9 +77723,9 @@ paths: application/json: schema: type: array - items: *505 + items: *502 examples: - default: &660 + default: &655 value: - id: 1 repository: @@ -78314,8 +77856,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/invitations#update-a-repository-invitation parameters: - - *311 - - *312 + - *308 + - *309 - *215 requestBody: required: false @@ -78345,7 +77887,7 @@ paths: description: Response content: application/json: - schema: *505 + schema: *502 examples: default: value: @@ -78476,8 +78018,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/collaborators/invitations#delete-a-repository-invitation parameters: - - *311 - - *312 + - *308 + - *309 - *215 responses: '204': @@ -78509,8 +78051,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#list-repository-issues parameters: - - *311 - - *312 + - *308 + - *309 - 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 @@ -78583,7 +78125,7 @@ paths: type: array items: *71 examples: - default: &515 + default: &512 value: - id: 1 node_id: MDU6SXNzdWUx @@ -78731,7 +78273,7 @@ paths: state_reason: completed headers: Link: *57 - '301': *315 + '301': *312 '422': *15 '404': *6 x-github: @@ -78760,8 +78302,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#create-an-issue parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -78853,7 +78395,7 @@ paths: application/json: schema: *71 examples: - default: &512 + default: &509 value: id: 1 node_id: MDU6SXNzdWUx @@ -79009,7 +78551,7 @@ paths: '422': *15 '503': *106 '404': *6 - '410': *506 + '410': *503 x-github: triggersNotification: true githubCloudOnly: false @@ -79037,8 +78579,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#list-issue-comments-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *94 - name: direction description: Either `asc` or `desc`. Ignored without the `sort` parameter. @@ -79059,9 +78601,9 @@ paths: application/json: schema: type: array - items: *507 + items: *504 examples: - default: &514 + default: &511 value: - id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -79119,17 +78661,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#get-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '200': description: Response content: application/json: - schema: *507 + schema: *504 examples: - default: &508 + default: &505 value: id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -79183,8 +78725,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#update-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -79207,9 +78749,9 @@ paths: description: Response content: application/json: - schema: *507 + schema: *504 examples: - default: *508 + default: *505 '422': *15 x-github: githubCloudOnly: false @@ -79227,8 +78769,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#delete-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '204': @@ -79249,8 +78791,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). @@ -79277,9 +78819,9 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 @@ -79300,8 +78842,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-an-issue-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -79334,16 +78876,16 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -79365,10 +78907,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-an-issue-comment-reaction parameters: - - *311 - - *312 + - *308 + - *309 - *86 - - *510 + - *507 responses: '204': description: Response @@ -79388,8 +78930,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/events#list-issue-events-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -79399,7 +78941,7 @@ paths: application/json: schema: type: array - items: &511 + items: &508 title: Issue Event description: Issue Event type: object @@ -79738,8 +79280,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/events#get-an-issue-event parameters: - - *311 - - *312 + - *308 + - *309 - name: event_id in: path required: true @@ -79750,7 +79292,7 @@ paths: description: Response content: application/json: - schema: *511 + schema: *508 examples: default: value: @@ -79942,7 +79484,7 @@ paths: author_association: COLLABORATOR state_reason: completed '404': *6 - '410': *506 + '410': *503 '403': *27 x-github: githubCloudOnly: false @@ -79976,9 +79518,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#get-an-issue parameters: - - *311 - - *312 - - &513 + - *308 + - *309 + - &510 name: issue_number description: The number that identifies the issue. in: path @@ -79992,10 +79534,10 @@ paths: application/json: schema: *71 examples: - default: *512 - '301': *315 + default: *509 + '301': *312 '404': *6 - '410': *506 + '410': *503 '304': *35 x-github: githubCloudOnly: false @@ -80020,9 +79562,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#update-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -80143,13 +79685,13 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 '422': *15 '503': *106 '403': *27 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80167,9 +79709,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#add-assignees-to-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -80197,7 +79739,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80213,9 +79755,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#remove-assignees-from-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: content: application/json: @@ -80242,7 +79784,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80264,9 +79806,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/assignees#check-if-a-user-can-be-assigned-to-a-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: assignee in: path required: true @@ -80306,9 +79848,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#list-issue-comments parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *77 - *17 - *19 @@ -80319,13 +79861,13 @@ paths: application/json: schema: type: array - items: *507 + items: *504 examples: - default: *514 + default: *511 headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80354,9 +79896,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/comments#create-an-issue-comment parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -80378,16 +79920,16 @@ paths: description: Response content: application/json: - schema: *507 + schema: *504 examples: - default: *508 + default: *505 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1 schema: type: string '403': *27 - '410': *506 + '410': *503 '422': *15 '404': *6 x-github: @@ -80415,9 +79957,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocked-by parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -80429,12 +79971,12 @@ paths: type: array items: *71 examples: - default: *515 + default: *512 headers: Link: *57 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80462,9 +80004,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#add-a-dependency-an-issue-is-blocked-by parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -80488,15 +80030,15 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/dependencies/blocked_by schema: type: string - '301': *315 + '301': *312 '403': *27 - '410': *506 + '410': *503 '422': *15 '404': *6 x-github: @@ -80527,9 +80069,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#remove-dependency-an-issue-is-blocked-by parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: issue_id in: path description: The id of the blocking issue to remove as a dependency @@ -80543,13 +80085,13 @@ paths: application/json: schema: *71 examples: - default: *512 - '301': *315 + default: *509 + '301': *312 '400': *14 '401': *23 '403': *27 '404': *6 - '410': *506 + '410': *503 x-github: triggersNotification: true githubCloudOnly: false @@ -80575,9 +80117,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocking parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -80589,12 +80131,12 @@ paths: type: array items: *71 examples: - default: *515 + default: *512 headers: Link: *57 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -80611,9 +80153,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/events#list-issue-events parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -80627,7 +80169,7 @@ paths: title: Issue Event for Issue description: Issue Event for Issue anyOf: - - &517 + - &514 title: Labeled Issue Event description: Labeled Issue Event type: object @@ -80676,7 +80218,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &518 + - &515 title: Unlabeled Issue Event description: Unlabeled Issue Event type: object @@ -80804,7 +80346,7 @@ paths: - performed_via_github_app - assignee - assigner - - &519 + - &516 title: Milestoned Issue Event description: Milestoned Issue Event type: object @@ -80850,7 +80392,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &520 + - &517 title: Demilestoned Issue Event description: Demilestoned Issue Event type: object @@ -80896,7 +80438,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &521 + - &518 title: Renamed Issue Event description: Renamed Issue Event type: object @@ -80945,7 +80487,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &522 + - &519 title: Review Requested Issue Event description: Review Requested Issue Event type: object @@ -80987,7 +80529,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &523 + - &520 title: Review Request Removed Issue Event description: Review Request Removed Issue Event type: object @@ -81029,7 +80571,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &524 + - &521 title: Review Dismissed Issue Event description: Review Dismissed Issue Event type: object @@ -81085,7 +80627,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &525 + - &522 title: Locked Issue Event description: Locked Issue Event type: object @@ -81130,7 +80672,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &526 + - &523 title: Added to Project Issue Event description: Added to Project Issue Event type: object @@ -81191,7 +80733,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &527 + - &524 title: Moved Column in Project Issue Event description: Moved Column in Project Issue Event type: object @@ -81252,7 +80794,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &528 + - &525 title: Removed from Project Issue Event description: Removed from Project Issue Event type: object @@ -81313,7 +80855,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &529 + - &526 title: Converted Note to Issue Issue Event description: Converted Note to Issue Issue Event type: object @@ -81406,7 +80948,7 @@ paths: color: red headers: Link: *57 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81423,9 +80965,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#list-labels-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -81437,7 +80979,7 @@ paths: type: array items: *70 examples: - default: &516 + default: &513 value: - id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -81455,9 +80997,9 @@ paths: default: false headers: Link: *57 - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81474,9 +81016,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#add-labels-to-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -81537,10 +81079,10 @@ paths: type: array items: *70 examples: - default: *516 - '301': *315 + default: *513 + '301': *312 '404': *6 - '410': *506 + '410': *503 '422': *15 x-github: githubCloudOnly: false @@ -81557,9 +81099,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#set-labels-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -81621,10 +81163,10 @@ paths: type: array items: *70 examples: - default: *516 - '301': *315 + default: *513 + '301': *312 '404': *6 - '410': *506 + '410': *503 '422': *15 x-github: githubCloudOnly: false @@ -81641,15 +81183,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#remove-all-labels-from-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 responses: '204': description: Response - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81668,9 +81210,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#remove-a-label-from-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: name in: path required: true @@ -81694,9 +81236,9 @@ paths: description: Something isn't working color: f29513 default: true - '301': *315 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81716,9 +81258,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#lock-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: false content: @@ -81747,7 +81289,7 @@ paths: '204': description: Response '403': *27 - '410': *506 + '410': *503 '404': *6 '422': *15 x-github: @@ -81765,9 +81307,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/issues#unlock-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 responses: '204': description: Response @@ -81797,9 +81339,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#get-parent-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 responses: '200': description: Response @@ -81807,10 +81349,10 @@ paths: application/json: schema: *71 examples: - default: *512 - '301': *315 + default: *509 + '301': *312 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81827,9 +81369,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. @@ -81855,13 +81397,13 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -81879,9 +81421,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -81913,16 +81455,16 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -81944,10 +81486,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-an-issue-reaction parameters: - - *311 - - *312 - - *513 + - *308 + - *309 - *510 + - *507 responses: '204': description: Response @@ -81976,9 +81518,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#remove-sub-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -82002,7 +81544,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/sub-issue @@ -82035,9 +81577,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#list-sub-issues parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -82049,11 +81591,11 @@ paths: type: array items: *71 examples: - default: *515 + default: *512 headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -82081,9 +81623,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#add-sub-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -82112,14 +81654,14 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/sub-issues/1 schema: type: string '403': *27 - '410': *506 + '410': *503 '422': *15 '404': *6 x-github: @@ -82139,9 +81681,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/sub-issues#reprioritize-sub-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 requestBody: required: true content: @@ -82174,7 +81716,7 @@ paths: application/json: schema: *71 examples: - default: *512 + default: *509 '403': *27 '404': *6 '422': *7 @@ -82196,9 +81738,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/timeline#list-timeline-events-for-an-issue parameters: - - *311 - - *312 - - *513 + - *308 + - *309 + - *510 - *17 - *19 responses: @@ -82213,6 +81755,9 @@ paths: description: Timeline Event type: object anyOf: + - *514 + - *515 + - *516 - *517 - *518 - *519 @@ -82223,9 +81768,6 @@ paths: - *524 - *525 - *526 - - *527 - - *528 - - *529 - title: Timeline Comment Event description: Timeline Comment Event type: object @@ -82554,7 +82096,7 @@ paths: type: string comments: type: array - items: &550 + items: &547 title: Pull Request Review Comment description: Pull Request Review Comments are comments on a portion of the Pull Request's diff. @@ -82795,7 +82337,7 @@ paths: type: string comments: type: array - items: *439 + items: *436 - title: Timeline Assigned Issue Event description: Timeline Assigned Issue Event type: object @@ -83070,7 +82612,7 @@ paths: headers: Link: *57 '404': *6 - '410': *506 + '410': *503 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -83087,8 +82629,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#list-deploy-keys parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -83098,7 +82640,7 @@ paths: application/json: schema: type: array - items: &530 + items: &527 title: Deploy Key description: An SSH key granting access to a single repository. type: object @@ -83166,8 +82708,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#create-a-deploy-key parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83203,9 +82745,9 @@ paths: description: Response content: application/json: - schema: *530 + schema: *527 examples: - default: &531 + default: &528 value: id: 1 key: ssh-rsa AAA... @@ -83239,9 +82781,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key parameters: - - *311 - - *312 - - &532 + - *308 + - *309 + - &529 name: key_id description: The unique identifier of the key. in: path @@ -83253,9 +82795,9 @@ paths: description: Response content: application/json: - schema: *530 + schema: *527 examples: - default: *531 + default: *528 '404': *6 x-github: githubCloudOnly: false @@ -83273,9 +82815,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/deploy-keys/deploy-keys#delete-a-deploy-key parameters: - - *311 - - *312 - - *532 + - *308 + - *309 + - *529 responses: '204': description: Response @@ -83295,8 +82837,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#list-labels-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -83308,7 +82850,7 @@ paths: type: array items: *70 examples: - default: *516 + default: *513 headers: Link: *57 '404': *6 @@ -83329,8 +82871,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#create-a-label parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83368,7 +82910,7 @@ paths: application/json: schema: *70 examples: - default: &533 + default: &530 value: id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -83400,8 +82942,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#get-a-label parameters: - - *311 - - *312 + - *308 + - *309 - name: name in: path required: true @@ -83414,7 +82956,7 @@ paths: application/json: schema: *70 examples: - default: *533 + default: *530 '404': *6 x-github: githubCloudOnly: false @@ -83431,8 +82973,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#update-a-label parameters: - - *311 - - *312 + - *308 + - *309 - name: name in: path required: true @@ -83497,8 +83039,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#delete-a-label parameters: - - *311 - - *312 + - *308 + - *309 - name: name in: path required: true @@ -83524,8 +83066,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-languages parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -83564,9 +83106,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/licenses/licenses#get-the-license-for-a-repository parameters: - - *311 - - *312 - - *414 + - *308 + - *309 + - *411 responses: '200': description: Response @@ -83713,8 +83255,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83779,8 +83321,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/branches/branches#merge-a-branch parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83814,9 +83356,9 @@ paths: description: Successful Response (The resulting merge commit) content: application/json: - schema: *442 + schema: *439 examples: - default: *534 + default: *531 '204': description: Response when already merged '404': @@ -83841,8 +83383,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#list-milestones parameters: - - *311 - - *312 + - *308 + - *309 - name: state description: The state of the milestone. Either `open`, `closed`, or `all`. in: query @@ -83939,8 +83481,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#create-a-milestone parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -83982,7 +83524,7 @@ paths: application/json: schema: *252 examples: - default: &535 + default: &532 value: url: https://api.github.com/repos/octocat/Hello-World/milestones/1 html_url: https://github.com/octocat/Hello-World/milestones/v1.0 @@ -84041,9 +83583,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#get-a-milestone parameters: - - *311 - - *312 - - &536 + - *308 + - *309 + - &533 name: milestone_number description: The number that identifies the milestone. in: path @@ -84057,7 +83599,7 @@ paths: application/json: schema: *252 examples: - default: *535 + default: *532 '404': *6 x-github: githubCloudOnly: false @@ -84074,9 +83616,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#update-a-milestone parameters: - - *311 - - *312 - - *536 + - *308 + - *309 + - *533 requestBody: required: false content: @@ -84116,7 +83658,7 @@ paths: application/json: schema: *252 examples: - default: *535 + default: *532 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -84132,9 +83674,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/milestones#delete-a-milestone parameters: - - *311 - - *312 - - *536 + - *308 + - *309 + - *533 responses: '204': description: Response @@ -84155,9 +83697,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/issues/labels#list-labels-for-issues-in-a-milestone parameters: - - *311 - - *312 - - *536 + - *308 + - *309 + - *533 - *17 - *19 responses: @@ -84169,7 +83711,7 @@ paths: type: array items: *70 examples: - default: *516 + default: *513 headers: Link: *57 x-github: @@ -84188,12 +83730,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user parameters: - - *311 - - *312 - - *537 - - *538 + - *308 + - *309 + - *534 + - *535 - *77 - - *539 + - *536 - *17 - *19 responses: @@ -84205,7 +83747,7 @@ paths: type: array items: *97 examples: - default: *540 + default: *537 headers: Link: *57 x-github: @@ -84229,8 +83771,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/notifications#mark-repository-notifications-as-read parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -84288,14 +83830,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: &541 + schema: &538 title: GitHub Pages description: The configuration for GitHub Pages for a repository. type: object @@ -84439,7 +83981,7 @@ paths: - custom_404 - public examples: - default: &542 + default: &539 value: url: https://api.github.com/repos/github/developer.github.com/pages status: built @@ -84480,8 +84022,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#create-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -84536,9 +84078,9 @@ paths: description: Response content: application/json: - schema: *541 + schema: *538 examples: - default: *542 + default: *539 '422': *15 '409': *50 x-github: @@ -84561,8 +84103,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#update-information-about-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -84662,8 +84204,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#delete-a-apiname-pages-site parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -84689,8 +84231,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#list-apiname-pages-builds parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -84700,7 +84242,7 @@ paths: application/json: schema: type: array - items: &543 + items: &540 title: Page Build description: Page Build type: object @@ -84792,8 +84334,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#request-a-apiname-pages-build parameters: - - *311 - - *312 + - *308 + - *309 responses: '201': description: Response @@ -84840,16 +84382,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-latest-pages-build parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *543 + schema: *540 examples: - default: &544 + default: &541 value: url: https://api.github.com/repos/github/developer.github.com/pages/builds/5472601 status: built @@ -84897,8 +84439,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-apiname-pages-build parameters: - - *311 - - *312 + - *308 + - *309 - name: build_id in: path required: true @@ -84909,9 +84451,9 @@ paths: description: Response content: application/json: - schema: *543 + schema: *540 examples: - default: *544 + default: *541 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -84931,8 +84473,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#create-a-github-pages-deployment parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -85040,9 +84582,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-the-status-of-a-github-pages-deployment parameters: - - *311 - - *312 - - &545 + - *308 + - *309 + - &542 name: pages_deployment_id description: The ID of the Pages deployment. You can also give the commit SHA of the deployment. @@ -85100,9 +84642,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#cancel-a-github-pages-deployment parameters: - - *311 - - *312 - - *545 + - *308 + - *309 + - *542 responses: '204': *176 '404': *6 @@ -85129,8 +84671,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pages/pages#get-a-dns-health-check-for-github-pages parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -85425,8 +84967,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Private vulnerability reporting status @@ -85463,8 +85005,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '422': *14 @@ -85485,8 +85027,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': *176 '422': *14 @@ -85508,8 +85050,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -85519,7 +85061,7 @@ paths: type: array items: *104 examples: - default: *546 + default: *543 '403': *27 '404': *6 x-github: @@ -85541,8 +85083,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -85558,7 +85100,7 @@ paths: required: - properties examples: - default: *547 + default: *544 responses: '204': description: No Content when custom property values are successfully created @@ -85596,8 +85138,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#list-pull-requests parameters: - - *311 - - *312 + - *308 + - *309 - name: state description: Either `open`, `closed`, or `all` to filter by state. in: query @@ -85657,9 +85199,9 @@ paths: application/json: schema: type: array - items: *446 + items: *443 examples: - default: *548 + default: *545 headers: Link: *57 '304': *35 @@ -85691,8 +85233,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#create-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -85759,7 +85301,7 @@ paths: description: Response content: application/json: - schema: &552 + schema: &549 type: object title: Pull Request description: Pull requests let you tell others about changes you've @@ -85999,7 +85541,7 @@ paths: - review_comment - self author_association: *72 - auto_merge: *549 + auto_merge: *546 draft: description: Indicates whether or not the pull request is a draft. type: boolean @@ -86101,7 +85643,7 @@ paths: - merged_by - review_comments examples: - default: &553 + default: &550 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -86628,8 +86170,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#list-review-comments-in-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: sort in: query required: false @@ -86658,9 +86200,9 @@ paths: application/json: schema: type: array - items: *550 + items: *547 examples: - default: &555 + default: &552 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -86737,17 +86279,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '200': description: Response content: application/json: - schema: *550 + schema: *547 examples: - default: &551 + default: &548 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -86822,8 +86364,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#update-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -86846,9 +86388,9 @@ paths: description: Response content: application/json: - schema: *550 + schema: *547 examples: - default: *551 + default: *548 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -86864,8 +86406,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#delete-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 + - *308 + - *309 - *86 responses: '204': @@ -86887,8 +86429,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-pull-request-review-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). @@ -86915,9 +86457,9 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 @@ -86938,8 +86480,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment parameters: - - *311 - - *312 + - *308 + - *309 - *86 requestBody: required: true @@ -86972,16 +86514,16 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -87003,10 +86545,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-a-pull-request-comment-reaction parameters: - - *311 - - *312 + - *308 + - *309 - *86 - - *510 + - *507 responses: '204': description: Response @@ -87049,9 +86591,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#get-a-pull-request parameters: - - *311 - - *312 - - &554 + - *308 + - *309 + - &551 name: pull_number description: The number that identifies the pull request. in: path @@ -87064,9 +86606,9 @@ paths: to fetch diff and patch formats. content: application/json: - schema: *552 + schema: *549 examples: - default: *553 + default: *550 '304': *35 '404': *6 '406': @@ -87101,9 +86643,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#update-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -87145,9 +86687,9 @@ paths: description: Response content: application/json: - schema: *552 + schema: *549 examples: - default: *553 + default: *550 '422': *15 '403': *27 x-github: @@ -87169,9 +86711,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/codespaces/codespaces#create-a-codespace-from-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: true content: @@ -87234,7 +86776,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -87242,7 +86784,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '401': *23 '403': *27 '404': *6 @@ -87272,9 +86814,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#list-review-comments-on-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *94 - name: direction description: The direction to sort results. Ignored without `sort` parameter. @@ -87295,9 +86837,9 @@ paths: application/json: schema: type: array - items: *550 + items: *547 examples: - default: *555 + default: *552 headers: Link: *57 x-github: @@ -87330,9 +86872,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#create-a-review-comment-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: true content: @@ -87438,7 +86980,7 @@ paths: description: Response content: application/json: - schema: *550 + schema: *547 examples: example-for-a-multi-line-comment: value: @@ -87526,9 +87068,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/comments#create-a-reply-for-a-review-comment parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *86 requestBody: required: true @@ -87551,7 +87093,7 @@ paths: description: Response content: application/json: - schema: *550 + schema: *547 examples: default: value: @@ -87637,9 +87179,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#list-commits-on-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *17 - *19 responses: @@ -87649,9 +87191,9 @@ paths: application/json: schema: type: array - items: *442 + items: *439 examples: - default: *556 + default: *553 headers: Link: *57 x-github: @@ -87681,9 +87223,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#list-pull-requests-files parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *17 - *19 responses: @@ -87693,7 +87235,7 @@ paths: application/json: schema: type: array - items: *453 + items: *450 examples: default: value: @@ -87731,9 +87273,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#check-if-a-pull-request-has-been-merged parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 responses: '204': description: Response if pull request has been merged @@ -87756,9 +87298,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#merge-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -87870,9 +87412,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/review-requests#get-all-requested-reviewers-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 responses: '200': description: Response @@ -87947,9 +87489,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -87986,7 +87528,7 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: default: value: @@ -88522,9 +88064,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: true content: @@ -88558,7 +88100,7 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: default: value: @@ -89063,9 +88605,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#list-reviews-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 - *17 - *19 responses: @@ -89075,7 +88617,7 @@ paths: application/json: schema: type: array - items: &557 + items: &554 title: Pull Request Review description: Pull Request Reviews are reviews on pull requests. type: object @@ -89231,9 +88773,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#create-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -89323,9 +88865,9 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: &559 + default: &556 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -89388,10 +88930,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#get-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - &558 + - *308 + - *309 + - *551 + - &555 name: review_id description: The unique identifier of the review. in: path @@ -89403,9 +88945,9 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: &560 + default: &557 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -89464,10 +89006,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#update-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 requestBody: required: true content: @@ -89490,7 +89032,7 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: default: value: @@ -89552,18 +89094,18 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#delete-a-pending-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 responses: '200': description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: *559 + default: *556 '422': *7 '404': *6 x-github: @@ -89590,10 +89132,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#list-comments-for-a-pull-request-review parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 - *17 - *19 responses: @@ -89851,10 +89393,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#dismiss-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 requestBody: required: true content: @@ -89883,7 +89425,7 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: default: value: @@ -89946,10 +89488,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/reviews#submit-a-review-for-a-pull-request parameters: - - *311 - - *312 - - *554 - - *558 + - *308 + - *309 + - *551 + - *555 requestBody: required: true content: @@ -89984,9 +89526,9 @@ paths: description: Response content: application/json: - schema: *557 + schema: *554 examples: - default: *560 + default: *557 '404': *6 '422': *7 '403': *27 @@ -90008,9 +89550,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/pulls/pulls#update-a-pull-request-branch parameters: - - *311 - - *312 - - *554 + - *308 + - *309 + - *551 requestBody: required: false content: @@ -90074,8 +89616,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#get-a-repository-readme parameters: - - *311 - - *312 + - *308 + - *309 - name: ref description: 'The name of the commit/branch/tag. Default: the repository’s default branch.' @@ -90088,9 +89630,9 @@ paths: description: Response content: application/json: - schema: *561 + schema: *558 examples: - default: &562 + default: &559 value: type: file encoding: base64 @@ -90132,8 +89674,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/contents#get-a-repository-readme-for-a-directory parameters: - - *311 - - *312 + - *308 + - *309 - name: dir description: The alternate path to look for a README file in: path @@ -90153,9 +89695,9 @@ paths: description: Response content: application/json: - schema: *561 + schema: *558 examples: - default: *562 + default: *559 '404': *6 '422': *15 x-github: @@ -90177,8 +89719,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#list-releases parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -90188,7 +89730,7 @@ paths: application/json: schema: type: array - items: *563 + items: *560 examples: default: value: @@ -90282,8 +89824,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#create-a-release parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -90359,9 +89901,9 @@ paths: description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: &567 + default: &564 value: url: https://api.github.com/repos/octocat/Hello-World/releases/1 html_url: https://github.com/octocat/Hello-World/releases/v1.0.0 @@ -90466,9 +90008,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#get-a-release-asset parameters: - - *311 - - *312 - - &565 + - *308 + - *309 + - &562 name: asset_id description: The unique identifier of the asset. in: path @@ -90480,9 +90022,9 @@ paths: description: Response content: application/json: - schema: *564 + schema: *561 examples: - default: &566 + default: &563 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 @@ -90517,7 +90059,7 @@ paths: type: User site_admin: false '404': *6 - '302': *455 + '302': *452 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90533,9 +90075,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#update-a-release-asset parameters: - - *311 - - *312 - - *565 + - *308 + - *309 + - *562 requestBody: required: false content: @@ -90564,9 +90106,9 @@ paths: description: Response content: application/json: - schema: *564 + schema: *561 examples: - default: *566 + default: *563 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90582,9 +90124,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#delete-a-release-asset parameters: - - *311 - - *312 - - *565 + - *308 + - *309 + - *562 responses: '204': description: Response @@ -90608,8 +90150,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#generate-release-notes-content-for-a-release parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -90695,16 +90237,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#get-the-latest-release parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90721,8 +90263,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#get-a-release-by-tag-name parameters: - - *311 - - *312 + - *308 + - *309 - name: tag description: tag parameter in: path @@ -90735,9 +90277,9 @@ paths: description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 '404': *6 x-github: githubCloudOnly: false @@ -90759,9 +90301,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#get-a-release parameters: - - *311 - - *312 - - &568 + - *308 + - *309 + - &565 name: release_id description: The unique identifier of the release. in: path @@ -90775,9 +90317,9 @@ paths: For more information, see "[Getting started with the REST API](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."' content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 '401': description: Unauthorized x-github: @@ -90795,9 +90337,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#update-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 requestBody: required: false content: @@ -90861,9 +90403,9 @@ paths: description: Response content: application/json: - schema: *563 + schema: *560 examples: - default: *567 + default: *564 '404': description: Not Found if the discussion category name is invalid content: @@ -90884,9 +90426,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/releases#delete-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 responses: '204': description: Response @@ -90906,9 +90448,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/releases/assets#list-release-assets parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 - *17 - *19 responses: @@ -90918,7 +90460,7 @@ paths: application/json: schema: type: array - items: *564 + items: *561 examples: default: value: @@ -90999,9 +90541,9 @@ paths: description: The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 - name: name in: query required: true @@ -91027,7 +90569,7 @@ paths: description: Response for successful upload content: application/json: - schema: *564 + schema: *561 examples: response-for-successful-upload: value: @@ -91082,9 +90624,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 - name: content description: Returns a single [reaction type](https://docs.github.com/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. @@ -91108,9 +90650,9 @@ paths: application/json: schema: type: array - items: *440 + items: *437 examples: - default: *509 + default: *506 headers: Link: *57 '404': *6 @@ -91131,9 +90673,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-release parameters: - - *311 - - *312 - - *568 + - *308 + - *309 + - *565 requestBody: required: true content: @@ -91163,16 +90705,16 @@ paths: description: Reaction exists content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '201': description: Reaction created content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *15 x-github: githubCloudOnly: false @@ -91194,10 +90736,10 @@ paths: description: API method documentation url: https://docs.github.com/rest/reactions/reactions#delete-a-release-reaction parameters: - - *311 - - *312 - - *568 - - *510 + - *308 + - *309 + - *565 + - *507 responses: '204': description: Response @@ -91221,9 +90763,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rules#get-rules-for-a-branch parameters: - - *311 - - *312 - - *378 + - *308 + - *309 + - *375 - *17 - *19 responses: @@ -91240,7 +90782,7 @@ paths: oneOf: - allOf: - *271 - - &569 + - &566 title: repository ruleset data for rule description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -91261,67 +90803,67 @@ paths: description: The ID of the ruleset that includes this rule. - allOf: - *272 - - *569 + - *566 - allOf: - *273 - - *569 + - *566 - allOf: - *274 - - *569 + - *566 - allOf: - - *570 - - *569 + - *567 + - *566 - allOf: - *275 - - *569 + - *566 - allOf: - *276 - - *569 + - *566 - allOf: - *277 - - *569 + - *566 - allOf: - *278 - - *569 + - *566 - allOf: - *279 - - *569 + - *566 - allOf: - *280 - - *569 + - *566 - allOf: - *281 - - *569 + - *566 - allOf: - *282 - - *569 + - *566 - allOf: - *283 - - *569 + - *566 - allOf: - *284 - - *569 + - *566 - allOf: - *285 - - *569 + - *566 - allOf: - *286 - - *569 + - *566 - allOf: - *287 - - *569 + - *566 - allOf: - *288 - - *569 + - *566 - allOf: - *289 - - *569 + - *566 - allOf: - *290 - - *569 + - *566 - allOf: - *291 - - *569 + - *566 examples: default: value: @@ -91360,8 +90902,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - name: includes_parents @@ -91372,7 +90914,7 @@ paths: schema: type: boolean default: true - - *571 + - *568 responses: '200': description: Response @@ -91427,8 +90969,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 requestBody: description: Request body required: true @@ -91457,7 +90999,7 @@ paths: rules: type: array description: An array of rules within the ruleset. - items: *572 + items: *569 required: - name - enforcement @@ -91490,7 +91032,7 @@ paths: application/json: schema: *292 examples: - default: &582 + default: &579 value: id: 42 name: super cool ruleset @@ -91537,12 +91079,12 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rule-suites#list-repository-rule-suites parameters: - - *311 - - *312 + - *308 + - *309 + - *570 + - *571 + - *572 - *573 - - *574 - - *575 - - *576 - *17 - *19 responses: @@ -91550,9 +91092,9 @@ paths: description: Response content: application/json: - schema: *577 + schema: *574 examples: - default: *578 + default: *575 '404': *6 '500': *105 x-github: @@ -91573,17 +91115,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rule-suites#get-a-repository-rule-suite parameters: - - *311 - - *312 - - *579 + - *308 + - *309 + - *576 responses: '200': description: Response content: application/json: - schema: *580 + schema: *577 examples: - default: *581 + default: *578 '404': *6 '500': *105 x-github: @@ -91611,8 +91153,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91634,7 +91176,7 @@ paths: application/json: schema: *292 examples: - default: *582 + default: *579 '404': *6 '500': *105 put: @@ -91652,8 +91194,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91687,7 +91229,7 @@ paths: rules: description: An array of rules within the ruleset. type: array - items: *572 + items: *569 examples: default: value: @@ -91717,7 +91259,7 @@ paths: application/json: schema: *292 examples: - default: *582 + default: *579 '404': *6 '500': *105 delete: @@ -91735,8 +91277,8 @@ paths: category: repos subcategory: rules parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91759,8 +91301,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rules#get-repository-ruleset-history parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 - name: ruleset_id @@ -91778,7 +91320,7 @@ paths: type: array items: *295 examples: - default: *583 + default: *580 '404': *6 '500': *105 x-github: @@ -91797,8 +91339,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/rules#get-repository-ruleset-version parameters: - - *311 - - *312 + - *308 + - *309 - name: ruleset_id description: The ID of the ruleset. in: path @@ -91816,7 +91358,7 @@ paths: description: Response content: application/json: - schema: *584 + schema: *581 examples: default: value: @@ -91871,22 +91413,22 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 + - *582 + - *583 + - *584 - *585 - *586 - - *587 - - *588 - - *589 - *51 - *19 - *17 + - *587 + - *588 + - *589 - *590 - *591 - *592 - - *593 - - *594 - - *595 responses: '200': description: Response @@ -91894,7 +91436,7 @@ paths: application/json: schema: type: array - items: &599 + items: &596 type: object properties: number: *163 @@ -91910,8 +91452,8 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: *596 - resolution: *597 + state: *593 + resolution: *594 resolved_at: type: - string @@ -92005,7 +91547,7 @@ paths: first_location_detected: anyOf: - type: 'null' - - *598 + - *595 has_more_locations: type: boolean description: A boolean value representing whether or not the @@ -92150,16 +91692,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#get-a-secret-scanning-alert parameters: - - *311 - - *312 - - *408 - - *595 + - *308 + - *309 + - *405 + - *592 responses: '200': description: Response content: application/json: - schema: *599 + schema: *596 examples: default: value: @@ -92213,9 +91755,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 requestBody: required: true content: @@ -92223,8 +91765,8 @@ paths: schema: type: object properties: - state: *596 - resolution: *597 + state: *593 + resolution: *594 resolution_comment: description: An optional comment when closing or reopening an alert. Cannot be updated or deleted. @@ -92260,7 +91802,7 @@ paths: description: Response content: application/json: - schema: *599 + schema: *596 examples: default: value: @@ -92355,9 +91897,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#list-locations-for-a-secret-scanning-alert parameters: - - *311 - - *312 - - *408 + - *308 + - *309 + - *405 - *19 - *17 responses: @@ -92368,7 +91910,7 @@ paths: schema: type: array description: List of locations where the secret was detected - items: &751 + items: &746 type: object properties: type: @@ -92395,6 +91937,9 @@ paths: - commit details: oneOf: + - *597 + - *598 + - *599 - *600 - *601 - *602 @@ -92405,9 +91950,6 @@ paths: - *607 - *608 - *609 - - *610 - - *611 - - *612 examples: default: value: @@ -92493,8 +92035,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#create-a-push-protection-bypass parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -92502,14 +92044,14 @@ paths: schema: type: object properties: - reason: &614 + reason: &611 description: The reason for bypassing push protection. type: string enum: - false_positive - used_in_tests - will_fix_later - placeholder_id: *613 + placeholder_id: *610 required: - reason - placeholder_id @@ -92526,7 +92068,7 @@ paths: schema: type: object properties: - reason: *614 + reason: *611 expire_at: type: - string @@ -92573,8 +92115,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/secret-scanning/secret-scanning#get-secret-scanning-scan-history-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '404': description: Repository does not have GitHub Advanced Security or secret @@ -92589,7 +92131,7 @@ paths: properties: incremental_scans: type: array - items: &615 + items: &612 description: Information on a single scan performed by secret scanning on the repository type: object @@ -92617,15 +92159,15 @@ paths: the scan is pending pattern_update_scans: type: array - items: *615 + items: *612 backfill_scans: type: array - items: *615 + items: *612 custom_pattern_backfill_scans: type: array items: allOf: - - *615 + - *612 - type: object properties: pattern_name: @@ -92695,8 +92237,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#list-repository-security-advisories parameters: - - *311 - - *312 + - *308 + - *309 - *51 - name: sort description: The property to sort the results by. @@ -92740,9 +92282,9 @@ paths: application/json: schema: type: array - items: *616 + items: *613 examples: - default: *617 + default: *614 '400': *14 '404': *6 x-github: @@ -92765,8 +92307,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#create-a-repository-security-advisory parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -92936,9 +92478,9 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: &619 + default: &616 value: ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -93171,8 +92713,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -93285,7 +92827,7 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: default: value: @@ -93432,17 +92974,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#get-a-repository-security-advisory parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 responses: '200': description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: *619 + default: *616 '403': *27 '404': *6 x-github: @@ -93466,9 +93008,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#update-a-repository-security-advisory parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 requestBody: required: true content: @@ -93639,10 +93181,10 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: *619 - add_credit: *619 + default: *616 + add_credit: *616 '403': *27 '404': *6 '422': @@ -93680,9 +93222,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 responses: '202': *37 '400': *14 @@ -93709,17 +93251,17 @@ paths: description: API method documentation url: https://docs.github.com/rest/security-advisories/repository-advisories#create-a-temporary-private-fork parameters: - - *311 - - *312 - - *618 + - *308 + - *309 + - *615 responses: '202': description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 '400': *14 '422': *15 '403': *27 @@ -93745,8 +93287,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#list-stargazers parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -93842,8 +93384,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-activity parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Returns a weekly aggregate of the number of additions and deletions @@ -93852,7 +93394,7 @@ paths: application/json: schema: type: array - items: &620 + items: &617 title: Code Frequency Stat description: Code Frequency Stat type: array @@ -93885,8 +93427,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-last-year-of-commit-activity parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -93964,8 +93506,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-all-contributor-commit-activity parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -94059,8 +93601,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-weekly-commit-count parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: The array order is oldest week (index 0) to most recent week. @@ -94214,8 +93756,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/statistics#get-the-hourly-commit-count-for-each-day parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: For example, `[2, 14, 25]` indicates that there were 25 total @@ -94225,7 +93767,7 @@ paths: application/json: schema: type: array - items: *620 + items: *617 examples: default: value: @@ -94258,8 +93800,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/commits/statuses#create-a-commit-status parameters: - - *311 - - *312 + - *308 + - *309 - name: sha in: path required: true @@ -94315,7 +93857,7 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: default: value: @@ -94369,8 +93911,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#list-watchers parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -94402,14 +93944,14 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#get-a-repository-subscription parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: if you subscribe to the repository content: application/json: - schema: &622 + schema: &619 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -94482,8 +94024,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#set-a-repository-subscription parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: false content: @@ -94509,7 +94051,7 @@ paths: description: Response content: application/json: - schema: *622 + schema: *619 examples: default: value: @@ -94536,8 +94078,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/watching#delete-a-repository-subscription parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -94557,8 +94099,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-tags parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -94640,8 +94182,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -94649,7 +94191,7 @@ paths: application/json: schema: type: array - items: &623 + items: &620 title: Tag protection description: Tag protection type: object @@ -94706,8 +94248,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -94730,7 +94272,7 @@ paths: description: Response content: application/json: - schema: *623 + schema: *620 examples: default: value: @@ -94761,8 +94303,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/tags#closing-down---delete-a-tag-protection-state-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 - name: tag_protection_id description: The unique identifier of the tag protection. in: path @@ -94799,8 +94341,8 @@ paths: url: https://docs.github.com/rest/repos/contents#download-a-repository-archive-tar operationId: repos/download-tarball-archive parameters: - - *311 - - *312 + - *308 + - *309 - name: ref in: path required: true @@ -94836,8 +94378,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#list-repository-teams parameters: - - *311 - - *312 + - *308 + - *309 - *17 - *19 responses: @@ -94869,8 +94411,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#get-all-repository-topics parameters: - - *311 - - *312 + - *308 + - *309 - *19 - *17 responses: @@ -94878,7 +94420,7 @@ paths: description: Response content: application/json: - schema: &624 + schema: &621 title: Topic description: A topic aggregates entities that are related to a subject. type: object @@ -94890,7 +94432,7 @@ paths: required: - names examples: - default: &625 + default: &622 value: names: - octocat @@ -94913,8 +94455,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#replace-all-repository-topics parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -94945,9 +94487,9 @@ paths: description: Response content: application/json: - schema: *624 + schema: *621 examples: - default: *625 + default: *622 '404': *6 '422': *7 x-github: @@ -94968,9 +94510,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-repository-clones parameters: - - *311 - - *312 - - &626 + - *308 + - *309 + - &623 name: per description: The time frame to display results for. in: query @@ -95001,7 +94543,7 @@ paths: - 128 clones: type: array - items: &627 + items: &624 title: Traffic type: object properties: @@ -95088,8 +94630,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-top-referral-paths parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -95183,8 +94725,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-top-referral-sources parameters: - - *311 - - *312 + - *308 + - *309 responses: '200': description: Response @@ -95247,9 +94789,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/metrics/traffic#get-page-views parameters: - - *311 - - *312 - - *626 + - *308 + - *309 + - *623 responses: '200': description: Response @@ -95270,7 +94812,7 @@ paths: - 3782 views: type: array - items: *627 + items: *624 required: - uniques - count @@ -95347,8 +94889,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#transfer-a-repository parameters: - - *311 - - *312 + - *308 + - *309 requestBody: required: true content: @@ -95622,8 +95164,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response if repository is enabled with vulnerability alerts @@ -95646,8 +95188,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#enable-vulnerability-alerts parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -95669,8 +95211,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/repos/repos#disable-vulnerability-alerts parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -95696,8 +95238,8 @@ paths: url: https://docs.github.com/rest/repos/contents#download-a-repository-archive-zip operationId: repos/download-zipball-archive parameters: - - *311 - - *312 + - *308 + - *309 - name: ref in: path required: true @@ -95789,9 +95331,9 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -96040,7 +95582,7 @@ paths: examples: - 73..77 - 77..78 - text_matches: &628 + text_matches: &625 title: Search Result Text Matches type: array items: @@ -96203,7 +95745,7 @@ paths: enum: - author-date - committer-date - - &629 + - &626 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 @@ -96272,7 +95814,7 @@ paths: committer: anyOf: - type: 'null' - - *376 + - *373 comment_count: type: integer message: @@ -96291,7 +95833,7 @@ paths: url: type: string format: uri - verification: *492 + verification: *489 required: - author - committer @@ -96306,7 +95848,7 @@ paths: committer: anyOf: - type: 'null' - - *376 + - *373 parents: type: array items: @@ -96323,7 +95865,7 @@ paths: type: number node_id: type: string - text_matches: *628 + text_matches: *625 required: - sha - node_id @@ -96515,7 +96057,7 @@ paths: - interactions - created - updated - - *629 + - *626 - *17 - *19 - name: advanced_search @@ -96612,11 +96154,11 @@ paths: type: - string - 'null' - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: type: string state_reason: @@ -96644,7 +96186,7 @@ paths: - string - 'null' format: date-time - text_matches: *628 + text_matches: *625 pull_request: type: object properties: @@ -96867,7 +96409,7 @@ paths: enum: - created - updated - - *629 + - *626 - *17 - *19 responses: @@ -96912,7 +96454,7 @@ paths: - 'null' score: type: number - text_matches: *628 + text_matches: *625 required: - id - node_id @@ -96997,7 +96539,7 @@ paths: - forks - help-wanted-issues - updated - - *629 + - *626 - *17 - *19 responses: @@ -97234,7 +96776,7 @@ paths: - admin - pull - push - text_matches: *628 + text_matches: *625 temp_clone_token: type: string allow_merge_commit: @@ -97542,7 +97084,7 @@ paths: - string - 'null' format: uri - text_matches: *628 + text_matches: *625 related: type: - array @@ -97735,7 +97277,7 @@ paths: - followers - repositories - joined - - *629 + - *626 - *17 - *19 responses: @@ -97845,7 +97387,7 @@ paths: type: - boolean - 'null' - text_matches: *628 + text_matches: *625 blog: type: - string @@ -97927,7 +97469,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#get-a-team-legacy parameters: - - &633 + - &630 name: team_id description: The unique identifier of the team. in: path @@ -97968,7 +97510,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#update-a-team-legacy parameters: - - *633 + - *630 requestBody: required: true content: @@ -98069,7 +97611,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#delete-a-team-legacy parameters: - - *633 + - *630 responses: '204': description: Response @@ -98083,226 +97625,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#list-discussions-legacy - parameters: - - *633 - - *51 - - *17 - - *19 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: *307 - examples: - default: *634 - headers: - Link: *57 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#create-a-discussion-legacy - parameters: - - *633 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *307 - examples: - default: *308 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#get-a-discussion-legacy - parameters: - - *633 - - *309 - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: *308 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#update-a-discussion-legacy - parameters: - - *633 - - *309 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *307 - examples: - default: *635 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/rest/teams/discussions#delete-a-discussion-legacy - parameters: - - *633 - - *309 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -98318,7 +97640,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#list-pending-team-invitations-legacy parameters: - - *633 + - *630 - *17 - *19 responses: @@ -98356,7 +97678,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#list-team-members-legacy parameters: - - *633 + - *630 - name: role description: Filters members returned by their role in the team. in: query @@ -98407,7 +97729,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#get-team-member-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98444,7 +97766,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#add-team-member-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98484,7 +97806,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#remove-team-member-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98521,16 +97843,16 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#get-team-membership-for-a-user-legacy parameters: - - *633 + - *630 - *62 responses: '200': description: Response content: application/json: - schema: *310 + schema: *307 examples: - response-if-user-is-a-team-maintainer: *636 + response-if-user-is-a-team-maintainer: *631 '404': *6 x-github: githubCloudOnly: false @@ -98563,7 +97885,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user-legacy parameters: - - *633 + - *630 - *62 requestBody: required: false @@ -98589,9 +97911,9 @@ paths: description: Response content: application/json: - schema: *310 + schema: *307 examples: - response-if-users-membership-with-team-is-now-pending: *637 + response-if-users-membership-with-team-is-now-pending: *632 '403': description: Forbidden if team synchronization is set up '422': @@ -98625,7 +97947,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user-legacy parameters: - - *633 + - *630 - *62 responses: '204': @@ -98653,7 +97975,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#list-team-repositories-legacy parameters: - - *633 + - *630 - *17 - *19 responses: @@ -98695,15 +98017,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository-legacy parameters: - - *633 - - *311 - - *312 + - *630 + - *308 + - *309 responses: '200': description: Alternative response with extra repository information content: application/json: - schema: *638 + schema: *633 examples: alternative-response-with-extra-repository-information: value: @@ -98854,9 +98176,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions-legacy parameters: - - *633 - - *311 - - *312 + - *630 + - *308 + - *309 requestBody: required: false content: @@ -98906,9 +98228,9 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team-legacy parameters: - - *633 - - *311 - - *312 + - *630 + - *308 + - *309 responses: '204': description: Response @@ -98933,7 +98255,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/teams/teams#list-child-teams-legacy parameters: - - *633 + - *630 - *17 - *19 responses: @@ -98945,7 +98267,7 @@ paths: type: array items: *180 examples: - response-if-child-teams-exist: *639 + response-if-child-teams-exist: *634 headers: Link: *57 '404': *6 @@ -98978,7 +98300,7 @@ paths: application/json: schema: oneOf: - - &641 + - &636 title: Private User description: Private User type: object @@ -99228,7 +98550,7 @@ paths: - private_gists - total_private_repos - two_factor_authentication - - *640 + - *635 examples: response-with-public-and-private-profile-information: summary: Response with public and private profile information @@ -99388,7 +98710,7 @@ paths: description: Response content: application/json: - schema: *641 + schema: *636 examples: default: value: @@ -99734,7 +99056,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -99742,7 +99064,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '401': *23 '403': *27 '404': *6 @@ -99786,7 +99108,7 @@ paths: type: integer secrets: type: array - items: &642 + items: &637 title: Codespaces Secret description: Secrets for a GitHub Codespace. type: object @@ -99828,7 +99150,7 @@ paths: - visibility - selected_repositories_url examples: - default: *433 + default: *430 headers: Link: *57 x-github: @@ -99906,7 +99228,7 @@ paths: description: Response content: application/json: - schema: *642 + schema: *637 examples: default: value: @@ -100052,7 +99374,7 @@ paths: type: array items: *145 examples: - default: *643 + default: *638 '401': *23 '403': *27 '404': *6 @@ -100204,7 +99526,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '304': *35 '500': *105 '401': *23 @@ -100262,7 +99584,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '401': *23 '403': *27 '404': *6 @@ -100319,7 +99641,7 @@ paths: description: Response content: application/json: - schema: &644 + schema: &639 type: object title: Fetches information about an export of a codespace. description: An export of a codespace. Also, latest export details @@ -100372,7 +99694,7 @@ paths: examples: - https://github.com/octocat/hello-world/tree/:branch examples: - default: &645 + default: &640 value: state: succeeded completed_at: '2022-01-01T14:59:22Z' @@ -100417,9 +99739,9 @@ paths: description: Response content: application/json: - schema: *644 + schema: *639 examples: - default: *645 + default: *640 '404': *6 x-github: githubCloudOnly: false @@ -100456,9 +99778,9 @@ paths: type: integer machines: type: array - items: *432 + items: *429 examples: - default: *646 + default: *641 '304': *35 '500': *105 '401': *23 @@ -100543,11 +99865,11 @@ paths: - 26a7c758-7299-4a73-b978-5a92a7ae98a0 owner: *4 billable_owner: *4 - repository: *314 + repository: *311 machine: anyOf: - type: 'null' - - *432 + - *429 devcontainer_path: description: Path to devcontainer.json from repo root used to create Codespace. @@ -101352,7 +100674,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '304': *35 '500': *105 '400': *14 @@ -101392,7 +100714,7 @@ paths: application/json: schema: *221 examples: - default: *431 + default: *428 '500': *105 '401': *23 '403': *27 @@ -101424,7 +100746,7 @@ paths: type: array items: *233 examples: - default: &657 + default: &652 value: - id: 197 name: hello_docker @@ -101525,7 +100847,7 @@ paths: application/json: schema: type: array - items: &647 + items: &642 title: Email description: Email type: object @@ -101595,9 +100917,9 @@ paths: application/json: schema: type: array - items: *647 + items: *642 examples: - default: &659 + default: &654 value: - email: octocat@github.com verified: true @@ -101674,7 +100996,7 @@ paths: application/json: schema: type: array - items: *647 + items: *642 examples: default: value: @@ -101932,7 +101254,7 @@ paths: application/json: schema: type: array - items: &648 + items: &643 title: GPG Key description: A unique encryption key type: object @@ -102077,7 +101399,7 @@ paths: - subkeys - revoked examples: - default: &673 + default: &668 value: - id: 3 name: Octocat's GPG Key @@ -102162,9 +101484,9 @@ paths: description: Response content: application/json: - schema: *648 + schema: *643 examples: - default: &649 + default: &644 value: id: 3 name: Octocat's GPG Key @@ -102221,7 +101543,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user parameters: - - &650 + - &645 name: gpg_key_id description: The unique identifier of the GPG key. in: path @@ -102233,9 +101555,9 @@ paths: description: Response content: application/json: - schema: *648 + schema: *643 examples: - default: *649 + default: *644 '404': *6 '304': *35 '403': *27 @@ -102258,7 +101580,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user parameters: - - *650 + - *645 responses: '204': description: Response @@ -102563,7 +101885,7 @@ paths: required: true content: application/json: - schema: *503 + schema: *500 examples: default: value: @@ -102713,7 +102035,7 @@ paths: application/json: schema: type: array - items: &651 + items: &646 title: Key description: Key type: object @@ -102816,9 +102138,9 @@ paths: description: Response content: application/json: - schema: *651 + schema: *646 examples: - default: &652 + default: &647 value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 @@ -102851,15 +102173,15 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user parameters: - - *532 + - *529 responses: '200': description: Response content: application/json: - schema: *651 + schema: *646 examples: - default: *652 + default: *647 '404': *6 '304': *35 '403': *27 @@ -102882,7 +102204,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user parameters: - - *532 + - *529 responses: '204': description: Response @@ -102915,7 +102237,7 @@ paths: application/json: schema: type: array - items: &653 + items: &648 title: User Marketplace Purchase description: User Marketplace Purchase type: object @@ -102994,7 +102316,7 @@ paths: - account - plan examples: - default: &654 + default: &649 value: - billing_cycle: monthly next_billing_date: '2017-11-11T00:00:00Z' @@ -103056,9 +102378,9 @@ paths: application/json: schema: type: array - items: *653 + items: *648 examples: - default: *654 + default: *649 headers: Link: *57 '304': *35 @@ -104076,7 +103398,7 @@ paths: url: https://docs.github.com/rest/migrations/users#unlock-a-user-repository parameters: - *228 - - *655 + - *650 responses: '204': description: Response @@ -104191,7 +103513,7 @@ paths: - docker - nuget - container - - *656 + - *651 - *19 - *17 responses: @@ -104203,8 +103525,8 @@ paths: type: array items: *233 examples: - default: *657 - '400': *658 + default: *652 + '400': *653 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -104233,7 +103555,7 @@ paths: application/json: schema: *233 examples: - default: &674 + default: &669 value: id: 40201 name: octo-name @@ -104595,9 +103917,9 @@ paths: application/json: schema: type: array - items: *647 + items: *642 examples: - default: *659 + default: *654 headers: Link: *57 '304': *35 @@ -104710,7 +104032,7 @@ paths: type: array items: *69 examples: - default: &666 + default: &661 summary: Default response value: - id: 1296269 @@ -105028,9 +104350,9 @@ paths: description: Response content: application/json: - schema: *314 + schema: *311 examples: - default: *316 + default: *313 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -105068,9 +104390,9 @@ paths: application/json: schema: type: array - items: *505 + items: *502 examples: - default: *660 + default: *655 headers: Link: *57 '304': *35 @@ -105149,7 +104471,7 @@ paths: application/json: schema: type: array - items: &661 + items: &656 title: Social account description: Social media account type: object @@ -105166,7 +104488,7 @@ paths: - provider - url examples: - default: &662 + default: &657 value: - provider: twitter url: https://twitter.com/github @@ -105229,9 +104551,9 @@ paths: application/json: schema: type: array - items: *661 + items: *656 examples: - default: *662 + default: *657 '422': *15 '304': *35 '404': *6 @@ -105319,7 +104641,7 @@ paths: application/json: schema: type: array - items: &663 + items: &658 title: SSH Signing Key description: A public SSH key used to sign Git commits type: object @@ -105339,7 +104661,7 @@ paths: - title - created_at examples: - default: &692 + default: &687 value: - id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -105404,9 +104726,9 @@ paths: description: Response content: application/json: - schema: *663 + schema: *658 examples: - default: &664 + default: &659 value: id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -105436,7 +104758,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user parameters: - - &665 + - &660 name: ssh_signing_key_id description: The unique identifier of the SSH signing key. in: path @@ -105448,9 +104770,9 @@ paths: description: Response content: application/json: - schema: *663 + schema: *658 examples: - default: *664 + default: *659 '404': *6 '304': *35 '403': *27 @@ -105473,7 +104795,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user parameters: - - *665 + - *660 responses: '204': description: Response @@ -105502,7 +104824,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#list-repositories-starred-by-the-authenticated-user parameters: - - &693 + - &688 name: sort description: The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed @@ -105527,11 +104849,11 @@ paths: type: array items: *69 examples: - default-response: *666 + default-response: *661 application/vnd.github.v3.star+json: schema: type: array - items: &694 + items: &689 title: Starred Repository description: Starred Repository type: object @@ -105687,8 +105009,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response if this repository is starred by you @@ -105716,8 +105038,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#star-a-repository-for-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -105741,8 +105063,8 @@ paths: description: API method documentation url: https://docs.github.com/rest/activity/starring#unstar-a-repository-for-the-authenticated-user parameters: - - *311 - - *312 + - *308 + - *309 responses: '204': description: Response @@ -105900,10 +105222,10 @@ paths: application/json: schema: oneOf: - - *641 - - *640 + - *636 + - *635 examples: - default-response: &668 + default-response: &663 summary: Default response value: login: octocat @@ -105938,7 +105260,7 @@ paths: following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' - response-with-git-hub-plan-information: &669 + response-with-git-hub-plan-information: &664 summary: Response with GitHub plan information value: login: octocat @@ -106060,7 +105382,7 @@ paths: description: API method documentation url: https://docs.github.com/rest/users/users#list-users parameters: - - *667 + - *662 - *17 responses: '200': @@ -106109,11 +105431,11 @@ paths: application/json: schema: oneOf: - - *641 - - *640 + - *636 + - *635 examples: - default-response: *668 - response-with-git-hub-plan-information: *669 + default-response: *663 + response-with-git-hub-plan-information: *664 '404': *6 x-github: githubCloudOnly: false @@ -106163,8 +105485,8 @@ paths: required: - subject_digests examples: - default: *670 - withPredicateType: *671 + default: *665 + withPredicateType: *666 responses: '200': description: Response @@ -106218,7 +105540,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: *672 + default: *667 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -106423,7 +105745,7 @@ paths: initiator: type: string examples: - default: *372 + default: *369 '201': description: Response content: @@ -106464,7 +105786,7 @@ paths: type: array items: *233 examples: - default: *657 + default: *652 '403': *27 '401': *23 x-github: @@ -106848,9 +106170,9 @@ paths: application/json: schema: type: array - items: *648 + items: *643 examples: - default: *673 + default: *668 headers: Link: *57 x-github: @@ -106954,7 +106276,7 @@ paths: application/json: schema: *20 examples: - default: *502 + default: *499 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -107079,7 +106401,7 @@ paths: - docker - nuget - container - - *656 + - *651 - *62 - *19 - *17 @@ -107092,10 +106414,10 @@ paths: type: array items: *233 examples: - default: *657 + default: *652 '403': *27 '401': *23 - '400': *658 + '400': *653 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -107125,7 +106447,7 @@ paths: application/json: schema: *233 examples: - default: *674 + default: *669 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -107474,7 +106796,7 @@ paths: type: array items: *254 examples: - default: *675 + default: *670 headers: Link: *57 '304': *35 @@ -107534,7 +106856,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: *676 + items: *671 required: - name - data_type @@ -107550,7 +106872,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: *677 + iteration_configuration: *672 required: - name - data_type @@ -107572,8 +106894,8 @@ paths: value: name: Due date data_type: date - single_select_field: *678 - iteration_field: *679 + single_select_field: *673 + iteration_field: *674 responses: '201': description: Response @@ -107581,11 +106903,11 @@ paths: application/json: schema: *254 examples: - text_field: *680 - number_field: *681 - date_field: *682 - single_select_field: *683 - iteration_field: *684 + text_field: *675 + number_field: *676 + date_field: *677 + single_select_field: *678 + iteration_field: *679 '304': *35 '403': *27 '401': *23 @@ -107607,7 +106929,7 @@ paths: url: https://docs.github.com/rest/projects/fields#get-project-field-for-user parameters: - *251 - - *685 + - *680 - *62 responses: '200': @@ -107616,7 +106938,7 @@ paths: application/json: schema: *254 examples: - default: *686 + default: *681 headers: Link: *57 '304': *35 @@ -107973,7 +107295,7 @@ paths: parameters: - *251 - *62 - - *687 + - *682 - name: fields description: |- Limit results to specific fields, by their IDs. If not specified, the @@ -108248,7 +107570,7 @@ paths: - *108 - *110 - *109 - - *688 + - *683 - *111 responses: '200': @@ -108379,7 +107701,7 @@ paths: parameters: - *62 - *108 - - *689 + - *684 - *109 responses: '200': @@ -108478,9 +107800,9 @@ paths: - *108 - *110 - *109 - - *690 + - *685 - *111 - - *691 + - *686 responses: '200': description: Response when getting a billing usage summary @@ -108614,9 +107936,9 @@ paths: application/json: schema: type: array - items: *661 + items: *656 examples: - default: *662 + default: *657 headers: Link: *57 x-github: @@ -108646,9 +107968,9 @@ paths: application/json: schema: type: array - items: *663 + items: *658 examples: - default: *692 + default: *687 headers: Link: *57 x-github: @@ -108673,7 +107995,7 @@ paths: url: https://docs.github.com/rest/activity/starring#list-repositories-starred-by-a-user parameters: - *62 - - *693 + - *688 - *51 - *17 - *19 @@ -108685,11 +108007,11 @@ paths: schema: anyOf: - type: array - items: *694 + items: *689 - type: array items: *69 examples: - default-response: *666 + default-response: *661 headers: Link: *57 x-github: @@ -108849,7 +108171,7 @@ webhooks: type: string enum: - disabled - enterprise: &695 + enterprise: &690 title: Enterprise description: |- An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -108918,7 +108240,7 @@ webhooks: - created_at - updated_at - avatar_url - installation: &696 + installation: &691 title: Simple Installation description: |- The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured @@ -108939,7 +108261,7 @@ webhooks: required: - id - node_id - organization: &697 + organization: &692 title: Organization Simple description: |- A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -109012,7 +108334,7 @@ webhooks: - public_members_url - avatar_url - description - repository: &698 + repository: &693 title: Repository description: |- The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -109925,10 +109247,10 @@ webhooks: type: string enum: - enabled - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -110004,11 +109326,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - rule: &699 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + rule: &694 title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) @@ -110231,11 +109553,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - rule: *699 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + rule: *694 sender: *4 required: - action @@ -110423,11 +109745,11 @@ webhooks: - everyone required: - from - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - rule: *699 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + rule: *694 sender: *4 required: - action @@ -110511,7 +109833,7 @@ webhooks: type: string enum: - completed - check_run: &701 + check_run: &696 title: CheckRun description: A check performed on the code of a given code change type: object @@ -110621,7 +109943,7 @@ webhooks: - examples: - neutral - deployment: *700 + deployment: *695 details_url: type: string examples: @@ -110719,10 +110041,10 @@ webhooks: - output - app - pull_requests - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 sender: *4 required: - check_run @@ -111115,11 +110437,11 @@ webhooks: type: string enum: - created - check_run: *701 - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + check_run: *696 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 sender: *4 required: - check_run @@ -111515,11 +110837,11 @@ webhooks: type: string enum: - requested_action - check_run: *701 - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + check_run: *696 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 requested_action: description: The action requested by the user. type: object @@ -111924,11 +111246,11 @@ webhooks: type: string enum: - rerequested - check_run: *701 - installation: *696 - enterprise: *695 - organization: *697 - repository: *698 + check_run: *696 + installation: *691 + enterprise: *690 + organization: *692 + repository: *693 sender: *4 required: - check_run @@ -112920,10 +112242,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -113632,10 +112954,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -114338,10 +113660,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -114510,7 +113832,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -114662,20 +113984,20 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: &702 + commit_oid: &697 description: The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - enterprise: *695 - installation: *696 - organization: *697 - ref: &703 + enterprise: *690 + installation: *691 + organization: *692 + ref: &698 description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - repository: *698 + repository: *693 sender: *4 required: - action @@ -114842,7 +114164,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -115083,12 +114405,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -115186,7 +114508,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -115371,12 +114693,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -115545,7 +114867,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -115722,12 +115044,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -115828,7 +115150,7 @@ webhooks: type: - object - 'null' - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -116017,9 +115339,9 @@ webhooks: type: - string - 'null' - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 ref: description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event @@ -116027,7 +115349,7 @@ webhooks: type: - string - 'null' - repository: *698 + repository: *693 sender: *4 required: - action @@ -116126,7 +115448,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -116273,12 +115595,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *702 - enterprise: *695 - installation: *696 - organization: *697 - ref: *703 - repository: *698 + commit_oid: *697 + enterprise: *690 + installation: *691 + organization: *692 + ref: *698 + repository: *693 sender: *4 required: - action @@ -116447,7 +115769,7 @@ webhooks: required: - login - id - dismissed_comment: *403 + dismissed_comment: *400 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -116599,10 +115921,10 @@ webhooks: - dismissed_reason - rule - tool - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -116862,10 +116184,10 @@ webhooks: - updated_at - author_association - body - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -116946,18 +116268,18 @@ webhooks: type: - string - 'null' - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 master_branch: description: The name of the repository's default branch (usually `main`). type: string - organization: *697 - pusher_type: &704 + organization: *692 + pusher_type: &699 description: The pusher type for the event. Can be either `user` or a deploy key. type: string - ref: &705 + ref: &700 description: The [`git ref`](https://docs.github.com/rest/git/refs#get-a-reference) resource. type: string @@ -116967,7 +116289,7 @@ webhooks: enum: - tag - branch - repository: *698 + repository: *693 sender: *4 required: - ref @@ -117050,9 +116372,9 @@ webhooks: enum: - created definition: *261 - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117137,9 +116459,9 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117217,9 +116539,9 @@ webhooks: enum: - promote_to_enterprise definition: *261 - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117297,9 +116619,9 @@ webhooks: enum: - updated definition: *261 - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -117376,10 +116698,10 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - repository: *698 - organization: *697 + enterprise: *690 + installation: *691 + repository: *693 + organization: *692 sender: *4 new_property_values: type: array @@ -117464,18 +116786,18 @@ webhooks: title: delete event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - pusher_type: *704 - ref: *705 + enterprise: *690 + installation: *691 + organization: *692 + pusher_type: *699 + ref: *700 ref_type: description: The type of Git ref object deleted in the repository. type: string enum: - tag - branch - repository: *698 + repository: *693 sender: *4 required: - ref @@ -117559,11 +116881,11 @@ webhooks: type: string enum: - auto_dismissed - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117647,11 +116969,11 @@ webhooks: type: string enum: - auto_reopened - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117735,11 +117057,11 @@ webhooks: type: string enum: - created - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117821,11 +117143,11 @@ webhooks: type: string enum: - dismissed - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117907,11 +117229,11 @@ webhooks: type: string enum: - fixed - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -117994,11 +117316,11 @@ webhooks: type: string enum: - reintroduced - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -118080,11 +117402,11 @@ webhooks: type: string enum: - reopened - alert: *461 - installation: *696 - organization: *697 - enterprise: *695 - repository: *698 + alert: *458 + installation: *691 + organization: *692 + enterprise: *690 + repository: *693 sender: *4 required: - action @@ -118161,9 +117483,9 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - key: &706 + enterprise: *690 + installation: *691 + key: &701 description: The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. type: object @@ -118201,8 +117523,8 @@ webhooks: - verified - created_at - read_only - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -118279,11 +117601,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - key: *706 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + key: *701 + organization: *692 + repository: *693 sender: *4 required: - action @@ -118855,12 +118177,12 @@ webhooks: - updated_at - statuses_url - repository_url - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: &710 + workflow: &705 title: Workflow type: - object @@ -119598,13 +118920,13 @@ webhooks: description: The URL to review the deployment protection rule. type: string format: uri - deployment: *467 + deployment: *464 pull_requests: type: array - items: *552 - repository: *698 - organization: *697 - installation: *696 + items: *549 + repository: *693 + organization: *692 + installation: *691 sender: *4 responses: '200': @@ -119675,7 +118997,7 @@ webhooks: type: string enum: - approved - approver: &707 + approver: &702 type: object properties: avatar_url: @@ -119718,11 +119040,11 @@ webhooks: type: string comment: type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - reviewers: &708 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + reviewers: &703 type: array items: type: object @@ -119803,7 +119125,7 @@ webhooks: sender: *4 since: type: string - workflow_job_run: &709 + workflow_job_run: &704 type: object properties: conclusion: @@ -120549,18 +119871,18 @@ webhooks: type: string enum: - rejected - approver: *707 + approver: *702 comment: type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - reviewers: *708 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + reviewers: *703 sender: *4 since: type: string - workflow_job_run: *709 + workflow_job_run: *704 workflow_job_runs: type: array items: @@ -121277,13 +120599,13 @@ webhooks: type: string enum: - requested - enterprise: *695 + enterprise: *690 environment: type: string - installation: *696 - organization: *697 - repository: *698 - requestor: &715 + installation: *691 + organization: *692 + repository: *693 + requestor: &710 title: User type: - object @@ -123226,12 +122548,12 @@ webhooks: - updated_at - deployment_url - repository_url - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Deployment Workflow Run type: @@ -123922,7 +123244,7 @@ webhooks: type: string enum: - answered - answer: &713 + answer: &708 type: object properties: author_association: @@ -124082,11 +123404,11 @@ webhooks: - created_at - updated_at - body - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124213,11 +123535,11 @@ webhooks: - from required: - category - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124300,11 +123622,11 @@ webhooks: type: string enum: - closed - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124386,7 +123708,7 @@ webhooks: type: string enum: - created - comment: &712 + comment: &707 type: object properties: author_association: @@ -124546,11 +123868,11 @@ webhooks: - updated_at - body - reactions - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124633,12 +123955,12 @@ webhooks: type: string enum: - deleted - comment: *712 - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + comment: *707 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124733,12 +124055,12 @@ webhooks: - from required: - body - comment: *712 - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + comment: *707 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124822,11 +124144,11 @@ webhooks: type: string enum: - created - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -124908,11 +124230,11 @@ webhooks: type: string enum: - deleted - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125012,11 +124334,11 @@ webhooks: type: string required: - from - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125098,10 +124420,10 @@ webhooks: type: string enum: - labeled - discussion: *711 - enterprise: *695 - installation: *696 - label: &714 + discussion: *706 + enterprise: *690 + installation: *691 + label: &709 title: Label type: object properties: @@ -125134,8 +124456,8 @@ webhooks: - color - default - description - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125218,11 +124540,11 @@ webhooks: type: string enum: - locked - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125304,11 +124626,11 @@ webhooks: type: string enum: - pinned - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125390,11 +124712,11 @@ webhooks: type: string enum: - reopened - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125479,16 +124801,16 @@ webhooks: changes: type: object properties: - new_discussion: *711 - new_repository: *698 + new_discussion: *706 + new_repository: *693 required: - new_discussion - new_repository - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125571,10 +124893,10 @@ webhooks: type: string enum: - unanswered - discussion: *711 - old_answer: *713 - organization: *697 - repository: *698 + discussion: *706 + old_answer: *708 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125656,12 +124978,12 @@ webhooks: type: string enum: - unlabeled - discussion: *711 - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125744,11 +125066,11 @@ webhooks: type: string enum: - unlocked - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125830,11 +125152,11 @@ webhooks: type: string enum: - unpinned - discussion: *711 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + discussion: *706 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -125907,7 +125229,7 @@ webhooks: description: A user forks a repository. type: object properties: - enterprise: *695 + enterprise: *690 forkee: description: The created [`repository`](https://docs.github.com/rest/repos/repos#get-a-repository) resource. @@ -126585,9 +125907,9 @@ webhooks: type: integer watchers_count: type: integer - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - forkee @@ -126733,9 +126055,9 @@ webhooks: title: gollum event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pages: description: The pages that were updated. type: array @@ -126773,7 +126095,7 @@ webhooks: - action - sha - html_url - repository: *698 + repository: *693 sender: *4 required: - pages @@ -126849,10 +126171,10 @@ webhooks: type: string enum: - created - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: &716 + organization: *692 + repositories: &711 description: An array of repository objects that the installation can access. type: array @@ -126878,8 +126200,8 @@ webhooks: - name - full_name - private - repository: *698 - requester: *715 + repository: *693 + requester: *710 sender: *4 required: - action @@ -126954,11 +126276,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127035,11 +126357,11 @@ webhooks: type: string enum: - new_permissions_accepted - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127116,10 +126438,10 @@ webhooks: type: string enum: - added - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories_added: &717 + organization: *692 + repositories_added: &712 description: An array of repository objects, which were added to the installation. type: array @@ -127165,15 +126487,15 @@ webhooks: private: description: Whether the repository is private or public. type: boolean - repository: *698 - repository_selection: &718 + repository: *693 + repository_selection: &713 description: Describe whether all repositories have been selected or there's a selection involved type: string enum: - all - selected - requester: *715 + requester: *710 sender: *4 required: - action @@ -127252,10 +126574,10 @@ webhooks: type: string enum: - removed - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories_added: *717 + organization: *692 + repositories_added: *712 repositories_removed: description: An array of repository objects, which were removed from the installation. @@ -127282,9 +126604,9 @@ webhooks: - name - full_name - private - repository: *698 - repository_selection: *718 - requester: *715 + repository: *693 + repository_selection: *713 + requester: *710 sender: *4 required: - action @@ -127363,11 +126685,11 @@ webhooks: type: string enum: - suspend - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127549,10 +126871,10 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 target_type: type: string @@ -127631,11 +126953,11 @@ webhooks: type: string enum: - unsuspend - enterprise: *695 + enterprise: *690 installation: *20 - organization: *697 - repositories: *716 - repository: *698 + organization: *692 + repositories: *711 + repository: *693 requester: type: - 'null' @@ -127883,8 +127205,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. @@ -128701,8 +128023,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 state: description: State of the issue; either 'open' or 'closed' type: string @@ -129063,8 +128385,8 @@ webhooks: - state - locked - assignee - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -129144,7 +128466,7 @@ webhooks: type: string enum: - deleted - comment: &719 + comment: &714 title: issue comment description: The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. @@ -129311,8 +128633,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. @@ -130125,8 +129447,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 state: description: State of the issue; either 'open' or 'closed' type: string @@ -130489,8 +129811,8 @@ webhooks: - state - locked - assignee - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -130570,7 +129892,7 @@ webhooks: type: string enum: - edited - changes: &743 + changes: &738 description: The changes to the comment. type: object properties: @@ -130582,9 +129904,9 @@ webhooks: type: string required: - from - comment: *719 - enterprise: *695 - installation: *696 + comment: *714 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) the comment belongs to. @@ -131400,8 +130722,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 state: description: State of the issue; either 'open' or 'closed' type: string @@ -131762,8 +131084,8 @@ webhooks: - state - locked - assignee - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -131853,9 +131175,9 @@ webhooks: type: number blocking_issue: *71 blocking_issue_repo: *69 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -131944,9 +131266,9 @@ webhooks: type: number blocking_issue: *71 blocking_issue_repo: *69 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -132034,9 +131356,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -132125,9 +131447,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -132207,10 +131529,10 @@ webhooks: type: string enum: - assigned - assignee: *715 - enterprise: *695 - installation: *696 - issue: &722 + assignee: *710 + enterprise: *690 + installation: *691 + issue: &717 title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -133022,11 +132344,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -133146,8 +132468,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -133227,8 +132549,8 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -134045,11 +133367,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -134312,8 +133634,8 @@ webhooks: required: - state - closed_at - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -134392,8 +133714,8 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -135201,11 +134523,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -135324,8 +134646,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -135404,8 +134726,8 @@ webhooks: type: string enum: - demilestoned - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -136236,11 +135558,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -136338,7 +135660,7 @@ webhooks: format: uri user_view_type: type: string - milestone: &720 + milestone: &715 title: Milestone description: A collection of related issues and pull requests. type: object @@ -136481,8 +135803,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -136581,8 +135903,8 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -137394,11 +136716,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -137518,9 +136840,9 @@ webhooks: - active_lock_reason - body - reactions - label: *714 - organization: *697 - repository: *698 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -137600,8 +136922,8 @@ webhooks: type: string enum: - labeled - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -138412,11 +137734,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -138536,9 +137858,9 @@ webhooks: - active_lock_reason - body - reactions - label: *714 - organization: *697 - repository: *698 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -138618,8 +137940,8 @@ webhooks: type: string enum: - locked - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -139455,11 +138777,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -139556,8 +138878,8 @@ webhooks: format: uri user_view_type: type: string - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -139636,8 +138958,8 @@ webhooks: type: string enum: - milestoned - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -140467,11 +139789,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -140568,9 +139890,9 @@ webhooks: format: uri user_view_type: type: string - milestone: *720 - organization: *697 - repository: *698 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -141462,11 +140784,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -142043,8 +141365,8 @@ webhooks: required: - old_issue - old_repository - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -142856,11 +142178,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -142979,8 +142301,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -143060,9 +142382,9 @@ webhooks: type: string enum: - pinned - enterprise: *695 - installation: *696 - issue: &721 + enterprise: *690 + installation: *691 + issue: &716 title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. @@ -143868,11 +143190,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -143991,8 +143313,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -144071,8 +143393,8 @@ webhooks: type: string enum: - reopened - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -144906,11 +144228,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -145008,8 +144330,8 @@ webhooks: user_view_type: type: string type: *216 - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -145898,11 +145220,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -146501,11 +145823,11 @@ webhooks: required: - new_issue - new_repository - enterprise: *695 - installation: *696 - issue: *721 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *716 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146585,12 +145907,12 @@ webhooks: type: string enum: - typed - enterprise: *695 - installation: *696 - issue: *722 + enterprise: *690 + installation: *691 + issue: *717 type: *216 - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146671,7 +145993,7 @@ webhooks: type: string enum: - unassigned - assignee: &746 + assignee: &741 title: User type: - object @@ -146743,11 +146065,11 @@ webhooks: required: - login - id - enterprise: *695 - installation: *696 - issue: *722 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *717 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146826,12 +146148,12 @@ webhooks: type: string enum: - unlabeled - enterprise: *695 - installation: *696 - issue: *722 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *717 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -146911,8 +146233,8 @@ webhooks: type: string enum: - unlocked - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 issue: title: Issue description: The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) @@ -147746,11 +147068,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *630 - issue_dependencies_summary: *631 + sub_issues_summary: *627 + issue_dependencies_summary: *628 issue_field_values: type: array - items: *632 + items: *629 state: description: State of the issue; either 'open' or 'closed' type: string @@ -147847,8 +147169,8 @@ webhooks: format: uri user_view_type: type: string - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -147928,11 +147250,11 @@ webhooks: type: string enum: - unpinned - enterprise: *695 - installation: *696 - issue: *721 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + issue: *716 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148011,12 +147333,12 @@ webhooks: type: string enum: - untyped - enterprise: *695 - installation: *696 - issue: *722 + enterprise: *690 + installation: *691 + issue: *717 type: *216 - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148096,11 +147418,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148178,11 +147500,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148292,11 +147614,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - label: *714 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + label: *709 + organization: *692 + repository: *693 sender: *4 required: - action @@ -148378,9 +147700,9 @@ webhooks: - cancelled effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: &723 + enterprise: *690 + installation: *691 + marketplace_purchase: &718 title: Marketplace Purchase type: object required: @@ -148468,8 +147790,8 @@ webhooks: type: integer unit_count: type: integer - organization: *697 - previous_marketplace_purchase: &724 + organization: *692 + previous_marketplace_purchase: &719 title: Marketplace Purchase type: object properties: @@ -148553,7 +147875,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *698 + repository: *693 sender: *4 required: - action @@ -148633,10 +147955,10 @@ webhooks: - changed effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: *723 - organization: *697 + enterprise: *690 + installation: *691 + marketplace_purchase: *718 + organization: *692 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -148724,7 +148046,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *698 + repository: *693 sender: *4 required: - action @@ -148806,10 +148128,10 @@ webhooks: - pending_change effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: *723 - organization: *697 + enterprise: *690 + installation: *691 + marketplace_purchase: *718 + organization: *692 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -148895,7 +148217,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *698 + repository: *693 sender: *4 required: - action @@ -148976,8 +148298,8 @@ webhooks: - pending_change_cancelled effective_date: type: string - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 marketplace_purchase: title: Marketplace Purchase type: object @@ -149063,9 +148385,9 @@ webhooks: type: integer unit_count: type: integer - organization: *697 - previous_marketplace_purchase: *724 - repository: *698 + organization: *692 + previous_marketplace_purchase: *719 + repository: *693 sender: *4 required: - action @@ -149145,12 +148467,12 @@ webhooks: - purchased effective_date: type: string - enterprise: *695 - installation: *696 - marketplace_purchase: *723 - organization: *697 - previous_marketplace_purchase: *724 - repository: *698 + enterprise: *690 + installation: *691 + marketplace_purchase: *718 + organization: *692 + previous_marketplace_purchase: *719 + repository: *693 sender: *4 required: - action @@ -149252,11 +148574,11 @@ webhooks: type: string required: - to - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 sender: *4 required: - action @@ -149358,11 +148680,11 @@ webhooks: type: - string - 'null' - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 sender: *4 required: - action @@ -149441,11 +148763,11 @@ webhooks: type: string enum: - removed - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 sender: *4 required: - action @@ -149523,11 +148845,11 @@ webhooks: type: string enum: - added - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 scope: description: The scope of the membership. Currently, can only be `team`. @@ -149605,7 +148927,7 @@ webhooks: required: - login - id - team: &725 + team: &720 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -149835,11 +149157,11 @@ webhooks: type: string enum: - removed - enterprise: *695 - installation: *696 - member: *715 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + member: *710 + organization: *692 + repository: *693 scope: description: The scope of the membership. Currently, can only be `team`. @@ -149918,7 +149240,7 @@ webhooks: required: - login - id - team: *725 + team: *720 required: - action - scope @@ -150000,8 +149322,8 @@ webhooks: type: string enum: - checks_requested - installation: *696 - merge_group: &726 + installation: *691 + merge_group: &721 type: object title: Merge Group description: A group of pull requests that the merge queue has grouped @@ -150020,15 +149342,15 @@ webhooks: description: The full ref of the branch the merge group will be merged into. type: string - head_commit: *392 + head_commit: *389 required: - head_sha - head_ref - base_sha - base_ref - head_commit - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150114,10 +149436,10 @@ webhooks: - merged - invalidated - dequeued - installation: *696 - merge_group: *726 - organization: *697 - repository: *698 + installation: *691 + merge_group: *721 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150190,7 +149512,7 @@ webhooks: type: string enum: - deleted - enterprise: *695 + enterprise: *690 hook: description: 'The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, @@ -150299,12 +149621,12 @@ webhooks: hook_id: description: The id of the modified webhook. type: integer - installation: *696 - organization: *697 + installation: *691 + organization: *692 repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -150384,11 +149706,11 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 - milestone: *720 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150467,9 +149789,9 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - milestone: &727 + enterprise: *690 + installation: *691 + milestone: &722 title: Milestone description: A collection of related issues and pull requests. type: object @@ -150611,8 +149933,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150691,11 +150013,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - milestone: *720 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150805,11 +150127,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - milestone: *720 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *715 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150889,11 +150211,11 @@ webhooks: type: string enum: - opened - enterprise: *695 - installation: *696 - milestone: *727 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + milestone: *722 + organization: *692 + repository: *693 sender: *4 required: - action @@ -150972,11 +150294,11 @@ webhooks: type: string enum: - blocked - blocked_user: *715 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + blocked_user: *710 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151055,11 +150377,11 @@ webhooks: type: string enum: - unblocked - blocked_user: *715 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + blocked_user: *710 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151138,9 +150460,9 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - membership: &728 + enterprise: *690 + installation: *691 + membership: &723 title: Membership description: The membership between the user and the organization. Not present when the action is `member_invited`. @@ -151250,8 +150572,8 @@ webhooks: - role - organization_url - user - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151329,11 +150651,11 @@ webhooks: type: string enum: - member_added - enterprise: *695 - installation: *696 - membership: *728 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + membership: *723 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151412,8 +150734,8 @@ webhooks: type: string enum: - member_invited - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 invitation: description: The invitation for the user or email if the action is `member_invited`. @@ -151535,10 +150857,10 @@ webhooks: - inviter - team_count - invitation_teams_url - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 - user: *715 + user: *710 required: - action - invitation @@ -151616,11 +150938,11 @@ webhooks: type: string enum: - member_removed - enterprise: *695 - installation: *696 - membership: *728 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + membership: *723 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151707,11 +151029,11 @@ webhooks: properties: from: type: string - enterprise: *695 - installation: *696 - membership: *728 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + membership: *723 + organization: *692 + repository: *693 sender: *4 required: - action @@ -151787,9 +151109,9 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 package: description: Information about the package. type: object @@ -152312,7 +151634,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: &729 + items: &724 title: Ruby Gems metadata type: object properties: @@ -152409,7 +151731,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -152485,9 +151807,9 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 package: description: Information about the package. type: object @@ -152849,7 +152171,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *729 + items: *724 source_url: type: string format: uri @@ -152920,7 +152242,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -153101,12 +152423,12 @@ webhooks: - duration - created_at - updated_at - enterprise: *695 + enterprise: *690 id: type: integer - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - id @@ -153183,7 +152505,7 @@ webhooks: type: string enum: - approved - personal_access_token_request: &730 + personal_access_token_request: &725 title: Personal Access Token Request description: Details of a Personal Access Token Request. type: object @@ -153333,10 +152655,10 @@ webhooks: - token_expired - token_expires_at - token_last_used_at - enterprise: *695 - organization: *697 + enterprise: *690 + organization: *692 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153413,11 +152735,11 @@ webhooks: type: string enum: - cancelled - personal_access_token_request: *730 - enterprise: *695 - organization: *697 + personal_access_token_request: *725 + enterprise: *690 + organization: *692 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153493,11 +152815,11 @@ webhooks: type: string enum: - created - personal_access_token_request: *730 - enterprise: *695 - organization: *697 + personal_access_token_request: *725 + enterprise: *690 + organization: *692 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153572,11 +152894,11 @@ webhooks: type: string enum: - denied - personal_access_token_request: *730 - organization: *697 - enterprise: *695 + personal_access_token_request: *725 + organization: *692 + enterprise: *690 sender: *4 - installation: *696 + installation: *691 required: - action - personal_access_token_request @@ -153681,7 +153003,7 @@ webhooks: id: description: Unique identifier of the webhook. type: integer - last_response: *731 + last_response: *726 name: description: The type of webhook. The only valid value is 'web'. type: string @@ -153713,8 +153035,8 @@ webhooks: hook_id: description: The ID of the webhook that triggered the ping. type: integer - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 zen: description: Random string of GitHub zen. @@ -153959,10 +153281,10 @@ webhooks: - from required: - note - enterprise: *695 - installation: *696 - organization: *697 - project_card: &732 + enterprise: *690 + installation: *691 + organization: *692 + project_card: &727 title: Project Card type: object properties: @@ -154085,7 +153407,7 @@ webhooks: - creator - created_at - updated_at - repository: *698 + repository: *693 sender: *4 required: - action @@ -154166,11 +153488,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - project_card: *732 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_card: *727 + repository: *693 sender: *4 required: - action @@ -154250,9 +153572,9 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 project_card: title: Project Card type: object @@ -154382,7 +153704,7 @@ webhooks: repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -154476,11 +153798,11 @@ webhooks: - from required: - note - enterprise: *695 - installation: *696 - organization: *697 - project_card: *732 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_card: *727 + repository: *693 sender: *4 required: - action @@ -154574,9 +153896,9 @@ webhooks: - from required: - column_id - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 project_card: allOf: - title: Project Card @@ -154773,7 +154095,7 @@ webhooks: type: string required: - after_id - repository: *698 + repository: *693 sender: *4 required: - action @@ -154853,10 +154175,10 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 - organization: *697 - project: &734 + enterprise: *690 + installation: *691 + organization: *692 + project: &729 title: Project type: object properties: @@ -154983,7 +154305,7 @@ webhooks: - creator - created_at - updated_at - repository: *698 + repository: *693 sender: *4 required: - action @@ -155063,10 +154385,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - project_column: &733 + enterprise: *690 + installation: *691 + organization: *692 + project_column: &728 title: Project Column type: object properties: @@ -155106,7 +154428,7 @@ webhooks: - name - created_at - updated_at - repository: *698 + repository: *693 sender: *4 required: - action @@ -155185,14 +154507,14 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - project_column: *733 + enterprise: *690 + installation: *691 + organization: *692 + project_column: *728 repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -155281,11 +154603,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - project_column: *733 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_column: *728 + repository: *693 sender: *4 required: - action @@ -155365,11 +154687,11 @@ webhooks: type: string enum: - moved - enterprise: *695 - installation: *696 - organization: *697 - project_column: *733 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project_column: *728 + repository: *693 sender: *4 required: - action @@ -155449,11 +154771,11 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - project: *734 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 + repository: *693 sender: *4 required: - action @@ -155533,14 +154855,14 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - project: *734 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 repository: anyOf: - type: 'null' - - *698 + - *693 sender: *4 required: - action @@ -155641,11 +154963,11 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - project: *734 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 + repository: *693 sender: *4 required: - action @@ -155724,11 +155046,11 @@ webhooks: type: string enum: - reopened - enterprise: *695 - installation: *696 - organization: *697 - project: *734 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + project: *729 + repository: *693 sender: *4 required: - action @@ -155809,8 +155131,8 @@ webhooks: type: string enum: - closed - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -155892,8 +155214,8 @@ webhooks: type: string enum: - created - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -155975,8 +155297,8 @@ webhooks: type: string enum: - deleted - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -156098,8 +155420,8 @@ webhooks: type: string to: type: string - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -156183,7 +155505,7 @@ webhooks: type: string enum: - archived - changes: &738 + changes: &733 type: object properties: archived_at: @@ -156199,9 +155521,9 @@ webhooks: - string - 'null' format: date-time - installation: *696 - organization: *697 - projects_v2_item: &735 + installation: *691 + organization: *692 + projects_v2_item: &730 title: Projects v2 Item description: An item belonging to a project type: object @@ -156341,9 +155663,9 @@ webhooks: - 'null' to: type: string - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156425,9 +155747,9 @@ webhooks: type: string enum: - created - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156508,9 +155830,9 @@ webhooks: type: string enum: - deleted - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156615,7 +155937,7 @@ webhooks: oneOf: - type: string - type: integer - - &736 + - &731 title: Projects v2 Single Select Option description: An option for a single select field type: object @@ -156639,7 +155961,7 @@ webhooks: required: - id - name - - &737 + - &732 title: Projects v2 Iteration Setting description: An iteration setting for an iteration field type: object @@ -156679,8 +156001,8 @@ webhooks: oneOf: - type: string - type: integer - - *736 - - *737 + - *731 + - *732 type: - 'null' - string @@ -156703,9 +156025,9 @@ webhooks: - 'null' required: - body - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156802,9 +156124,9 @@ webhooks: type: - string - 'null' - installation: *696 - organization: *697 - projects_v2_item: *735 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156887,10 +156209,10 @@ webhooks: type: string enum: - restored - changes: *738 - installation: *696 - organization: *697 - projects_v2_item: *735 + changes: *733 + installation: *691 + organization: *692 + projects_v2_item: *730 sender: *4 required: - action @@ -156972,8 +156294,8 @@ webhooks: type: string enum: - reopened - installation: *696 - organization: *697 + installation: *691 + organization: *692 projects_v2: *249 sender: *4 required: @@ -157055,9 +156377,9 @@ webhooks: type: string enum: - created - installation: *696 - organization: *697 - projects_v2_status_update: *739 + installation: *691 + organization: *692 + projects_v2_status_update: *734 sender: *4 required: - action @@ -157138,9 +156460,9 @@ webhooks: type: string enum: - deleted - installation: *696 - organization: *697 - projects_v2_status_update: *739 + installation: *691 + organization: *692 + projects_v2_status_update: *734 sender: *4 required: - action @@ -157286,9 +156608,9 @@ webhooks: - string - 'null' format: date - installation: *696 - organization: *697 - projects_v2_status_update: *739 + installation: *691 + organization: *692 + projects_v2_status_update: *734 sender: *4 required: - action @@ -157359,10 +156681,10 @@ webhooks: title: public event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - repository @@ -157439,13 +156761,13 @@ webhooks: type: string enum: - assigned - assignee: *715 - enterprise: *695 - installation: *696 - number: &740 + assignee: *710 + enterprise: *690 + installation: *691 + number: &735 description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -159794,7 +159116,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -159876,11 +159198,11 @@ webhooks: type: string enum: - auto_merge_disabled - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -162222,7 +161544,7 @@ webhooks: - draft reason: type: string - repository: *698 + repository: *693 sender: *4 required: - action @@ -162304,11 +161626,11 @@ webhooks: type: string enum: - auto_merge_enabled - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -164650,7 +163972,7 @@ webhooks: - draft reason: type: string - repository: *698 + repository: *693 sender: *4 required: - action @@ -164732,13 +164054,13 @@ webhooks: type: string enum: - closed - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: &741 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: &736 allOf: - - *552 + - *549 - type: object properties: allow_auto_merge: @@ -164800,7 +164122,7 @@ webhooks: Please use `squash_merge_commit_title` instead.** type: boolean default: false - repository: *698 + repository: *693 sender: *4 required: - action @@ -164881,12 +164203,12 @@ webhooks: type: string enum: - converted_to_draft - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -164966,11 +164288,11 @@ webhooks: type: string enum: - demilestoned - enterprise: *695 + enterprise: *690 milestone: *252 - number: *740 - organization: *697 - pull_request: &742 + number: *735 + organization: *692 + pull_request: &737 title: Pull Request type: object properties: @@ -167297,7 +166619,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -167376,11 +166698,11 @@ webhooks: type: string enum: - dequeued - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -169726,7 +169048,7 @@ webhooks: - BRANCH_PROTECTIONS - GIT_TREE_INVALID - INVALID_MERGE_COMMIT - repository: *698 + repository: *693 sender: *4 required: - action @@ -169850,12 +169172,12 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -169935,11 +169257,11 @@ webhooks: type: string enum: - enqueued - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -172270,7 +171592,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -172350,11 +171672,11 @@ webhooks: type: string enum: - labeled - enterprise: *695 - installation: *696 - label: *714 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + label: *709 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -174702,7 +174024,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -174783,10 +174105,10 @@ webhooks: type: string enum: - locked - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -177132,7 +176454,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -177212,12 +176534,12 @@ webhooks: type: string enum: - milestoned - enterprise: *695 + enterprise: *690 milestone: *252 - number: *740 - organization: *697 - pull_request: *742 - repository: *698 + number: *735 + organization: *692 + pull_request: *737 + repository: *693 sender: *4 required: - action @@ -177296,12 +176618,12 @@ webhooks: type: string enum: - opened - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -177382,12 +176704,12 @@ webhooks: type: string enum: - ready_for_review - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -177467,12 +176789,12 @@ webhooks: type: string enum: - reopened - enterprise: *695 - installation: *696 - number: *740 - organization: *697 - pull_request: *741 - repository: *698 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 + pull_request: *736 + repository: *693 sender: *4 required: - action @@ -177847,9 +177169,9 @@ webhooks: - start_side - side - reactions - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: type: object properties: @@ -180079,7 +179401,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *698 + repository: *693 sender: *4 required: - action @@ -180159,7 +179481,7 @@ webhooks: type: string enum: - deleted - comment: &744 + comment: &739 title: Pull Request Review Comment description: The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. @@ -180452,9 +179774,9 @@ webhooks: - start_side - side - reactions - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: type: object properties: @@ -182672,7 +181994,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *698 + repository: *693 sender: *4 required: - action @@ -182752,11 +182074,11 @@ webhooks: type: string enum: - edited - changes: *743 - comment: *744 - enterprise: *695 - installation: *696 - organization: *697 + changes: *738 + comment: *739 + enterprise: *690 + installation: *691 + organization: *692 pull_request: type: object properties: @@ -184977,7 +184299,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *698 + repository: *693 sender: *4 required: - action @@ -185058,9 +184380,9 @@ webhooks: type: string enum: - dismissed - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -187293,7 +186615,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 + repository: *693 review: description: The review that was affected. type: object @@ -187544,9 +186866,9 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -189660,8 +188982,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 - review: &745 + repository: *693 + review: &740 description: The review that was affected. type: object properties: @@ -189899,12 +189221,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -192251,7 +191573,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_reviewer: title: User type: @@ -192337,12 +191659,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -194696,7 +194018,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_team: title: Team description: Groups of organization members that gives permissions @@ -194891,12 +194213,12 @@ webhooks: type: string enum: - review_requested - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -197245,7 +196567,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_reviewer: title: User type: @@ -197332,12 +196654,12 @@ webhooks: type: string enum: - review_requested - enterprise: *695 - installation: *696 + enterprise: *690 + installation: *691 number: description: The pull request number. type: integer - organization: *697 + organization: *692 pull_request: title: Pull Request type: object @@ -199677,7 +198999,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 requested_team: title: Team description: Groups of organization members that gives permissions @@ -199861,9 +199183,9 @@ webhooks: type: string enum: - submitted - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -202099,8 +201421,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 - review: *745 + repository: *693 + review: *740 sender: *4 required: - action @@ -202180,9 +201502,9 @@ webhooks: type: string enum: - resolved - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -204313,7 +203635,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 + repository: *693 sender: *4 thread: type: object @@ -204710,9 +204032,9 @@ webhooks: type: string enum: - unresolved - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 pull_request: title: Simple Pull Request type: object @@ -206826,7 +206148,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *698 + repository: *693 sender: *4 thread: type: object @@ -207225,10 +206547,10 @@ webhooks: type: string before: type: string - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -209563,7 +208885,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -209645,11 +208967,11 @@ webhooks: type: string enum: - unassigned - assignee: *746 - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + assignee: *741 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -211999,7 +211321,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -212078,11 +211400,11 @@ webhooks: type: string enum: - unlabeled - enterprise: *695 - installation: *696 - label: *714 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + label: *709 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -214421,7 +213743,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -214502,10 +213824,10 @@ webhooks: type: string enum: - unlocked - enterprise: *695 - installation: *696 - number: *740 - organization: *697 + enterprise: *690 + installation: *691 + number: *735 + organization: *692 pull_request: title: Pull Request type: object @@ -216834,7 +216156,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *698 + repository: *693 sender: *4 required: - action @@ -217037,7 +216359,7 @@ webhooks: deleted: description: Whether this push deleted the `ref`. type: boolean - enterprise: *695 + enterprise: *690 forced: description: Whether this push was a force push of the `ref`. type: boolean @@ -217132,8 +216454,8 @@ webhooks: - url - author - committer - installation: *696 - organization: *697 + installation: *691 + organization: *692 pusher: title: Committer description: Metaproperties for Git author/committer information. @@ -217721,9 +217043,9 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 registry_package: type: object properties: @@ -218200,7 +217522,7 @@ webhooks: type: string rubygems_metadata: type: array - items: *729 + items: *724 summary: type: string tag_name: @@ -218256,7 +217578,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -218334,9 +217656,9 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 registry_package: type: object properties: @@ -218648,7 +217970,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *729 + items: *724 summary: type: string tag_name: @@ -218698,7 +218020,7 @@ webhooks: - owner - package_version - registry - repository: *698 + repository: *693 sender: *4 required: - action @@ -218775,10 +218097,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - release: &747 + enterprise: *690 + installation: *691 + organization: *692 + release: &742 title: Release description: The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. @@ -219109,7 +218431,7 @@ webhooks: - updated_at - zipball_url - body - repository: *698 + repository: *693 sender: *4 required: - action @@ -219186,11 +218508,11 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - release: *747 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *742 + repository: *693 sender: *4 required: - action @@ -219307,11 +218629,11 @@ webhooks: type: boolean required: - to - enterprise: *695 - installation: *696 - organization: *697 - release: *747 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *742 + repository: *693 sender: *4 required: - action @@ -219389,9 +218711,9 @@ webhooks: type: string enum: - prereleased - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 release: title: Release description: The [release](https://docs.github.com/rest/releases/releases/#get-a-release) @@ -219727,7 +219049,7 @@ webhooks: - string - 'null' format: uri - repository: *698 + repository: *693 sender: *4 required: - action @@ -219803,10 +219125,10 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 - release: &748 + enterprise: *690 + installation: *691 + organization: *692 + release: &743 title: Release description: The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. @@ -220139,7 +219461,7 @@ webhooks: - string - 'null' format: uri - repository: *698 + repository: *693 sender: *4 required: - action @@ -220215,11 +219537,11 @@ webhooks: type: string enum: - released - enterprise: *695 - installation: *696 - organization: *697 - release: *747 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *742 + repository: *693 sender: *4 required: - action @@ -220295,11 +219617,11 @@ webhooks: type: string enum: - unpublished - enterprise: *695 - installation: *696 - organization: *697 - release: *748 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + release: *743 + repository: *693 sender: *4 required: - action @@ -220375,11 +219697,11 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - repository_advisory: *616 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + repository_advisory: *613 sender: *4 required: - action @@ -220455,11 +219777,11 @@ webhooks: type: string enum: - reported - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - repository_advisory: *616 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + repository_advisory: *613 sender: *4 required: - action @@ -220535,10 +219857,10 @@ webhooks: type: string enum: - archived - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220615,10 +219937,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220696,10 +220018,10 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220784,10 +220106,10 @@ webhooks: additionalProperties: true description: The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220902,10 +220224,10 @@ webhooks: - 'null' items: type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -220977,10 +220299,10 @@ webhooks: title: repository_import event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 status: type: string @@ -221061,10 +220383,10 @@ webhooks: type: string enum: - privatized - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221141,10 +220463,10 @@ webhooks: type: string enum: - publicized - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221238,10 +220560,10 @@ webhooks: - name required: - repository - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221321,10 +220643,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 repository_ruleset: *292 sender: *4 required: @@ -221403,10 +220725,10 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 repository_ruleset: *292 sender: *4 required: @@ -221485,10 +220807,10 @@ webhooks: type: string enum: - edited - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 repository_ruleset: *292 changes: type: object @@ -221550,16 +220872,16 @@ webhooks: properties: added: type: array - items: *572 + items: *569 deleted: type: array - items: *572 + items: *569 updated: type: array items: type: object properties: - rule: *572 + rule: *569 changes: type: object properties: @@ -221796,10 +221118,10 @@ webhooks: - from required: - owner - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221877,10 +221199,10 @@ webhooks: type: string enum: - unarchived - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -221958,7 +221280,7 @@ webhooks: type: string enum: - create - alert: &749 + alert: &744 title: Repository Vulnerability Alert Alert description: The security alert of the vulnerable dependency. type: object @@ -222082,10 +221404,10 @@ webhooks: type: string enum: - open - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222295,10 +221617,10 @@ webhooks: type: string enum: - dismissed - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222376,11 +221698,11 @@ webhooks: type: string enum: - reopen - alert: *749 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *744 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222582,10 +221904,10 @@ webhooks: enum: - fixed - open - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222663,7 +221985,7 @@ webhooks: type: string enum: - assigned - alert: &750 + alert: &745 type: object properties: number: *163 @@ -222778,10 +222100,10 @@ webhooks: - type: 'null' - *4 assignee: *4 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222859,11 +222181,11 @@ webhooks: type: string enum: - created - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -222944,11 +222266,11 @@ webhooks: type: string enum: - created - alert: *750 - installation: *696 - location: *751 - organization: *697 - repository: *698 + alert: *745 + installation: *691 + location: *746 + organization: *692 + repository: *693 sender: *4 required: - location @@ -223186,11 +222508,11 @@ webhooks: type: string enum: - publicly_leaked - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223268,11 +222590,11 @@ webhooks: type: string enum: - reopened - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223350,11 +222672,11 @@ webhooks: type: string enum: - resolved - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223432,12 +222754,12 @@ webhooks: type: string enum: - unassigned - alert: *750 + alert: *745 assignee: *4 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223515,11 +222837,11 @@ webhooks: type: string enum: - validated - alert: *750 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + alert: *745 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -223649,10 +222971,10 @@ webhooks: - organization - enterprise - - repository: *698 - enterprise: *695 - installation: *696 - organization: *697 + repository: *693 + enterprise: *690 + installation: *691 + organization: *692 sender: *4 required: - action @@ -223730,11 +223052,11 @@ webhooks: type: string enum: - published - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - security_advisory: &752 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + security_advisory: &747 description: The details of the security advisory, including summary, description, and severity. type: object @@ -223920,11 +223242,11 @@ webhooks: type: string enum: - updated - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 - security_advisory: *752 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 + security_advisory: *747 sender: *4 required: - action @@ -223997,10 +223319,10 @@ webhooks: type: string enum: - withdrawn - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 security_advisory: description: The details of the security advisory, including summary, description, and severity. @@ -224187,10 +223509,10 @@ webhooks: type: object properties: security_and_analysis: *265 - enterprise: *695 - installation: *696 - organization: *697 - repository: *314 + enterprise: *690 + installation: *691 + organization: *692 + repository: *311 sender: *4 required: - changes @@ -224268,12 +223590,12 @@ webhooks: type: string enum: - cancelled - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: &753 + sponsorship: &748 type: object properties: created_at: @@ -224578,12 +223900,12 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - sponsorship @@ -224671,12 +223993,12 @@ webhooks: type: string required: - from - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - changes @@ -224753,17 +224075,17 @@ webhooks: type: string enum: - pending_cancellation - effective_date: &754 + effective_date: &749 description: The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect. type: string - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - sponsorship @@ -224837,7 +224159,7 @@ webhooks: type: string enum: - pending_tier_change - changes: &755 + changes: &750 type: object properties: tier: @@ -224881,13 +224203,13 @@ webhooks: - from required: - tier - effective_date: *754 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + effective_date: *749 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - changes @@ -224964,13 +224286,13 @@ webhooks: type: string enum: - tier_changed - changes: *755 - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + changes: *750 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - sponsorship: *753 + sponsorship: *748 required: - action - changes @@ -225044,10 +224366,10 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -225131,10 +224453,10 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -225568,15 +224890,15 @@ webhooks: type: - string - 'null' - enterprise: *695 + enterprise: *690 id: description: The unique identifier of the status. type: integer - installation: *696 + installation: *691 name: type: string - organization: *697 - repository: *698 + organization: *692 + repository: *693 sender: *4 sha: description: The Commit SHA. @@ -225692,9 +225014,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -225784,9 +225106,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -225876,9 +225198,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -225968,9 +225290,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *71 - installation: *696 - organization: *697 - repository: *698 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -226047,12 +225369,12 @@ webhooks: title: team_add event type: object properties: - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - team: &756 + team: &751 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -226282,9 +225604,9 @@ webhooks: type: string enum: - added_to_repository - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -226754,7 +226076,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -226830,9 +226152,9 @@ webhooks: type: string enum: - created - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -227302,7 +226624,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -227379,9 +226701,9 @@ webhooks: type: string enum: - deleted - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -227851,7 +227173,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -227995,9 +227317,9 @@ webhooks: - from required: - permissions - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -228467,7 +227789,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - changes @@ -228545,9 +227867,9 @@ webhooks: type: string enum: - removed_from_repository - enterprise: *695 - installation: *696 - organization: *697 + enterprise: *690 + installation: *691 + organization: *692 repository: title: Repository description: A git repository @@ -229017,7 +228339,7 @@ webhooks: - topics - visibility sender: *4 - team: *756 + team: *751 required: - action - team @@ -229093,10 +228415,10 @@ webhooks: type: string enum: - started - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 required: - action @@ -229169,17 +228491,17 @@ webhooks: title: workflow_dispatch event type: object properties: - enterprise: *695 + enterprise: *690 inputs: type: - object - 'null' additionalProperties: true - installation: *696 - organization: *697 + installation: *691 + organization: *692 ref: type: string - repository: *698 + repository: *693 sender: *4 workflow: type: string @@ -229261,10 +228583,10 @@ webhooks: type: string enum: - completed - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: allOf: @@ -229520,7 +228842,7 @@ webhooks: type: string required: - conclusion - deployment: *467 + deployment: *464 required: - action - repository @@ -229599,10 +228921,10 @@ webhooks: type: string enum: - in_progress - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: allOf: @@ -229884,7 +229206,7 @@ webhooks: required: - status - steps - deployment: *467 + deployment: *464 required: - action - repository @@ -229963,10 +229285,10 @@ webhooks: type: string enum: - queued - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: type: object @@ -230112,7 +229434,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *467 + deployment: *464 required: - action - repository @@ -230191,10 +229513,10 @@ webhooks: type: string enum: - waiting - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 workflow_job: type: object @@ -230341,7 +229663,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *467 + deployment: *464 required: - action - repository @@ -230421,12 +229743,12 @@ webhooks: type: string enum: - completed - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Workflow Run type: object @@ -231445,12 +230767,12 @@ webhooks: type: string enum: - in_progress - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Workflow Run type: object @@ -232454,12 +231776,12 @@ webhooks: type: string enum: - requested - enterprise: *695 - installation: *696 - organization: *697 - repository: *698 + enterprise: *690 + installation: *691 + organization: *692 + repository: *693 sender: *4 - workflow: *710 + workflow: *705 workflow_run: title: Workflow Run type: object diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json index 0eeec04e7..d30b427ba 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -285197,17 +285197,17 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { + "/orgs/{org}/teams/{team_slug}/external-groups": { "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + "summary": "List a connection between an external group and a team", + "description": "Lists a connection between a team and an external group.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", "tags": [ "teams" ], - "operationId": "teams/list-discussions-in-org", + "operationId": "teams/list-linked-external-idp-groups-to-team-for-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team" }, "parameters": [ { @@ -285227,47 +285227,6 @@ "schema": { "type": "string" } - }, - { - "name": "direction", - "description": "The direction to sort the results by.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "desc" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } } ], "responses": { @@ -285276,435 +285235,98 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "title": "Reaction Rollup", + "title": "ExternalGroups", + "description": "A list of external groups available to be connected to a team", + "type": "object", + "properties": { + "groups": { + "description": "An array of external groups available to be mapped to a team", + "type": "array", + "items": { "type": "object", + "required": [ + "group_id", + "group_name", + "updated_at" + ], "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" + "group_id": { + "description": "The internal ID of the group", + "type": "integer", + "examples": [ + 1 + ] }, - "eyes": { - "type": "integer" + "group_name": { + "description": "The display name of the group", + "type": "string", + "examples": [ + "group-azuread-test" + ] }, - "rocket": { - "type": "integer" + "updated_at": { + "description": "The time of the last update for this group", + "type": "string", + "examples": [ + "2019-06-03 22:27:15:000 -700" + ] } + } + }, + "examples": [ + { + "group_id": 1, + "group_name": "group-azuread-test", + "updated_at": "2021-01-03 22:27:15:000 -700" }, - "required": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] + { + "group_id": 2, + "group_name": "group-azuread-test2", + "updated_at": "2021-06-03 22:27:15:000 -700" + } + ] + } } }, "examples": { "default": { - "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 + "value": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "updated_at": "2021-01-24T11:31:04-06:00" }, - "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", - "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 + { + "group_id": "456", + "group_name": "Octocat docs members", + "updated_at": "2021-03-24T11:31:04-06:00" } - } - ] + ] + } } } } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } } } }, "x-github": { - "githubCloudOnly": false, + "githubCloudOnly": true, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "external-groups" } }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "patch": { + "summary": "Update the connection between an external group and a team", + "description": "Creates a connection between a team and an external group. Only one external group can be linked to a team.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", "tags": [ "teams" ], - "operationId": "teams/create-discussion-in-org", + "operationId": "teams/link-external-idp-group-to-team-for-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team" }, "parameters": [ { @@ -285733,30 +285355,22 @@ "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 + "group_id": { + "type": "integer", + "description": "External Group Id", + "examples": [ + 1 + ] } }, "required": [ - "title", - "body" + "group_id" ] }, "examples": { "default": { "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "group_id": 123 } } } @@ -285764,403 +285378,168 @@ } }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "ExternalGroup", + "description": "Information about an external group's usage and its members", "type": "object", + "required": [ + "group_id", + "group_name", + "teams", + "members" + ], "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", + "group_id": { + "description": "The internal ID of the group", "type": "integer", "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" + 1 ] }, - "title": { - "description": "The title of the discussion.", + "group_name": { + "description": "The display name for the group", "type": "string", "examples": [ - "How can we improve our workflow?" + "group-azuread-test" ] }, "updated_at": { + "description": "The date when the group was last updated_at", "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "2021-01-03 22:27:15:000 -700" ] }, - "url": { - "type": "string", - "format": "uri", + "teams": { + "description": "An array of teams linked to this group", + "type": "array", + "items": { + "type": "object", + "required": [ + "team_id", + "team_name" + ], + "properties": { + "team_id": { + "description": "The id for a team", + "type": "integer", + "examples": [ + 1 + ] + }, + "team_name": { + "description": "The name of the team", + "type": "string", + "examples": [ + "team-test" + ] + } + } + }, "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + { + "team_id": 1, + "team_name": "team-test" + }, + { + "team_id": 2, + "team_name": "team-test2" + } ] }, - "reactions": { - "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" + "members": { + "description": "An array of external members linked to this group", + "type": "array", + "items": { + "type": "object", + "required": [ + "member_id", + "member_login", + "member_name", + "member_email" + ], + "properties": { + "member_id": { + "description": "The internal user ID of the identity", + "type": "integer", + "examples": [ + 1 + ] + }, + "member_login": { + "description": "The handle/login for the user", + "type": "string", + "examples": [ + "mona-lisa_eocsaxrs" + ] + }, + "member_name": { + "description": "The user display name/profile name", + "type": "string", + "examples": [ + "Mona Lisa" + ] + }, + "member_email": { + "description": "An email attached to a user", + "type": "string", + "examples": [ + "mona_lisa@github.com" + ] + } } }, - "required": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "examples": [ + { + "member_id": 1, + "member_login": "mona-lisa_eocsaxrs", + "member_name": "Mona Lisa", + "member_email": "mona_lisa@github.com" + }, + { + "member_id": 2, + "member_login": "octo-lisa_eocsaxrs", + "member_name": "Octo Lisa", + "member_email": "octo_lisa@github.com" + } ] } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] + } }, "examples": { "default": { "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", - "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 - } + "group_id": "123", + "group_name": "Octocat admins", + "updated_at": "2021-01-24T11:31:04-06:00", + "teams": [ + { + "team_id": 1, + "team_name": "team-test" + }, + { + "team_id": 2, + "team_name": "team-test2" + } + ], + "members": [ + { + "member_id": 1, + "member_login": "mona-lisa_eocsaxrs", + "member_name": "Mona Lisa", + "member_email": "mona_lisa@github.com" + }, + { + "member_id": 2, + "member_login": "octo-lisa_eocsaxrs", + "member_name": "Octo Lisa", + "member_email": "octo_lisa@github.com" + } + ] } } } @@ -286169,25 +285548,67 @@ } }, "x-github": { - "triggersNotification": true, - "githubCloudOnly": false, - "enabledForGitHubApps": true, + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "category": "teams", + "subcategory": "external-groups" + } + }, + "delete": { + "summary": "Remove the connection between an external group and a team", + "description": "Deletes a connection between a team and an external group.\n\nYou can manage team membership with your IdP using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": [ + "teams" + ], + "operationId": "teams/unlink-external-idp-group-from-team-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Response" + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, "category": "teams", - "subcategory": "discussions" + "subcategory": "external-groups" } } }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { + "/orgs/{org}/teams/{team_slug}/invitations": { "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + "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 Enterprise Cloud member, the `login` field in the return hash will be `null`.\n\n> [!NOTE]\n> 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/get-discussion-in-org", + "operationId": "teams/list-pending-invitations-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations" }, "parameters": [ { @@ -286209,12 +285630,21 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", "schema": { - "type": "integer" + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 } } ], @@ -286224,353 +285654,553 @@ "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } + "type": "array", + "items": { + "title": "Organization Invitation", + "description": "Organization Invitation", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "login": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "role": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "failed_at": { + "type": [ + "string", + "null" + ] + }, + "failed_reason": { + "type": [ + "string", + "null" + ] + }, + "inviter": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } }, - "eyes": { - "type": "integer" + "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" + ] + }, + "team_count": { + "type": "integer" + }, + "node_id": { + "type": "string", + "examples": [ + "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + ] + }, + "invitation_teams_url": { + "type": "string", + "examples": [ + "\"https://api.github.com/organizations/16/invitations/1/teams\"" + ] + }, + "invitation_source": { + "type": "string", + "examples": [ + "\"member\"" + ] + } + }, + "required": [ + "id", + "login", + "email", + "role", + "created_at", + "inviter", + "team_count", + "invitation_teams_url", + "node_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 1, + "login": "monalisa", + "node_id": "MDQ6VXNlcjE=", + "email": "octocat@github.com", + "role": "direct_member", + "created_at": "2016-11-30T06:46:10-08:00", + "failed_at": "", + "failed_reason": "", + "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 }, - "rocket": { - "type": "integer" - } + "team_count": 2, + "invitation_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", + "invitation_source": "member" + } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" + } + } + }, + "/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/enterprise-cloud@latest//rest/teams/members#list-team-members" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role", + "description": "Filters members returned by their role in the team.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "member", + "maintainer", + "all" + ], + "default": "all" + } + }, + { + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] }, - "required": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "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" + ] + } }, "examples": { "default": { - "value": { - "author": { + "value": [ + { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", @@ -286589,57 +286219,146 @@ "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", - "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 } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" + } + } + }, + "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team).", + "tags": [ + "teams" + ], + "operationId": "teams/get-membership-for-user-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "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", + "type": "string", + "examples": [ + "member" + ] + }, + "state": { + "description": "The state of the user's membership in the team.", + "type": "string", + "enum": [ + "active", + "pending" + ] + } + }, + "required": [ + "role", + "state", + "url" + ] + }, + "examples": { + "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" } } } } } + }, + "404": { + "description": "if user has no team membership" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" } }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "put": { + "summary": "Add or update team membership for a user", + "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//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]\n> 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/update-discussion-in-org", + "operationId": "teams/add-or-update-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user" }, "parameters": [ { @@ -286661,12 +286380,12 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", + "name": "username", + "description": "The handle for the GitHub user account.", "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } } ], @@ -286677,20 +286396,22 @@ "schema": { "type": "object", "properties": { - "title": { - "type": "string", - "description": "The discussion post's title." - }, - "body": { + "role": { "type": "string", - "description": "The discussion post's body text." + "description": "The role that this user should have in the team.", + "enum": [ + "member", + "maintainer" + ], + "default": "member" } } }, "examples": { "default": { + "summary": "Add or update team membership for an organization member", "value": { - "title": "Welcome to our first team post" + "role": "maintainer" } } } @@ -286703,595 +286424,78 @@ "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Team Membership", + "description": "Team Membership", "type": "object", "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { + "url": { "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] + "format": "uri" }, - "last_edited_at": { - "type": [ - "string", - "null" + "role": { + "description": "The role of the user in the team.", + "enum": [ + "member", + "maintainer" ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { + "default": "member", "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "member" ] }, - "url": { + "state": { + "description": "The state of the user's membership in the team.", "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" + "enum": [ + "active", + "pending" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", + "role", + "state", "url" ] }, "examples": { - "default": { + "response-if-users-membership-with-team-is-now-pending": { + "summary": "Response if user's membership with team is now pending", "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", - "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 - } + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "pending" } } } } } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "403": { + "description": "Forbidden if team synchronization is set up" }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" + "422": { + "description": "Unprocessable Entity if you attempt to add an organization to a team" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" - } - } - }, - "/orgs/{org}/teams/{team_slug}/external-groups": { - "get": { - "summary": "List a connection between an external group and a team", - "description": "Lists a connection between a team and an external group.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", - "tags": [ - "teams" - ], - "operationId": "teams/list-linked-external-idp-groups-to-team-for-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "ExternalGroups", - "description": "A list of external groups available to be connected to a team", - "type": "object", - "properties": { - "groups": { - "description": "An array of external groups available to be mapped to a team", - "type": "array", - "items": { - "type": "object", - "required": [ - "group_id", - "group_name", - "updated_at" - ], - "properties": { - "group_id": { - "description": "The internal ID of the group", - "type": "integer", - "examples": [ - 1 - ] - }, - "group_name": { - "description": "The display name of the group", - "type": "string", - "examples": [ - "group-azuread-test" - ] - }, - "updated_at": { - "description": "The time of the last update for this group", - "type": "string", - "examples": [ - "2019-06-03 22:27:15:000 -700" - ] - } - } - }, - "examples": [ - { - "group_id": 1, - "group_name": "group-azuread-test", - "updated_at": "2021-01-03 22:27:15:000 -700" - }, - { - "group_id": 2, - "group_name": "group-azuread-test2", - "updated_at": "2021-06-03 22:27:15:000 -700" - } - ] - } - } - }, - "examples": { - "default": { - "value": { - "groups": [ - { - "group_id": "123", - "group_name": "Octocat admins", - "updated_at": "2021-01-24T11:31:04-06:00" - }, - { - "group_id": "456", - "group_name": "Octocat docs members", - "updated_at": "2021-03-24T11:31:04-06:00" - } - ] - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": true, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "external-groups" + "subcategory": "members" } }, - "patch": { - "summary": "Update the connection between an external group and a team", - "description": "Creates a connection between a team and an external group. Only one external group can be linked to a team.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", + "delete": { + "summary": "Remove team membership for a user", + "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> 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/link-external-idp-group-to-team-for-org", + "operationId": "teams/remove-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user" }, "parameters": [ { @@ -287311,238 +286515,10 @@ "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "group_id": { - "type": "integer", - "description": "External Group Id", - "examples": [ - 1 - ] - } - }, - "required": [ - "group_id" - ] - }, - "examples": { - "default": { - "value": { - "group_id": 123 - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "ExternalGroup", - "description": "Information about an external group's usage and its members", - "type": "object", - "required": [ - "group_id", - "group_name", - "teams", - "members" - ], - "properties": { - "group_id": { - "description": "The internal ID of the group", - "type": "integer", - "examples": [ - 1 - ] - }, - "group_name": { - "description": "The display name for the group", - "type": "string", - "examples": [ - "group-azuread-test" - ] - }, - "updated_at": { - "description": "The date when the group was last updated_at", - "type": "string", - "examples": [ - "2021-01-03 22:27:15:000 -700" - ] - }, - "teams": { - "description": "An array of teams linked to this group", - "type": "array", - "items": { - "type": "object", - "required": [ - "team_id", - "team_name" - ], - "properties": { - "team_id": { - "description": "The id for a team", - "type": "integer", - "examples": [ - 1 - ] - }, - "team_name": { - "description": "The name of the team", - "type": "string", - "examples": [ - "team-test" - ] - } - } - }, - "examples": [ - { - "team_id": 1, - "team_name": "team-test" - }, - { - "team_id": 2, - "team_name": "team-test2" - } - ] - }, - "members": { - "description": "An array of external members linked to this group", - "type": "array", - "items": { - "type": "object", - "required": [ - "member_id", - "member_login", - "member_name", - "member_email" - ], - "properties": { - "member_id": { - "description": "The internal user ID of the identity", - "type": "integer", - "examples": [ - 1 - ] - }, - "member_login": { - "description": "The handle/login for the user", - "type": "string", - "examples": [ - "mona-lisa_eocsaxrs" - ] - }, - "member_name": { - "description": "The user display name/profile name", - "type": "string", - "examples": [ - "Mona Lisa" - ] - }, - "member_email": { - "description": "An email attached to a user", - "type": "string", - "examples": [ - "mona_lisa@github.com" - ] - } - } - }, - "examples": [ - { - "member_id": 1, - "member_login": "mona-lisa_eocsaxrs", - "member_name": "Mona Lisa", - "member_email": "mona_lisa@github.com" - }, - { - "member_id": 2, - "member_login": "octo-lisa_eocsaxrs", - "member_name": "Octo Lisa", - "member_email": "octo_lisa@github.com" - } - ] - } - } - }, - "examples": { - "default": { - "value": { - "group_id": "123", - "group_name": "Octocat admins", - "updated_at": "2021-01-24T11:31:04-06:00", - "teams": [ - { - "team_id": 1, - "team_name": "team-test" - }, - { - "team_id": 2, - "team_name": "team-test2" - } - ], - "members": [ - { - "member_id": 1, - "member_login": "mona-lisa_eocsaxrs", - "member_name": "Mona Lisa", - "member_email": "mona_lisa@github.com" - }, - { - "member_id": 2, - "member_login": "octo-lisa_eocsaxrs", - "member_name": "Octo Lisa", - "member_email": "octo_lisa@github.com" - } - ] - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": true, - "enabledForGitHubApps": false, - "category": "teams", - "subcategory": "external-groups" - } - }, - "delete": { - "summary": "Remove the connection between an external group and a team", - "description": "Deletes a connection between a team and an external group.\n\nYou can manage team membership with your IdP using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", - "tags": [ - "teams" - ], - "operationId": "teams/unlink-external-idp-group-from-team-for-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, { - "name": "team_slug", - "description": "The slug of the team name.", + "name": "username", + "description": "The handle for the GitHub user account.", "in": "path", "required": true, "schema": { @@ -287553,27 +286529,30 @@ "responses": { "204": { "description": "Response" + }, + "403": { + "description": "Forbidden if team synchronization is set up" } }, "x-github": { - "githubCloudOnly": true, - "enabledForGitHubApps": false, + "githubCloudOnly": false, + "enabledForGitHubApps": true, "category": "teams", - "subcategory": "external-groups" + "subcategory": "members" } } }, - "/orgs/{org}/teams/{team_slug}/invitations": { + "/orgs/{org}/teams/{team_slug}/repos": { "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 Enterprise Cloud member, the `login` field in the return hash will be `null`.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`.", + "summary": "List team repositories", + "description": "Lists a team's repositories visible to the authenticated user.\n\n> [!NOTE]\n> 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-pending-invitations-in-org", + "operationId": "teams/list-repos-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories" }, "parameters": [ { @@ -287621,45 +286600,36 @@ "schema": { "type": "array", "items": { - "title": "Organization Invitation", - "description": "Organization Invitation", + "title": "Minimal Repository", + "description": "Minimal Repository", "type": "object", "properties": { "id": { "type": "integer", - "format": "int64" - }, - "login": { - "type": [ - "string", - "null" + "format": "int64", + "examples": [ + 1296269 ] }, - "email": { - "type": [ - "string", - "null" + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" ] }, - "role": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "failed_at": { - "type": [ - "string", - "null" + "name": { + "type": "string", + "examples": [ + "Hello-World" ] }, - "failed_reason": { - "type": [ - "string", - "null" + "full_name": { + "type": "string", + "examples": [ + "octocat/Hello-World" ] }, - "inviter": { + "owner": { "title": "Simple User", "description": "A GitHub user.", "type": "object", @@ -287827,1053 +286797,118 @@ "url" ] }, - "team_count": { - "type": "integer" - }, - "node_id": { - "type": "string", - "examples": [ - "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" - ] + "private": { + "type": "boolean" }, - "invitation_teams_url": { + "html_url": { "type": "string", + "format": "uri", "examples": [ - "\"https://api.github.com/organizations/16/invitations/1/teams\"" + "https://github.com/octocat/Hello-World" ] }, - "invitation_source": { - "type": "string", - "examples": [ - "\"member\"" - ] - } - }, - "required": [ - "id", - "login", - "email", - "role", - "created_at", - "inviter", - "team_count", - "invitation_teams_url", - "node_id" - ] - } - }, - "examples": { - "default": { - "value": [ - { - "id": 1, - "login": "monalisa", - "node_id": "MDQ6VXNlcjE=", - "email": "octocat@github.com", - "role": "direct_member", - "created_at": "2016-11-30T06:46:10-08:00", - "failed_at": "", - "failed_reason": "", - "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_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", - "invitation_source": "member" - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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/enterprise-cloud@latest//rest/teams/members#list-team-members" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "role", - "description": "Filters members returned by their role in the team.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "member", - "maintainer", - "all" - ], - "default": "all" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { + "description": { "type": [ "string", "null" + ], + "examples": [ + "This your first repo!" ] }, - "email": { - "type": [ - "string", - "null" - ] + "fork": { + "type": "boolean" }, - "login": { + "url": { "type": "string", + "format": "uri", "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 + "https://api.github.com/repos/octocat/Hello-World" ] }, - "node_id": { + "archive_url": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" + "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" ] }, - "avatar_url": { + "assignees_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/images/error/octocat_happy.gif" + "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" ] }, - "gravatar_id": { - "type": [ - "string", - "null" - ], + "blobs_url": { + "type": "string", "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" ] }, - "url": { + "branches_url": { "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" ] }, - "html_url": { + "collaborators_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" ] }, - "followers_url": { + "comments_url": { "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "http://api.github.com/repos/octocat/Hello-World/comments{/number}" ] }, - "following_url": { + "commits_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" ] }, - "gists_url": { + "compare_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" ] }, - "starred_url": { + "contents_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" ] }, - "subscriptions_url": { + "contributors_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "http://api.github.com/repos/octocat/Hello-World/contributors" ] }, - "organizations_url": { + "deployments_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "http://api.github.com/repos/octocat/Hello-World/deployments" ] }, - "repos_url": { + "downloads_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "http://api.github.com/repos/octocat/Hello-World/downloads" ] }, "events_url": { "type": "string", + "format": "uri", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "http://api.github.com/repos/octocat/Hello-World/events" ] }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - }, - "examples": { - "default": { - "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 - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team).", - "tags": [ - "teams" - ], - "operationId": "teams/get-membership-for-user-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } - } - } - } - }, - "404": { - "description": "if user has no team membership" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - }, - "put": { - "summary": "Add or update team membership for a user", - "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//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]\n> 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/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "role": { - "type": "string", - "description": "The role that this user should have in the team.", - "enum": [ - "member", - "maintainer" - ], - "default": "member" - } - } - }, - "examples": { - "default": { - "summary": "Add or update team membership for an organization member", - "value": { - "role": "maintainer" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } - } - } - } - }, - "403": { - "description": "Forbidden if team synchronization is set up" - }, - "422": { - "description": "Unprocessable Entity if you attempt to add an organization to a team" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - }, - "delete": { - "summary": "Remove team membership for a user", - "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> 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/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "403": { - "description": "Forbidden if team synchronization is set up" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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/enterprise-cloud@latest//rest/teams/teams#list-team-repositories" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Minimal Repository", - "description": "Minimal Repository", - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1296269 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" - ] - }, - "name": { - "type": "string", - "examples": [ - "Hello-World" - ] - }, - "full_name": { - "type": "string", - "examples": [ - "octocat/Hello-World" - ] - }, - "owner": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "This your first repo!" - ] - }, - "fork": { - "type": "boolean" - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/repos/octocat/Hello-World" - ] - }, - "archive_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" - ] - }, - "assignees_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" - ] - }, - "blobs_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" - ] - }, - "branches_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" - ] - }, - "collaborators_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" - ] - }, - "comments_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/comments{/number}" - ] - }, - "commits_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" - ] - }, - "compare_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" - ] - }, - "contents_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" - ] - }, - "contributors_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contributors" - ] - }, - "deployments_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/deployments" - ] - }, - "downloads_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/downloads" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/events" - ] - }, - "forks_url": { + "forks_url": { "type": "string", "format": "uri", "examples": [ @@ -694580,1752 +692615,122 @@ "type": "string" }, "documentation_url": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "search", - "subcategory": "search" - } - } - }, - "/teams/{team_id}": { - "get": { - "summary": "Get a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } - } - } - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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]\n> 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/enterprise-cloud@latest//rest/teams/teams#update-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "notification_setting": { - "type": "string", - "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ] - }, - "permission": { - "type": "string", - "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - "enum": [ - "pull", - "push", - "admin" - ], - "default": "pull" - }, - "parent_team_id": { - "type": [ - "integer", - "null" - ], - "description": "The ID of a team to set as the parent team." - } - }, - "required": [ - "name" - ] - }, - "examples": { - "default": { - "value": { - "name": "new team name", - "description": "new team description", - "privacy": "closed", - "notification_setting": "notifications_enabled" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response when the updated information already exists", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } + "type": "string" } } } } } }, - "201": { + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "search", + "subcategory": "search" + } + } + }, + "/teams/{team_id}": { + "get": { + "summary": "Get a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint.", + "tags": [ + "teams" + ], + "operationId": "teams/get-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-legacy" + }, + "parameters": [ + { + "name": "team_id", + "description": "The unique identifier of the team.", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { "description": "Response", "content": { "application/json": { @@ -697102,245 +693507,6 @@ } } } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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/enterprise-cloud@latest//rest/teams/teams#delete-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } } }, "x-github": { @@ -697352,501 +693518,17 @@ "subcategory": "teams" }, "deprecated": true - } - }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "direction", - "description": "The direction to sort the results by.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "desc" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - } - }, - "examples": { - "default": { - "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", - "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 - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "patch": { + "summary": "Update a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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]\n> With nested teams, the `privacy` for parent teams cannot be `secret`.", "tags": [ "teams" ], - "operationId": "teams/create-discussion-legacy", + "operationId": "teams/update-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team-legacy" }, "parameters": [ { @@ -697866,30 +693548,59 @@ "schema": { "type": "object", "properties": { - "title": { + "name": { "type": "string", - "description": "The discussion post's title." + "description": "The name of the team." }, - "body": { + "description": { "type": "string", - "description": "The discussion post's body text." + "description": "The description of the team." }, - "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 + "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" + ] + }, + "notification_setting": { + "type": "string", + "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ] + }, + "permission": { + "type": "string", + "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + "enum": [ + "pull", + "push", + "admin" + ], + "default": "pull" + }, + "parent_team_id": { + "type": [ + "integer", + "null" + ], + "description": "The ID of a team to set as the parent team." } }, "required": [ - "title", - "body" + "name" ] }, "examples": { "default": { "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "name": "new team name", + "description": "new team description", + "privacy": "closed", + "notification_setting": "notifications_enabled" } } } @@ -697897,495 +693608,120 @@ } }, "responses": { - "201": { - "description": "Response", + "200": { + "description": "Response when the updated information already exists", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", "examples": [ - "

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

" + 42 ] }, - "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.", + "node_id": { "type": "string", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "MDQ6VGVhbTE=" ] }, - "created_at": { + "url": { + "description": "URL for the team", "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1" ] }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, "html_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" + "https://github.com/orgs/rails/teams/core" ] }, - "node_id": { + "name": { + "description": "Name of the team", "type": "string", "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + "Developers" ] }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", + "slug": { + "type": "string", "examples": [ - 42 + "justice-league" ] }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", + "description": { + "type": [ + "string", + "null" + ], "examples": [ - true + "A great team." ] }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], "examples": [ - true + "closed" ] }, - "team_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], "examples": [ - "https://api.github.com/organizations/1/team/2343027" + "notifications_enabled" ] }, - "title": { - "description": "The title of the discussion.", + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "How can we improve our workflow?" + "push" ] }, - "updated_at": { + "members_url": { "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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", - "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 - } - } - } - } - } - } - } - }, - "x-github": { - "triggersNotification": true, - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -698393,472 +693729,751 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" } } } } } } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "title": "Welcome to our first team post" - } - } - } - } - } - }, - "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "author": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Developers" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], + "examples": [ + "notifications_enabled" + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "push" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -698866,361 +694481,763 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" + } + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } } } } } } } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } } }, "x-github": { @@ -699229,20 +695246,20 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true }, "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "summary": "Delete a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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-discussion-legacy", + "operationId": "teams/delete-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team-legacy" }, "parameters": [ { @@ -699253,20 +695270,112 @@ "schema": { "type": "integer" } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } } ], "responses": { "204": { "description": "Response" + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } } }, "x-github": { @@ -699275,7 +695384,7 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true } diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml index 493f491ac..9fd75a573 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -1079,7 +1079,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/global-advisories#get-a-global-security-advisory parameters: - - &729 + - &726 name: ghsa_id description: The GHSA (GitHub Security Advisory) identifier of the advisory. in: path @@ -1808,7 +1808,7 @@ paths: application/json: schema: *3 application/scim+json: - schema: &739 + schema: &736 title: Scim Error description: Scim Error type: object @@ -9260,7 +9260,7 @@ paths: value: days: 90 maximum_allowed_days: 365 - '401': &740 + '401': &737 description: Authorization failure '404': *6 x-github: @@ -13533,7 +13533,7 @@ paths: description: The GitHub URL of the alert resource. format: uri readOnly: true - instances_url: &514 + instances_url: &511 type: string description: The REST API URL for fetching the list of instances for an alert. @@ -13569,7 +13569,7 @@ paths: format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissed_reason: &515 + dismissed_reason: &512 type: - string - 'null' @@ -13580,14 +13580,14 @@ paths: - won't fix - used in tests - - dismissed_comment: &516 + dismissed_comment: &513 type: - string - 'null' description: The dismissal comment associated with the dismissal of the alert. maxLength: 280 - rule: &517 + rule: &514 type: object properties: id: @@ -13648,7 +13648,7 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: &518 + tool: &515 type: object properties: name: *109 @@ -13659,26 +13659,26 @@ paths: description: The version of the tool used to generate the code scanning analysis. guid: *110 - most_recent_instance: &519 + most_recent_instance: &516 type: object properties: - ref: &512 + ref: &509 type: string description: |- The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, `refs/heads/` or simply ``. - analysis_key: &529 + analysis_key: &526 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. - environment: &530 + environment: &527 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. - category: &531 + category: &528 type: string description: Identifies the configuration under which the analysis was executed. Used to distinguish between multiple @@ -13692,7 +13692,7 @@ paths: properties: text: type: string - location: &532 + location: &529 type: object description: Describe a region within a file for the alert. properties: @@ -13713,7 +13713,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: &533 + items: &530 type: - string - 'null' @@ -17488,7 +17488,7 @@ paths: Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. schema: type: string - - &570 + - &567 name: has in: query description: |- @@ -17605,7 +17605,7 @@ paths: - direct - transitive - - security_advisory: &571 + security_advisory: &568 type: object description: Details for the GitHub Security Advisory. readOnly: true @@ -17841,7 +17841,7 @@ paths: dismissal. maxLength: 280 fixed_at: *134 - auto_dismissed_at: &572 + auto_dismissed_at: &569 type: - string - 'null' @@ -17849,7 +17849,7 @@ paths: ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissal_request: &573 + dismissal_request: &570 title: Dependabot alert dismissal request description: Information about an active dismissal request for this Dependabot alert. @@ -21393,7 +21393,7 @@ paths: - object rules: type: array - items: &695 + items: &692 title: Repository Rule type: object description: A repository rule. @@ -21402,7 +21402,7 @@ paths: - *165 - *166 - *167 - - &693 + - &690 title: merge_queue description: Merges must be performed via a merge queue. type: object @@ -21962,14 +21962,14 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: &707 + state: &704 description: Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. type: string enum: - open - resolved - resolution: &708 + resolution: &705 type: - string - 'null' @@ -22076,14 +22076,14 @@ paths: first_location_detected: anyOf: - type: 'null' - - &709 + - &706 description: 'Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request. ' oneOf: - - &711 + - &708 description: Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. @@ -22140,7 +22140,7 @@ paths: - blob_url - commit_sha - commit_url - - &712 + - &709 description: Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. @@ -22201,7 +22201,7 @@ paths: - page_url - commit_sha - commit_url - - &713 + - &710 description: Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. @@ -22216,7 +22216,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_title_url - - &714 + - &711 description: Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. @@ -22231,7 +22231,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_body_url - - &715 + - &712 description: Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. @@ -22246,7 +22246,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - issue_comment_url - - &716 + - &713 description: Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. @@ -22261,7 +22261,7 @@ paths: - https://github.com/community/community/discussions/39082 required: - discussion_title_url - - &717 + - &714 description: Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. @@ -22276,7 +22276,7 @@ paths: - https://github.com/community/community/discussions/39082#discussion-4566270 required: - discussion_body_url - - &718 + - &715 description: Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. @@ -22291,7 +22291,7 @@ paths: - https://github.com/community/community/discussions/39082#discussioncomment-4158232 required: - discussion_comment_url - - &719 + - &716 description: Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. @@ -22306,7 +22306,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_title_url - - &720 + - &717 description: Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. @@ -22321,7 +22321,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_body_url - - &721 + - &718 description: Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. @@ -22336,7 +22336,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - pull_request_comment_url - - &722 + - &719 description: Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. @@ -22351,7 +22351,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80 required: - pull_request_review_url - - &723 + - &720 description: Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull @@ -25693,7 +25693,7 @@ paths: properties: action: type: string - discussion: &846 + discussion: &841 title: Discussion description: A Discussion in a repository. type: object @@ -26479,7 +26479,7 @@ paths: - hooray - eyes - rocket - sub_issues_summary: &767 + sub_issues_summary: &764 title: Sub-issues Summary type: object properties: @@ -26500,7 +26500,7 @@ paths: - string - 'null' format: uri - issue_dependencies_summary: &768 + issue_dependencies_summary: &765 title: Issue Dependencies Summary type: object properties: @@ -26519,7 +26519,7 @@ paths: - total_blocking issue_field_values: type: array - items: &769 + items: &766 title: Issue Field Value description: A value assigned to an issue field type: object @@ -26632,7 +26632,7 @@ paths: action: type: string issue: *213 - comment: &630 + comment: &627 title: Issue Comment description: Comments provide a way for people to collaborate on an issue. @@ -27355,7 +27355,7 @@ paths: type: string release: allOf: - - &686 + - &683 title: Release description: A release. type: object @@ -27437,7 +27437,7 @@ paths: author: *4 assets: type: array - items: &687 + items: &684 title: Release Asset description: Data related to a release. type: object @@ -28028,7 +28028,7 @@ paths: url: type: string format: uri - user: &777 + user: &772 title: Public User description: Public User type: object @@ -31385,14 +31385,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-events-for-a-network-of-repositories parameters: - - &441 + - &438 name: owner description: The account owner of the repository. The name is not case sensitive. in: path required: true schema: type: string - - &442 + - &439 name: repo description: The name of the repository without the `.git` extension. The name is not case sensitive. @@ -31454,7 +31454,7 @@ paths: '404': *6 '403': *27 '304': *35 - '301': &447 + '301': &444 description: Moved permanently content: application/json: @@ -31476,7 +31476,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#list-notifications-for-the-authenticated-user parameters: - - &660 + - &657 name: all description: If `true`, show notifications marked as read. in: query @@ -31484,7 +31484,7 @@ paths: schema: type: boolean default: false - - &661 + - &658 name: participating description: If `true`, only shows notifications in which the user is directly participating or mentioned. @@ -31494,7 +31494,7 @@ paths: type: boolean default: false - *219 - - &662 + - &659 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: @@ -32038,7 +32038,7 @@ paths: - url - subscription_url examples: - default: &663 + default: &660 value: - id: '1' repository: @@ -33167,7 +33167,7 @@ paths: type: array items: *150 examples: - default: &669 + default: &666 value: - property_name: environment value: production @@ -33217,7 +33217,7 @@ paths: required: - properties examples: - default: &670 + default: &667 value: properties: - property_name: environment @@ -34108,7 +34108,7 @@ paths: type: integer repository_cache_usages: type: array - items: &454 + items: &451 title: Actions Cache Usage by repository description: GitHub Actions Cache Usage by repository. type: object @@ -36231,7 +36231,7 @@ paths: type: array items: *273 examples: - default: &780 + default: &775 value: total_count: 1 repositories: @@ -37275,7 +37275,7 @@ paths: description: Response content: application/json: - schema: &474 + schema: &471 title: ActionsPublicKey description: The public key used for setting Actions Secrets. type: object @@ -37310,7 +37310,7 @@ paths: - key_id - key examples: - default: &475 + default: &472 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -37723,7 +37723,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-organization-variables parameters: - *85 - - &459 + - &456 name: per_page description: The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." @@ -38963,12 +38963,12 @@ paths: required: - subject_digests examples: - default: &807 + default: &802 value: subject_digests: - sha256:abc123 - sha512:def456 - withPredicateType: &808 + withPredicateType: &803 value: subject_digests: - sha256:abc123 @@ -39027,7 +39027,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: &809 + default: &804 value: attestations_subject_digests: - sha256:abc: @@ -39376,7 +39376,7 @@ paths: initiator: type: string examples: - default: &488 + default: &485 value: attestations: - bundle: @@ -40298,7 +40298,7 @@ paths: be returned. in: query required: false - schema: &513 + schema: &510 type: string description: Severity of a code scanning alert. enum: @@ -41358,7 +41358,7 @@ paths: machine: anyOf: - type: 'null' - - &545 + - &542 type: object title: Codespace machine description: A description of the machine powering a codespace. @@ -42310,7 +42310,7 @@ paths: - updated_at - visibility examples: - default: &546 + default: &543 value: total_count: 2 secrets: @@ -42348,7 +42348,7 @@ paths: description: Response content: application/json: - schema: &547 + schema: &544 title: CodespacesPublicKey description: The public key used for setting Codespaces secrets. type: object @@ -42383,7 +42383,7 @@ paths: - key_id - key examples: - default: &548 + default: &545 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -42415,7 +42415,7 @@ paths: application/json: schema: *316 examples: - default: &550 + default: &547 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -44294,7 +44294,7 @@ paths: description: Response content: application/json: - schema: &576 + schema: &573 title: DependabotPublicKey description: The public key used for setting Dependabot Secrets. type: object @@ -44313,7 +44313,7 @@ paths: - key_id - key examples: - default: &577 + default: &574 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -44643,7 +44643,7 @@ paths: subcategory: alert-dismissal-requests parameters: - *85 - - &585 + - &582 name: reviewer description: Filter alert dismissal requests by the handle of the GitHub user who reviewed the dismissal request. @@ -44651,7 +44651,7 @@ paths: required: false schema: type: string - - &586 + - &583 name: requester description: Filter alert dismissal requests by the handle of the GitHub user who requested the dismissal. @@ -44659,7 +44659,7 @@ paths: required: false schema: type: string - - &587 + - &584 name: time_period description: |- The time period to filter by. @@ -44675,7 +44675,7 @@ paths: - week - month default: month - - &588 + - &585 name: request_status description: Filter alert dismissal requests by status. When specified, only requests with this status will be returned. @@ -44700,7 +44700,7 @@ paths: application/json: schema: type: array - items: &589 + items: &586 title: Code scanning alert dismissal request description: Alert dismisal request made by a user asking to dismiss a code scanning alert. @@ -44863,7 +44863,7 @@ paths: examples: - https://github.com/octo-org/smile/code-scanning/alerts/1 examples: - default: &590 + default: &587 value: - id: 21 number: 42 @@ -44981,7 +44981,7 @@ paths: application/json: schema: type: array - items: &591 + items: &588 title: Dependabot alert dismissal request description: Alert dismissal request made by a user asking to dismiss a Dependabot alert. @@ -45104,7 +45104,7 @@ paths: examples: - https://github.com/octo-org/smile/security/dependabot/1 examples: - default: &592 + default: &589 value: - id: 21 number: 42 @@ -45206,7 +45206,7 @@ paths: application/json: schema: type: array - items: &593 + items: &590 title: Secret scanning alert dismissal request description: A dismissal request made by a user asking to close a secret scanning alert in this repository. @@ -45333,7 +45333,7 @@ paths: examples: - https://github.com/octo-org/smile/security/secret-scanning/17 examples: - default: &594 + default: &591 value: - id: 21 number: 42 @@ -45679,7 +45679,7 @@ paths: description: Response content: application/json: - schema: &438 + schema: &435 title: ExternalGroup description: Information about an external group's usage and its members type: object @@ -45769,7 +45769,7 @@ paths: member_name: Octo Lisa member_email: octo_lisa@github.com examples: - default: &439 + default: &436 value: group_id: '123' group_name: Octocat admins @@ -45824,7 +45824,7 @@ paths: description: Response content: application/json: - schema: &436 + schema: &433 title: ExternalGroups description: A list of external groups available to be connected to a team @@ -45864,7 +45864,7 @@ paths: group_name: group-azuread-test2 updated_at: 2021-06-03 22:27:15:000 -700 examples: - default: &437 + default: &434 value: groups: - group_id: '123' @@ -47193,7 +47193,7 @@ paths: application/json: schema: *20 examples: - default: &625 + default: &622 value: id: 1 account: @@ -47421,7 +47421,7 @@ paths: required: true content: application/json: - schema: &626 + schema: &623 title: Interaction Restrictions description: Limit interactions to a specific type of user for a specified duration @@ -48289,7 +48289,7 @@ paths: application/json: schema: *363 examples: - default: &544 + default: &541 value: id: 1 name: monalisa-octocat-hello-world-g4wpq6h95q @@ -49551,7 +49551,7 @@ paths: parameters: - *85 - *369 - - &792 + - &787 name: repo_name description: repo_name parameter in: path @@ -50897,7 +50897,7 @@ paths: - nuget - container - *85 - - &793 + - &788 name: visibility description: |- The selected visibility of the packages. This parameter is optional and only filters an existing result set. @@ -50938,7 +50938,7 @@ paths: default: *374 '403': *27 '401': *23 - '400': &795 + '400': &790 description: The value of `per_page` multiplied by `page` cannot be greater than 10000. x-github: @@ -52764,7 +52764,7 @@ paths: latest_status_update: anyOf: - type: 'null' - - &879 + - &874 title: Projects v2 Status Update description: An status update belonging to a project type: object @@ -53038,7 +53038,7 @@ paths: content: oneOf: - *213 - - &559 + - &556 title: Pull Request Simple description: Pull Request Simple type: object @@ -53283,7 +53283,7 @@ paths: - review_comment - self author_association: *214 - auto_merge: &672 + auto_merge: &669 title: Auto merge description: The status of auto merging a pull request. type: @@ -53665,7 +53665,7 @@ paths: - updated_at - project_url examples: - default: &812 + default: &807 value: - id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -53842,7 +53842,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: &813 + items: &808 type: object properties: name: @@ -53878,7 +53878,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: &814 + iteration_configuration: &809 type: object description: The configuration for iteration fields. properties: @@ -53927,7 +53927,7 @@ paths: value: name: Due date data_type: date - single_select_field: &815 + single_select_field: &810 summary: Create a single select field value: name: Priority @@ -53954,7 +53954,7 @@ paths: description: raw: High priority items html: High priority items - iteration_field: &816 + iteration_field: &811 summary: Create an iteration field value: name: Sprint @@ -53980,7 +53980,7 @@ paths: application/json: schema: *394 examples: - text_field: &817 + text_field: &812 value: id: 24680 node_id: PVTF_lADOABCD2468024680 @@ -53989,7 +53989,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-05-15T08:00:00Z' updated_at: '2022-05-15T08:00:00Z' - number_field: &818 + number_field: &813 value: id: 13579 node_id: PVTF_lADOABCD1357913579 @@ -53998,7 +53998,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-01T14:30:00Z' updated_at: '2022-06-01T14:30:00Z' - date_field: &819 + date_field: &814 value: id: 98765 node_id: PVTF_lADOABCD9876598765 @@ -54007,7 +54007,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-10T09:15:00Z' updated_at: '2022-06-10T09:15:00Z' - single_select_field: &820 + single_select_field: &815 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -54041,7 +54041,7 @@ paths: raw: High priority items created_at: '2022-04-28T12:00:00Z' updated_at: '2022-04-28T12:00:00Z' - iteration_field: &821 + iteration_field: &816 value: id: 11223 node_id: PVTF_lADOABCD1122311223 @@ -54087,7 +54087,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/projects/fields#get-project-field-for-organization parameters: - *391 - - &822 + - &817 name: field_id description: The unique identifier of the field. in: path @@ -54102,7 +54102,7 @@ paths: application/json: schema: *394 examples: - default: &823 + default: &818 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -55239,7 +55239,7 @@ paths: parameters: - *391 - *85 - - &824 + - &819 name: view_number description: The number that identifies the project view. in: path @@ -56009,7 +56009,7 @@ paths: description: Response content: application/json: - schema: &446 + schema: &443 title: Full Repository description: Full Repository type: object @@ -56474,7 +56474,7 @@ paths: description: Whether anonymous git access is allowed. default: true type: boolean - code_of_conduct: &564 + code_of_conduct: &561 title: Code Of Conduct Simple description: Code of Conduct Simple type: object @@ -56588,7 +56588,7 @@ paths: - network_count - subscribers_count examples: - default: &448 + default: &445 value: id: 1296269 node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 @@ -57141,7 +57141,7 @@ paths: - *85 - *17 - *19 - - &694 + - &691 name: targets description: | A comma-separated list of rule targets to filter by. @@ -57357,7 +57357,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/rule-suites#list-organization-rule-suites parameters: - *85 - - &696 + - &693 name: ref description: The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit @@ -57369,14 +57369,14 @@ paths: x-multi-segment: true - *299 - *103 - - &697 + - &694 name: actor_name description: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. in: query schema: type: string - - &698 + - &695 name: rule_suite_result description: The rule suite results to filter on. When specified, only suites with this result will be returned. @@ -57396,7 +57396,7 @@ paths: description: Response content: application/json: - schema: &699 + schema: &696 title: Rule Suites description: Response type: array @@ -57452,7 +57452,7 @@ paths: whether rules would pass or fail if all rules in the rule suite were `active`. examples: - default: &700 + default: &697 value: - id: 21 actor_id: 12 @@ -57496,7 +57496,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/rule-suites#get-an-organization-rule-suite parameters: - *85 - - &701 + - &698 name: rule_suite_id description: |- The unique identifier of the rule suite result. @@ -57512,7 +57512,7 @@ paths: description: Response content: application/json: - schema: &702 + schema: &699 title: Rule Suite description: Response type: object @@ -57619,7 +57619,7 @@ paths: description: The detailed failure message for the rule. Null if the rule passed. examples: - default: &703 + default: &700 value: id: 21 actor_id: 12 @@ -57951,7 +57951,7 @@ paths: - *108 - *19 - *17 - - &705 + - &702 name: before description: A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To @@ -57961,7 +57961,7 @@ paths: required: false schema: type: string - - &706 + - &703 name: after description: A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To @@ -58174,7 +58174,7 @@ paths: application/json: schema: type: array - items: &727 + items: &724 description: A repository security advisory. type: object properties: @@ -58493,7 +58493,7 @@ paths: - private_fork additionalProperties: false examples: - default: &728 + default: &725 value: - ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -59504,7 +59504,7 @@ paths: description: Response content: application/json: - schema: &443 + schema: &440 title: GroupMapping description: External Groups to be mapped to a team for membership type: object @@ -59556,7 +59556,7 @@ paths: group_description: Another group of Developers working on AzureAD SAML SSO examples: - default: &444 + default: &441 value: groups: - group_id: '123' @@ -60371,464 +60371,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions - parameters: - - *85 - - *210 - - *108 - - *17 - - *19 - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: &433 - title: Team Discussion - description: A team discussion is a persistent record of a free-form - conversation within a team. - type: object - properties: - author: - anyOf: - - type: 'null' - - *4 - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned - for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted - to team members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: *215 - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url - examples: - default: &771 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - headers: - Link: *45 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion - parameters: - - *85 - - *210 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *433 - examples: - default: &434 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion - parameters: - - *85 - - *210 - - &435 - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: *434 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion - parameters: - - *85 - - *210 - - *435 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: &772 - 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 - 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 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion - parameters: - - *85 - - *210 - - *435 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/external-groups": get: summary: List a connection between an external group and a team @@ -60850,9 +60392,9 @@ paths: description: Response content: application/json: - schema: *436 + schema: *433 examples: - default: *437 + default: *434 x-github: githubCloudOnly: true enabledForGitHubApps: true @@ -60896,9 +60438,9 @@ paths: description: Response content: application/json: - schema: *438 + schema: *435 examples: - default: *439 + default: *436 x-github: githubCloudOnly: true enabledForGitHubApps: false @@ -61039,7 +60581,7 @@ paths: description: Response content: application/json: - schema: &440 + schema: &437 title: Team Membership description: Team Membership type: object @@ -61067,7 +60609,7 @@ paths: - state - url examples: - response-if-user-is-a-team-maintainer: &773 + response-if-user-is-a-team-maintainer: &768 summary: Response if user is a team maintainer value: url: https://api.github.com/teams/1/memberships/octocat @@ -61130,9 +60672,9 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - response-if-users-membership-with-team-is-now-pending: &774 + response-if-users-membership-with-team-is-now-pending: &769 summary: Response if user's membership with team is now pending value: url: https://api.github.com/teams/1/memberships/octocat @@ -61239,14 +60781,14 @@ paths: parameters: - *85 - *210 - - *441 - - *442 + - *438 + - *439 responses: '200': description: Alternative response with repository permissions content: application/json: - schema: &775 + schema: &770 title: Team Repository description: A team's access to a repository. type: object @@ -61889,8 +61431,8 @@ paths: parameters: - *85 - *210 - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -61937,8 +61479,8 @@ paths: parameters: - *85 - *210 - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -61971,9 +61513,9 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: - default: *444 + default: *441 x-github: githubCloudOnly: true enabledForGitHubApps: false @@ -62039,7 +61581,7 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: default: value: @@ -62084,7 +61626,7 @@ paths: type: array items: *302 examples: - response-if-child-teams-exist: &776 + response-if-child-teams-exist: &771 value: - id: 2 node_id: MDQ6VGVhbTI= @@ -62238,7 +61780,7 @@ paths: resources: type: object properties: - core: &445 + core: &442 title: Rate Limit type: object properties: @@ -62255,21 +61797,21 @@ paths: - remaining - reset - used - graphql: *445 - search: *445 - code_search: *445 - source_import: *445 - integration_manifest: *445 - code_scanning_upload: *445 - actions_runner_registration: *445 - scim: *445 - dependency_snapshots: *445 - dependency_sbom: *445 - code_scanning_autofix: *445 + graphql: *442 + search: *442 + code_search: *442 + source_import: *442 + integration_manifest: *442 + code_scanning_upload: *442 + actions_runner_registration: *442 + scim: *442 + dependency_snapshots: *442 + dependency_sbom: *442 + code_scanning_autofix: *442 required: - core - search - rate: *445 + rate: *442 required: - rate - resources @@ -62374,14 +61916,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *446 + schema: *443 examples: default-response: summary: Default response @@ -62886,7 +62428,7 @@ paths: status: disabled '403': *27 '404': *6 - '301': *447 + '301': *444 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -62904,8 +62446,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#update-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -63163,10 +62705,10 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 - '307': &449 + default: *445 + '307': &446 description: Temporary Redirect content: application/json: @@ -63195,8 +62737,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#delete-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -63218,7 +62760,7 @@ paths: value: message: Organization members cannot delete repositories. documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#delete-a-repository - '307': *449 + '307': *446 '404': *6 '409': *117 x-github: @@ -63242,11 +62784,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#list-artifacts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - - &466 + - &463 name: name description: The name field of an artifact. When specified, only artifacts with this name will be returned. @@ -63269,7 +62811,7 @@ paths: type: integer artifacts: type: array - items: &450 + items: &447 title: Artifact description: An artifact type: object @@ -63364,7 +62906,7 @@ paths: - expires_at - updated_at examples: - default: &467 + default: &464 value: total_count: 2 artifacts: @@ -63425,9 +62967,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#get-an-artifact parameters: - - *441 - - *442 - - &451 + - *438 + - *439 + - &448 name: artifact_id description: The unique identifier of the artifact. in: path @@ -63439,7 +62981,7 @@ paths: description: Response content: application/json: - schema: *450 + schema: *447 examples: default: value: @@ -63477,9 +63019,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#delete-an-artifact parameters: - - *441 - - *442 - - *451 + - *438 + - *439 + - *448 responses: '204': description: Response @@ -63503,9 +63045,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#download-an-artifact parameters: - - *441 - - *442 - - *451 + - *438 + - *439 + - *448 - name: archive_format in: path required: true @@ -63519,7 +63061,7 @@ paths: 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 - '410': &629 + '410': &626 description: Gone content: application/json: @@ -63544,14 +63086,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-retention-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &452 + schema: &449 title: Actions cache retention limit for a repository description: GitHub Actions cache retention policy for a repository. type: object @@ -63585,13 +63127,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#set-github-actions-cache-retention-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *452 + schema: *449 examples: selected_actions: *42 responses: @@ -63620,14 +63162,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-storage-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &453 + schema: &450 title: Actions cache storage limit for a repository description: GitHub Actions cache storage policy for a repository. type: object @@ -63661,13 +63203,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#set-github-actions-cache-storage-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *453 + schema: *450 examples: selected_actions: *44 responses: @@ -63698,14 +63240,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *454 + schema: *451 examples: default: value: @@ -63731,11 +63273,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-github-actions-caches-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - - &455 + - &452 name: ref description: The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference @@ -63769,7 +63311,7 @@ paths: description: Response content: application/json: - schema: &456 + schema: &453 title: Repository actions caches description: Repository actions caches type: object @@ -63819,7 +63361,7 @@ paths: - total_count - actions_caches examples: - default: &457 + default: &454 value: total_count: 1 actions_caches: @@ -63851,23 +63393,23 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key parameters: - - *441 - - *442 + - *438 + - *439 - name: key description: A key for identifying the cache. in: query required: true schema: type: string - - *455 + - *452 responses: '200': description: Response content: application/json: - schema: *456 + schema: *453 examples: - default: *457 + default: *454 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63887,8 +63429,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id parameters: - - *441 - - *442 + - *438 + - *439 - name: cache_id description: The unique identifier of the GitHub Actions cache. in: path @@ -63919,9 +63461,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#get-a-job-for-a-workflow-run parameters: - - *441 - - *442 - - &458 + - *438 + - *439 + - &455 name: job_id description: The unique identifier of the job. in: path @@ -63933,7 +63475,7 @@ paths: description: Response content: application/json: - schema: &470 + schema: &467 title: Job description: Information of a job execution in a workflow run type: object @@ -64280,9 +63822,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run parameters: - - *441 - - *442 - - *458 + - *438 + - *439 + - *455 responses: '302': description: Response @@ -64310,9 +63852,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run parameters: - - *441 - - *442 - - *458 + - *438 + - *439 + - *455 requestBody: required: false content: @@ -64358,8 +63900,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Status response @@ -64409,8 +63951,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -64473,8 +64015,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-repository-organization-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -64492,7 +64034,7 @@ paths: type: integer secrets: type: array - items: &472 + items: &469 title: Actions Secret description: Set secrets for GitHub Actions. type: object @@ -64513,7 +64055,7 @@ paths: - created_at - updated_at examples: - default: &473 + default: &470 value: total_count: 2 secrets: @@ -64546,9 +64088,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-repository-organization-variables parameters: - - *441 - - *442 - - *459 + - *438 + - *439 + - *456 - *19 responses: '200': @@ -64565,7 +64107,7 @@ paths: type: integer variables: type: array - items: &476 + items: &473 title: Actions Variable type: object properties: @@ -64599,7 +64141,7 @@ paths: - created_at - updated_at examples: - default: &477 + default: &474 value: total_count: 2 variables: @@ -64632,8 +64174,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-github-actions-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64642,7 +64184,7 @@ paths: schema: type: object properties: - enabled: &460 + enabled: &457 type: boolean description: Whether GitHub Actions is enabled on the repository. allowed_actions: *58 @@ -64677,8 +64219,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-github-actions-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -64689,7 +64231,7 @@ paths: schema: type: object properties: - enabled: *460 + enabled: *457 allowed_actions: *58 sha_pinning_required: *59 required: @@ -64722,14 +64264,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &461 + schema: &458 type: object properties: access_level: @@ -64747,7 +64289,7 @@ paths: required: - access_level examples: - default: &462 + default: &459 value: access_level: organization x-github: @@ -64772,15 +64314,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *461 + schema: *458 examples: - default: *462 + default: *459 responses: '204': description: Response @@ -64804,8 +64346,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-artifact-and-log-retention-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64835,8 +64377,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-artifact-and-log-retention-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Empty response for successful settings update @@ -64870,8 +64412,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64898,8 +64440,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -64933,8 +64475,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64962,8 +64504,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -64994,8 +64536,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -65026,8 +64568,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -65059,8 +64601,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-default-workflow-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -65089,8 +64631,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-default-workflow-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Success response @@ -65130,8 +64672,8 @@ paths: in: query schema: type: string - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -65175,8 +64717,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#list-runner-applications-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -65208,8 +64750,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -65283,8 +64825,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '201': description: Response @@ -65320,8 +64862,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '201': description: Response @@ -65351,8 +64893,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '200': @@ -65382,8 +64924,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '204': @@ -65410,8 +64952,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '200': *79 @@ -65436,8 +64978,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 requestBody: required: true @@ -65486,8 +65028,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 requestBody: required: true @@ -65537,8 +65079,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '200': *280 @@ -65568,8 +65110,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 - *281 responses: @@ -65599,9 +65141,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#list-workflow-runs-for-a-repository parameters: - - *441 - - *442 - - &480 + - *438 + - *439 + - &477 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. @@ -65609,7 +65151,7 @@ paths: required: false schema: type: string - - &481 + - &478 name: branch description: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. @@ -65617,7 +65159,7 @@ paths: required: false schema: type: string - - &482 + - &479 name: event description: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events @@ -65626,7 +65168,7 @@ paths: required: false schema: type: string - - &483 + - &480 name: status description: Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status @@ -65653,7 +65195,7 @@ paths: - pending - *17 - *19 - - &484 + - &481 name: created description: Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/enterprise-cloud@latest//search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." @@ -65662,7 +65204,7 @@ paths: schema: type: string format: date-time - - &463 + - &460 name: exclude_pull_requests description: If `true` pull requests are omitted from the response (empty array). @@ -65671,13 +65213,13 @@ paths: schema: type: boolean default: false - - &485 + - &482 name: check_suite_id description: Returns workflow runs with the `check_suite_id` that you specify. in: query schema: type: integer - - &486 + - &483 name: head_sha description: Only returns workflow runs that are associated with the specified `head_sha`. @@ -65700,7 +65242,7 @@ paths: type: integer workflow_runs: type: array - items: &464 + items: &461 title: Workflow Run description: An invocation of a workflow type: object @@ -65878,7 +65420,7 @@ paths: head_commit: anyOf: - type: 'null' - - &508 + - &505 title: Simple Commit description: A commit. type: object @@ -65993,7 +65535,7 @@ paths: - workflow_url - pull_requests examples: - default: &487 + default: &484 value: total_count: 1 workflow_runs: @@ -66229,24 +65771,24 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-a-workflow-run parameters: - - *441 - - *442 - - &465 + - *438 + - *439 + - &462 name: run_id description: The unique identifier of the workflow run. in: path required: true schema: type: integer - - *463 + - *460 responses: '200': description: Response content: application/json: - schema: *464 + schema: *461 examples: - default: &468 + default: &465 value: id: 30433642 name: Build @@ -66487,9 +66029,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#delete-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '204': description: Response @@ -66512,9 +66054,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-the-review-history-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '200': description: Response @@ -66642,9 +66184,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#approve-a-workflow-run-for-a-fork-pull-request parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '201': description: Response @@ -66677,12 +66219,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#list-workflow-run-artifacts parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 - *17 - *19 - - *466 + - *463 responses: '200': description: Response @@ -66698,9 +66240,9 @@ paths: type: integer artifacts: type: array - items: *450 + items: *447 examples: - default: *467 + default: *464 headers: Link: *45 x-github: @@ -66724,25 +66266,25 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-a-workflow-run-attempt parameters: - - *441 - - *442 - - *465 - - &469 + - *438 + - *439 + - *462 + - &466 name: attempt_number description: The attempt number of the workflow run. in: path required: true schema: type: integer - - *463 + - *460 responses: '200': description: Response content: application/json: - schema: *464 + schema: *461 examples: - default: *468 + default: *465 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -66765,10 +66307,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt parameters: - - *441 - - *442 - - *465 - - *469 + - *438 + - *439 + - *462 + - *466 - *17 - *19 responses: @@ -66786,9 +66328,9 @@ paths: type: integer jobs: type: array - items: *470 + items: *467 examples: - default: &471 + default: &468 value: total_count: 1 jobs: @@ -66901,10 +66443,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#download-workflow-run-attempt-logs parameters: - - *441 - - *442 - - *465 - - *469 + - *438 + - *439 + - *462 + - *466 responses: '302': description: Response @@ -66932,9 +66474,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#cancel-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '202': description: Response @@ -66967,9 +66509,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: true content: @@ -67036,9 +66578,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#force-cancel-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '202': description: Response @@ -67071,9 +66613,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#list-jobs-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 - name: filter description: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all @@ -67103,9 +66645,9 @@ paths: type: integer jobs: type: array - items: *470 + items: *467 examples: - default: *471 + default: *468 headers: Link: *45 x-github: @@ -67130,9 +66672,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#download-workflow-run-logs parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '302': description: Response @@ -67159,9 +66701,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#delete-workflow-run-logs parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '204': description: Response @@ -67188,9 +66730,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '200': description: Response @@ -67259,7 +66801,7 @@ paths: items: type: object properties: - type: &595 + type: &592 type: string description: The type of reviewer. enum: @@ -67345,9 +66887,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: true content: @@ -67397,7 +66939,7 @@ paths: application/json: schema: type: array - items: &580 + items: &577 title: Deployment description: A request for a specific ref(branch,sha,tag) to be deployed @@ -67509,7 +67051,7 @@ paths: - created_at - updated_at examples: - default: &581 + default: &578 value: - url: https://api.github.com/repos/octocat/example/deployments/1 id: 1 @@ -67565,9 +67107,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-a-workflow parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: false content: @@ -67612,9 +67154,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: false content: @@ -67669,9 +67211,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-workflow-run-usage parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '200': description: Response @@ -67808,8 +67350,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-repository-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -67827,9 +67369,9 @@ paths: type: integer secrets: type: array - items: *472 + items: *469 examples: - default: *473 + default: *470 headers: Link: *45 x-github: @@ -67854,16 +67396,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *474 + schema: *471 examples: - default: *475 + default: *472 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -67885,17 +67427,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '200': description: Response content: application/json: - schema: *472 + schema: *469 examples: - default: &608 + default: &605 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -67921,8 +67463,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#create-or-update-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 requestBody: required: true @@ -67980,8 +67522,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#delete-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '204': @@ -68007,9 +67549,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-repository-variables parameters: - - *441 - - *442 - - *459 + - *438 + - *439 + - *456 - *19 responses: '200': @@ -68026,9 +67568,9 @@ paths: type: integer variables: type: array - items: *476 + items: *473 examples: - default: *477 + default: *474 headers: Link: *45 x-github: @@ -68051,8 +67593,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#create-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -68104,17 +67646,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#get-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 responses: '200': description: Response content: application/json: - schema: *476 + schema: *473 examples: - default: &609 + default: &606 value: name: USERNAME value: octocat @@ -68140,8 +67682,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#update-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 requestBody: required: true @@ -68184,8 +67726,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#delete-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 responses: '204': @@ -68211,8 +67753,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#list-repository-workflows parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -68230,7 +67772,7 @@ paths: type: integer workflows: type: array - items: &478 + items: &475 title: Workflow description: A GitHub Actions workflow type: object @@ -68348,9 +67890,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#get-a-workflow parameters: - - *441 - - *442 - - &479 + - *438 + - *439 + - &476 name: workflow_id in: path description: The ID of the workflow. You can also pass the workflow file name @@ -68365,7 +67907,7 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: default: value: @@ -68398,9 +67940,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#disable-a-workflow parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '204': description: Response @@ -68425,9 +67967,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#create-a-workflow-dispatch-event parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '204': description: Response @@ -68478,9 +68020,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#enable-a-workflow parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '204': description: Response @@ -68507,19 +68049,19 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#list-workflow-runs-for-a-workflow parameters: - - *441 - - *442 + - *438 + - *439 + - *476 + - *477 + - *478 - *479 - *480 + - *17 + - *19 - *481 + - *460 - *482 - *483 - - *17 - - *19 - - *484 - - *463 - - *485 - - *486 responses: '200': description: Response @@ -68535,9 +68077,9 @@ paths: type: integer workflow_runs: type: array - items: *464 + items: *461 examples: - default: *487 + default: *484 headers: Link: *45 x-github: @@ -68570,9 +68112,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#get-workflow-usage parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '200': description: Response @@ -68633,8 +68175,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-activities parameters: - - *441 - - *442 + - *438 + - *439 - *108 - *17 - *106 @@ -68802,8 +68344,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#list-assignees parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -68840,8 +68382,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#check-if-a-user-can-be-assigned parameters: - - *441 - - *442 + - *438 + - *439 - name: assignee in: path required: true @@ -68877,8 +68419,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/attestations#create-an-attestation parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -68990,8 +68532,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/attestations#list-attestations parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *106 - *107 @@ -69048,7 +68590,7 @@ paths: initiator: type: string examples: - default: *488 + default: *485 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -69068,8 +68610,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#get-all-autolinks-of-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -69077,7 +68619,7 @@ paths: application/json: schema: type: array - items: &489 + items: &486 title: Autolink reference description: An autolink reference. type: object @@ -69136,8 +68678,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#create-an-autolink-reference-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -69176,9 +68718,9 @@ paths: description: response content: application/json: - schema: *489 + schema: *486 examples: - default: &490 + default: &487 value: id: 1 key_prefix: TICKET- @@ -69209,9 +68751,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#get-an-autolink-reference-of-a-repository parameters: - - *441 - - *442 - - &491 + - *438 + - *439 + - &488 name: autolink_id description: The unique identifier of the autolink. in: path @@ -69223,9 +68765,9 @@ paths: description: Response content: application/json: - schema: *489 + schema: *486 examples: - default: *490 + default: *487 '404': *6 x-github: githubCloudOnly: false @@ -69245,9 +68787,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#delete-an-autolink-reference-from-a-repository parameters: - - *441 - - *442 - - *491 + - *438 + - *439 + - *488 responses: '204': description: Response @@ -69271,8 +68813,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response if Dependabot is enabled @@ -69322,8 +68864,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-dependabot-security-updates parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -69344,8 +68886,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-dependabot-security-updates parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -69365,8 +68907,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#list-branches parameters: - - *441 - - *442 + - *438 + - *439 - name: protected description: Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. @@ -69404,7 +68946,7 @@ paths: - url protected: type: boolean - protection: &493 + protection: &490 title: Branch Protection description: Branch Protection type: object @@ -69447,7 +68989,7 @@ paths: required: - contexts - checks - enforce_admins: &496 + enforce_admins: &493 title: Protected Branch Admin Enforced description: Protected Branch Admin Enforced type: object @@ -69464,7 +69006,7 @@ paths: required: - url - enabled - required_pull_request_reviews: &498 + required_pull_request_reviews: &495 title: Protected Branch Pull Request Review description: Protected Branch Pull Request Review type: object @@ -69548,7 +69090,7 @@ paths: required: - dismiss_stale_reviews - require_code_owner_reviews - restrictions: &495 + restrictions: &492 title: Branch Restriction Policy description: Branch Restriction Policy type: object @@ -69841,9 +69383,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#get-a-branch parameters: - - *441 - - *442 - - &494 + - *438 + - *439 + - &491 name: branch description: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-cloud@latest//graphql). @@ -69857,14 +69399,14 @@ paths: description: Response content: application/json: - schema: &504 + schema: &501 title: Branch With Protection description: Branch With Protection type: object properties: name: type: string - commit: &555 + commit: &552 title: Commit description: Commit type: object @@ -69903,7 +69445,7 @@ paths: author: anyOf: - type: 'null' - - &492 + - &489 title: Git User description: Metaproperties for Git author/committer information. @@ -69925,7 +69467,7 @@ paths: committer: anyOf: - type: 'null' - - *492 + - *489 message: type: string examples: @@ -69949,7 +69491,7 @@ paths: required: - sha - url - verification: &615 + verification: &612 title: Verification type: object properties: @@ -70029,7 +69571,7 @@ paths: type: integer files: type: array - items: &566 + items: &563 title: Diff Entry description: Diff Entry type: object @@ -70125,7 +69667,7 @@ paths: - self protected: type: boolean - protection: *493 + protection: *490 protection_url: type: string format: uri @@ -70234,7 +69776,7 @@ paths: contexts: [] checks: [] protection_url: https://api.github.com/repos/octocat/Hello-World/branches/main/protection - '301': *447 + '301': *444 '404': *6 x-github: githubCloudOnly: false @@ -70256,15 +69798,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *493 + schema: *490 examples: default: value: @@ -70458,9 +70000,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -70720,7 +70262,7 @@ paths: url: type: string format: uri - required_status_checks: &501 + required_status_checks: &498 title: Status Check Policy description: Status Check Policy type: object @@ -70879,7 +70421,7 @@ paths: additionalProperties: false required: - enabled - restrictions: *495 + restrictions: *492 required_conversation_resolution: type: object properties: @@ -70991,9 +70533,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71018,17 +70560,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-admin-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: &497 + default: &494 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins enabled: true @@ -71050,17 +70592,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-admin-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *497 + default: *494 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -71079,9 +70621,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-admin-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71106,17 +70648,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-pull-request-review-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: &499 + default: &496 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews dismissal_restrictions: @@ -71212,9 +70754,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-pull-request-review-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71312,9 +70854,9 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: *499 + default: *496 '422': *15 x-github: githubCloudOnly: false @@ -71335,9 +70877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-pull-request-review-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71364,17 +70906,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-commit-signature-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: &500 + default: &497 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures enabled: true @@ -71397,17 +70939,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#create-commit-signature-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *500 + default: *497 '404': *6 x-github: githubCloudOnly: false @@ -71427,9 +70969,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-commit-signature-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71454,17 +70996,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-status-checks-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *501 + schema: *498 examples: - default: &502 + default: &499 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks strict: true @@ -71490,9 +71032,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-status-check-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71544,9 +71086,9 @@ paths: description: Response content: application/json: - schema: *501 + schema: *498 examples: - default: *502 + default: *499 '404': *6 '422': *15 x-github: @@ -71568,9 +71110,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-status-check-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71594,9 +71136,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-all-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -71630,9 +71172,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71699,9 +71241,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71765,9 +71307,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: content: application/json: @@ -71833,15 +71375,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *495 + schema: *492 examples: default: value: @@ -71932,9 +71474,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71957,9 +71499,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -71969,7 +71511,7 @@ paths: type: array items: *5 examples: - default: &503 + default: &500 value: - id: 1 slug: octoapp @@ -72026,9 +71568,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-app-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72062,7 +71604,7 @@ paths: type: array items: *5 examples: - default: *503 + default: *500 '422': *15 x-github: githubCloudOnly: false @@ -72083,9 +71625,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-app-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72119,7 +71661,7 @@ paths: type: array items: *5 examples: - default: *503 + default: *500 '422': *15 x-github: githubCloudOnly: false @@ -72140,9 +71682,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-app-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72176,7 +71718,7 @@ paths: type: array items: *5 examples: - default: *503 + default: *500 '422': *15 x-github: githubCloudOnly: false @@ -72198,9 +71740,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -72230,9 +71772,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-team-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -72291,9 +71833,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-team-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -72352,9 +71894,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-team-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: content: application/json: @@ -72413,9 +71955,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-users-with-access-to-the-protected-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -72449,9 +71991,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-user-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72509,9 +72051,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-user-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72569,9 +72111,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-user-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72631,9 +72173,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#rename-a-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72655,7 +72197,7 @@ paths: description: Response content: application/json: - schema: *504 + schema: *501 examples: default: value: @@ -72769,8 +72311,8 @@ paths: category: repos subcategory: bypass-requests parameters: - - *441 - - *442 + - *438 + - *439 - *101 - *102 - *103 @@ -72806,8 +72348,8 @@ paths: category: repos subcategory: bypass-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_request_number in: path required: true @@ -72880,8 +72422,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - *101 - *102 - *103 @@ -72921,8 +72463,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_request_number in: path required: true @@ -72992,8 +72534,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_request_number in: path required: true @@ -73064,8 +72606,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_response_id in: path required: true @@ -73098,8 +72640,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#create-a-check-run parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -73378,7 +72920,7 @@ paths: description: Response content: application/json: - schema: &505 + schema: &502 title: CheckRun description: A check performed on the code of a given code change type: object @@ -73514,7 +73056,7 @@ paths: check. type: array items: *217 - deployment: &835 + deployment: &830 title: Deployment description: A deployment created as the result of an Actions check run from a workflow that references an environment @@ -73801,9 +73343,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#get-a-check-run parameters: - - *441 - - *442 - - &506 + - *438 + - *439 + - &503 name: check_run_id description: The unique identifier of the check run. in: path @@ -73815,9 +73357,9 @@ paths: description: Response content: application/json: - schema: *505 + schema: *502 examples: - default: &507 + default: &504 value: id: 4 head_sha: ce587453ced02b1526dfb4cb910479d431683101 @@ -73917,9 +73459,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run parameters: - - *441 - - *442 - - *506 + - *438 + - *439 + - *503 requestBody: required: true content: @@ -74159,9 +73701,9 @@ paths: description: Response content: application/json: - schema: *505 + schema: *502 examples: - default: *507 + default: *504 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74181,9 +73723,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#list-check-run-annotations parameters: - - *441 - - *442 - - *506 + - *438 + - *439 + - *503 - *17 - *19 responses: @@ -74293,9 +73835,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#rerequest-a-check-run parameters: - - *441 - - *442 - - *506 + - *438 + - *439 + - *503 responses: '201': description: Response @@ -74339,8 +73881,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#create-a-check-suite parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -74362,7 +73904,7 @@ paths: description: Response when the suite already exists content: application/json: - schema: &509 + schema: &506 title: CheckSuite description: A suite of checks performed on the code of a given code change @@ -74460,7 +74002,7 @@ paths: - string - 'null' format: date-time - head_commit: *508 + head_commit: *505 latest_check_runs_count: type: integer check_runs_url: @@ -74488,7 +74030,7 @@ paths: - check_runs_url - pull_requests examples: - default: &510 + default: &507 value: id: 5 node_id: MDEwOkNoZWNrU3VpdGU1 @@ -74779,9 +74321,9 @@ paths: description: Response when the suite was created content: application/json: - schema: *509 + schema: *506 examples: - default: *510 + default: *507 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74800,8 +74342,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#update-repository-preferences-for-check-suites parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -75110,9 +74652,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite parameters: - - *441 - - *442 - - &511 + - *438 + - *439 + - &508 name: check_suite_id description: The unique identifier of the check suite. in: path @@ -75124,9 +74666,9 @@ paths: description: Response content: application/json: - schema: *509 + schema: *506 examples: - default: *510 + default: *507 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -75149,17 +74691,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#list-check-runs-in-a-check-suite parameters: - - *441 - - *442 - - *511 - - &561 + - *438 + - *439 + - *508 + - &558 name: check_name description: Returns check runs with the specified `name`. in: query required: false schema: type: string - - &562 + - &559 name: status description: Returns check runs with the specified `status`. in: query @@ -75198,9 +74740,9 @@ paths: type: integer check_runs: type: array - items: *505 + items: *502 examples: - default: &563 + default: &560 value: total_count: 1 check_runs: @@ -75302,9 +74844,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#rerequest-a-check-suite parameters: - - *441 - - *442 - - *511 + - *438 + - *439 + - *508 responses: '201': description: Response @@ -75337,21 +74879,21 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *306 - *307 - *19 - *17 - - &527 + - &524 name: ref description: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. in: query required: false - schema: *512 - - &528 + schema: *509 + - &525 name: pr description: The number of the pull request for the results you want to list. in: query @@ -75382,7 +74924,7 @@ paths: be returned. in: query required: false - schema: *513 + schema: *510 - name: assignees description: | Filter alerts by assignees. Provide a comma-separated list of user handles (e.g., `octocat` or `octocat,hubot`). @@ -75406,7 +74948,7 @@ paths: updated_at: *132 url: *129 html_url: *130 - instances_url: *514 + instances_url: *511 state: *111 fixed_at: *134 dismissed_by: @@ -75414,11 +74956,11 @@ paths: - type: 'null' - *4 dismissed_at: *133 - dismissed_reason: *515 - dismissed_comment: *516 - rule: *517 - tool: *518 - most_recent_instance: *519 + dismissed_reason: *512 + dismissed_comment: *513 + rule: *514 + tool: *515 + most_recent_instance: *516 dismissal_approved_by: anyOf: - type: 'null' @@ -75541,7 +75083,7 @@ paths: classifications: [] instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances '304': *35 - '403': &520 + '403': &517 description: Response if GitHub Advanced Security is not enabled for this repository content: @@ -75568,9 +75110,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-code-scanning-alert parameters: - - *441 - - *442 - - &521 + - *438 + - *439 + - &518 name: alert_number in: path description: The number that identifies an alert. You can find this at the @@ -75584,7 +75126,7 @@ paths: description: Response content: application/json: - schema: &522 + schema: &519 type: object properties: number: *124 @@ -75592,7 +75134,7 @@ paths: updated_at: *132 url: *129 html_url: *130 - instances_url: *514 + instances_url: *511 state: *111 fixed_at: *134 dismissed_by: @@ -75600,8 +75142,8 @@ paths: - type: 'null' - *4 dismissed_at: *133 - dismissed_reason: *515 - dismissed_comment: *516 + dismissed_reason: *512 + dismissed_comment: *513 rule: type: object properties: @@ -75663,8 +75205,8 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: *518 - most_recent_instance: *519 + tool: *515 + most_recent_instance: *516 dismissal_approved_by: anyOf: - type: 'null' @@ -75760,7 +75302,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '304': *35 - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -75780,9 +75322,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#update-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 requestBody: required: true content: @@ -75797,8 +75339,8 @@ paths: enum: - open - dismissed - dismissed_reason: *515 - dismissed_comment: *516 + dismissed_reason: *512 + dismissed_comment: *513 create_request: type: boolean description: If `true`, attempt to create an alert dismissal request. @@ -75826,7 +75368,7 @@ paths: description: Response content: application/json: - schema: *522 + schema: *519 examples: default: value: @@ -75902,7 +75444,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '400': *14 - '403': &526 + '403': &523 description: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository content: @@ -75929,15 +75471,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 responses: '200': description: Response content: application/json: - schema: &523 + schema: &520 type: object properties: status: @@ -75964,13 +75506,13 @@ paths: - description - started_at examples: - default: &524 + default: &521 value: status: success description: This fixes an XSS vulnerability by escaping the user input. started_at: '2024-02-14T12:29:18Z' - '400': &525 + '400': &522 description: Bad Request content: application/json: @@ -75981,7 +75523,7 @@ paths: message: The alert_number is not valid documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert status: '400' - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76006,29 +75548,29 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 responses: '200': description: OK content: application/json: - schema: *523 + schema: *520 examples: - default: *524 + default: *521 '202': description: Accepted content: application/json: - schema: *523 + schema: *520 examples: default: value: status: pending description: started_at: '2024-02-14T12:29:18Z' - '400': *525 + '400': *522 '403': description: Response if the repository is archived, if GitHub Advanced Security is not enabled for this repository or if rate limit is exceeded @@ -76060,9 +75602,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 requestBody: required: false content: @@ -76108,8 +75650,8 @@ paths: value: target_ref: refs/heads/main sha: 178f4f6090b3fccad4a65b3e83d076a622d59652 - '400': *525 - '403': *526 + '400': *522 + '403': *523 '404': *6 '422': description: Unprocessable Entity @@ -76133,13 +75675,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 - *19 - *17 - - *527 - - *528 + - *524 + - *525 responses: '200': description: Response @@ -76150,10 +75692,10 @@ paths: items: type: object properties: - ref: *512 - analysis_key: *529 - environment: *530 - category: *531 + ref: *509 + analysis_key: *526 + environment: *527 + category: *528 state: type: - string @@ -76170,7 +75712,7 @@ paths: properties: text: type: string - location: *532 + location: *529 html_url: type: string classifications: @@ -76178,7 +75720,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: *533 + items: *530 examples: default: value: @@ -76217,7 +75759,7 @@ paths: end_column: 50 classifications: - source - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76251,25 +75793,25 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *306 - *307 - *19 - *17 - - *528 + - *525 - name: ref in: query description: The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. required: false - schema: *512 + schema: *509 - name: sarif_id in: query description: Filter analyses belonging to the same SARIF upload. required: false - schema: &534 + schema: &531 type: string description: An identifier for the upload. examples: @@ -76291,23 +75833,23 @@ paths: application/json: schema: type: array - items: &535 + items: &532 type: object properties: - ref: *512 - commit_sha: &543 + ref: *509 + commit_sha: &540 description: The SHA of the commit to which the analysis you are uploading relates. type: string minLength: 40 maxLength: 40 pattern: "^[0-9a-fA-F]+$" - analysis_key: *529 + analysis_key: *526 environment: type: string description: Identifies the variable values associated with the environment in which this analysis was performed. - category: *531 + category: *528 error: type: string examples: @@ -76332,8 +75874,8 @@ paths: description: The REST API URL of the analysis resource. format: uri readOnly: true - sarif_id: *534 - tool: *518 + sarif_id: *531 + tool: *515 deletable: type: boolean warning: @@ -76395,7 +75937,7 @@ paths: version: 1.2.0 deletable: true warning: '' - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76431,8 +75973,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -76445,7 +75987,7 @@ paths: description: Response content: application/json: - schema: *535 + schema: *532 examples: response: summary: application/json response @@ -76499,7 +76041,7 @@ paths: properties: - github/alertNumber: 2 - github/alertUrl: https://api.github.com/repos/monalisa/monalisa/code-scanning/alerts/2 - '403': *520 + '403': *517 '404': *6 '422': description: Response if analysis could not be processed @@ -76586,8 +76128,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -76643,7 +76185,7 @@ paths: next_analysis_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41 confirm_delete_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41?confirm_delete '400': *14 - '403': *526 + '403': *523 '404': *6 '503': *190 x-github: @@ -76665,8 +76207,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -76674,7 +76216,7 @@ paths: application/json: schema: type: array - items: &536 + items: &533 title: CodeQL Database description: A CodeQL database. type: object @@ -76786,7 +76328,7 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/ruby commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76815,8 +76357,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: language in: path description: The language of the CodeQL database. @@ -76828,7 +76370,7 @@ paths: description: Response content: application/json: - schema: *536 + schema: *533 examples: default: value: @@ -76860,9 +76402,9 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '302': &568 + '302': &565 description: Found - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76884,8 +76426,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#delete-a-codeql-database parameters: - - *441 - - *442 + - *438 + - *439 - name: language in: path description: The language of the CodeQL database. @@ -76895,7 +76437,7 @@ paths: responses: '204': description: Response - '403': *526 + '403': *523 '404': *6 '503': *190 x-github: @@ -76923,8 +76465,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#create-a-codeql-variant-analysis parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -76933,7 +76475,7 @@ paths: type: object additionalProperties: false properties: - language: &537 + language: &534 type: string description: The language targeted by the CodeQL query enum: @@ -77013,7 +76555,7 @@ paths: description: Variant analysis submitted for processing content: application/json: - schema: &541 + schema: &538 title: Variant Analysis description: A run of a CodeQL query against one or more repositories. type: object @@ -77023,7 +76565,7 @@ paths: description: The ID of the variant analysis. controller_repo: *118 actor: *4 - query_language: *537 + query_language: *534 query_pack_url: type: string description: The download url for the query pack. @@ -77071,7 +76613,7 @@ paths: items: type: object properties: - repository: &538 + repository: &535 title: Repository Identifier description: Repository Identifier type: object @@ -77113,7 +76655,7 @@ paths: - private - stargazers_count - updated_at - analysis_status: &542 + analysis_status: &539 type: string description: The new status of the CodeQL variant analysis repository task. @@ -77145,7 +76687,7 @@ paths: from processing. This information is only available to the user that initiated the variant analysis. properties: - access_mismatch_repos: &539 + access_mismatch_repos: &536 type: object properties: repository_count: @@ -77160,7 +76702,7 @@ paths: This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. - items: *538 + items: *535 required: - repository_count - repositories @@ -77183,8 +76725,8 @@ paths: required: - repository_count - repository_full_names - no_codeql_db_repos: *539 - over_limit_repos: *539 + no_codeql_db_repos: *536 + over_limit_repos: *536 required: - access_mismatch_repos - not_found_repos @@ -77200,7 +76742,7 @@ paths: examples: repositories_parameter: summary: Response for a successful variant analysis submission - value: &540 + value: &537 summary: Default response value: id: 1 @@ -77346,10 +76888,10 @@ paths: private: false repository_owners: summary: Response for a successful variant analysis submission - value: *540 + value: *537 repository_lists: summary: Response for a successful variant analysis submission - value: *540 + value: *537 '404': *6 '422': description: Unable to process variant analysis submission @@ -77377,8 +76919,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-the-summary-of-a-codeql-variant-analysis parameters: - - *441 - - *442 + - *438 + - *439 - name: codeql_variant_analysis_id in: path description: The unique identifier of the variant analysis. @@ -77390,9 +76932,9 @@ paths: description: Response content: application/json: - schema: *541 + schema: *538 examples: - default: *540 + default: *537 '404': *6 '503': *190 x-github: @@ -77415,7 +76957,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-the-analysis-status-of-a-repository-in-a-codeql-variant-analysis parameters: - - *441 + - *438 - name: repo in: path description: The name of the controller repository. @@ -77450,7 +76992,7 @@ paths: type: object properties: repository: *118 - analysis_status: *542 + analysis_status: *539 artifact_size_in_bytes: type: integer description: The size of the artifact. This is only available @@ -77575,8 +77117,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -77669,7 +77211,7 @@ paths: threat_model: remote updated_at: '2023-01-19T11:21:34Z' schedule: weekly - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -77690,8 +77232,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -77785,7 +77327,7 @@ paths: value: run_id: 42 run_url: https://api.github.com/repos/octoorg/octocat/actions/runs/42 - '403': *526 + '403': *523 '404': *6 '409': description: Response if there is already a validation run in progress with @@ -77856,8 +77398,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -77865,7 +77407,7 @@ paths: schema: type: object properties: - commit_sha: *543 + commit_sha: *540 ref: type: string description: |- @@ -77925,7 +77467,7 @@ paths: schema: type: object properties: - id: *534 + id: *531 url: type: string description: The REST API URL for checking the status of the upload. @@ -77939,7 +77481,7 @@ paths: url: https://api.github.com/repos/octocat/hello-world/code-scanning/sarifs/47177e22-5596-11eb-80a1-c1e54ef945c6 '400': description: Bad Request if the sarif field is invalid - '403': *526 + '403': *523 '404': *6 '413': description: Payload Too Large if the sarif field is too large @@ -77962,8 +77504,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-information-about-a-sarif-upload parameters: - - *441 - - *442 + - *438 + - *439 - name: sarif_id description: The SARIF ID obtained after uploading. in: path @@ -78011,7 +77553,7 @@ paths: value: processing_status: complete analyses_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses?sarif_id=47177e22-5596-11eb-80a1-c1e54ef945c6 - '403': *520 + '403': *517 '404': description: Not Found if the sarif id does not match any upload '503': *190 @@ -78036,8 +77578,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-the-code-security-configuration-associated-with-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -78118,8 +77660,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-codeowners-errors parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: 'A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository''s default branch @@ -78247,8 +77789,8 @@ paths: parameters: - *17 - *19 - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -78562,8 +78104,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#create-a-codespace-in-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -78629,7 +78171,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -78637,7 +78179,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '400': *14 '401': *23 '403': *27 @@ -78666,8 +78208,8 @@ paths: parameters: - *17 - *19 - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -78731,8 +78273,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/machines#list-available-machine-types-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: location description: The location to check for available machines. Assigned by IP if not provided. @@ -78769,9 +78311,9 @@ paths: type: integer machines: type: array - items: *545 + items: *542 examples: - default: &783 + default: &778 value: total_count: 2 machines: @@ -78811,8 +78353,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#get-default-attributes-for-a-codespace parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked. @@ -78899,8 +78441,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of `ref` will typically @@ -78969,8 +78511,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#list-repository-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -78988,7 +78530,7 @@ paths: type: integer secrets: type: array - items: &549 + items: &546 title: Codespaces Secret description: Set repository secrets for GitHub Codespaces. type: object @@ -79009,7 +78551,7 @@ paths: - created_at - updated_at examples: - default: *546 + default: *543 headers: Link: *45 x-github: @@ -79032,16 +78574,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *547 + schema: *544 examples: - default: *548 + default: *545 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -79061,17 +78603,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '200': description: Response content: application/json: - schema: *549 + schema: *546 examples: - default: *550 + default: *547 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -79091,8 +78633,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#create-or-update-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 requestBody: required: true @@ -79145,8 +78687,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#delete-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '204': @@ -79175,8 +78717,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#list-repository-collaborators parameters: - - *441 - - *442 + - *438 + - *439 - name: affiliation description: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` @@ -79214,7 +78756,7 @@ paths: application/json: schema: type: array - items: &551 + items: &548 title: Collaborator description: Collaborator type: object @@ -79407,8 +78949,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator parameters: - - *441 - - *442 + - *438 + - *439 - *137 responses: '204': @@ -79455,8 +78997,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#add-a-repository-collaborator parameters: - - *441 - - *442 + - *438 + - *439 - *137 requestBody: required: false @@ -79483,7 +79025,7 @@ paths: description: Response when a new invitation is created content: application/json: - schema: &628 + schema: &625 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -79711,8 +79253,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#remove-a-repository-collaborator parameters: - - *441 - - *442 + - *438 + - *439 - *137 responses: '204': @@ -79744,8 +79286,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#get-repository-permissions-for-a-user parameters: - - *441 - - *442 + - *438 + - *439 - *137 responses: '200': @@ -79766,7 +79308,7 @@ paths: user: anyOf: - type: 'null' - - *551 + - *548 required: - permission - role_name @@ -79820,8 +79362,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#list-commit-comments-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -79831,7 +79373,7 @@ paths: application/json: schema: type: array - items: &552 + items: &549 title: Commit Comment description: Commit Comment type: object @@ -79889,7 +79431,7 @@ paths: - created_at - updated_at examples: - default: &557 + default: &554 value: - html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -79948,17 +79490,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '200': description: Response content: application/json: - schema: *552 + schema: *549 examples: - default: &558 + default: &555 value: html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -80015,8 +79557,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#update-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -80039,7 +79581,7 @@ paths: description: Response content: application/json: - schema: *552 + schema: *549 examples: default: value: @@ -80090,8 +79632,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#delete-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '204': @@ -80113,8 +79655,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). @@ -80141,7 +79683,7 @@ paths: application/json: schema: type: array - items: &553 + items: &550 title: Reaction description: Reactions to conversations provide a way to help people express their feelings more simply and effectively. @@ -80185,7 +79727,7 @@ paths: - content - created_at examples: - default: &632 + default: &629 value: - id: 1 node_id: MDg6UmVhY3Rpb24x @@ -80230,8 +79772,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -80264,9 +79806,9 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: &554 + default: &551 value: id: 1 node_id: MDg6UmVhY3Rpb24x @@ -80295,9 +79837,9 @@ paths: description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -80319,10 +79861,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-a-commit-comment-reaction parameters: - - *441 - - *442 + - *438 + - *439 - *228 - - &633 + - &630 name: reaction_id description: The unique identifier of the reaction. in: path @@ -80377,8 +79919,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits parameters: - - *441 - - *442 + - *438 + - *439 - name: sha description: 'SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`).' @@ -80434,9 +79976,9 @@ paths: application/json: schema: type: array - items: *555 + items: *552 examples: - default: &679 + default: &676 value: - url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -80530,9 +80072,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-branches-for-head-commit parameters: - - *441 - - *442 - - &556 + - *438 + - *439 + - &553 name: commit_sha description: The SHA of the commit. in: path @@ -80604,9 +80146,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#list-commit-comments parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 - *17 - *19 responses: @@ -80616,9 +80158,9 @@ paths: application/json: schema: type: array - items: *552 + items: *549 examples: - default: *557 + default: *554 headers: Link: *45 x-github: @@ -80646,9 +80188,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#create-a-commit-comment parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 requestBody: required: true content: @@ -80683,9 +80225,9 @@ paths: description: Response content: application/json: - schema: *552 + schema: *549 examples: - default: *558 + default: *555 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -80713,9 +80255,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-pull-requests-associated-with-a-commit parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 - *17 - *19 responses: @@ -80725,9 +80267,9 @@ paths: application/json: schema: type: array - items: *559 + items: *556 examples: - default: &671 + default: &668 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -81264,11 +80806,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#get-a-commit parameters: - - *441 - - *442 + - *438 + - *439 - *19 - *17 - - &560 + - &557 name: ref description: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" @@ -81283,9 +80825,9 @@ paths: description: Response content: application/json: - schema: *555 + schema: *552 examples: - default: &657 + default: &654 value: url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -81398,11 +80940,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#list-check-runs-for-a-git-reference parameters: - - *441 - - *442 - - *560 - - *561 - - *562 + - *438 + - *439 + - *557 + - *558 + - *559 - name: filter description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. @@ -81436,9 +80978,9 @@ paths: type: integer check_runs: type: array - items: *505 + items: *502 examples: - default: *563 + default: *560 headers: Link: *45 x-github: @@ -81463,9 +81005,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#list-check-suites-for-a-git-reference parameters: - - *441 - - *442 - - *560 + - *438 + - *439 + - *557 - name: app_id description: Filters check suites by GitHub App `id`. in: query @@ -81473,7 +81015,7 @@ paths: schema: type: integer example: 1 - - *561 + - *558 - *17 - *19 responses: @@ -81491,7 +81033,7 @@ paths: type: integer check_suites: type: array - items: *509 + items: *506 examples: default: value: @@ -81691,9 +81233,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses#get-the-combined-status-for-a-specific-reference parameters: - - *441 - - *442 - - *560 + - *438 + - *439 + - *557 - *17 - *19 responses: @@ -81895,9 +81437,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses#list-commit-statuses-for-a-reference parameters: - - *441 - - *442 - - *560 + - *438 + - *439 + - *557 - *17 - *19 responses: @@ -81907,7 +81449,7 @@ paths: application/json: schema: type: array - items: &732 + items: &729 title: Status description: The status of a commit. type: object @@ -81988,7 +81530,7 @@ paths: site_admin: false headers: Link: *45 - '301': *447 + '301': *444 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -82016,8 +81558,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/community#get-community-profile-metrics parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -82050,11 +81592,11 @@ paths: code_of_conduct: anyOf: - type: 'null' - - *564 + - *561 code_of_conduct_file: anyOf: - type: 'null' - - &565 + - &562 title: Community Health File type: object properties: @@ -82074,19 +81616,19 @@ paths: contributing: anyOf: - type: 'null' - - *565 + - *562 readme: anyOf: - type: 'null' - - *565 + - *562 issue_template: anyOf: - type: 'null' - - *565 + - *562 pull_request_template: anyOf: - type: 'null' - - *565 + - *562 required: - code_of_conduct - code_of_conduct_file @@ -82215,8 +81757,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#compare-two-commits parameters: - - *441 - - *442 + - *438 + - *439 - *19 - *17 - name: basehead @@ -82264,8 +81806,8 @@ paths: format: uri examples: - https://github.com/octocat/Hello-World/compare/master...topic.patch - base_commit: *555 - merge_base_commit: *555 + base_commit: *552 + merge_base_commit: *552 status: type: string enum: @@ -82289,10 +81831,10 @@ paths: - 6 commits: type: array - items: *555 + items: *552 files: type: array - items: *566 + items: *563 required: - url - html_url @@ -82578,8 +82120,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#get-repository-content parameters: - - *441 - - *442 + - *438 + - *439 - name: path description: path parameter in: path @@ -82732,7 +82274,7 @@ paths: - type - url examples: - response-if-content-is-a-file: &567 + response-if-content-is-a-file: &564 summary: Response if content is a file value: type: file @@ -82869,7 +82411,7 @@ paths: - size - type - url - - &684 + - &681 title: Content File description: Content File type: object @@ -83087,7 +82629,7 @@ paths: - url - submodule_git_url examples: - response-if-content-is-a-file: *567 + response-if-content-is-a-file: *564 response-if-content-is-a-directory: summary: Response if content is a directory and the application/json media type is requested @@ -83156,7 +82698,7 @@ paths: html: https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9 '404': *6 '403': *27 - '302': *568 + '302': *565 '304': *35 x-github: githubCloudOnly: false @@ -83179,8 +82721,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#create-or-update-file-contents parameters: - - *441 - - *442 + - *438 + - *439 - name: path description: path parameter in: path @@ -83275,7 +82817,7 @@ paths: description: Response content: application/json: - schema: &569 + schema: &566 title: File Commit description: File Commit type: object @@ -83431,7 +82973,7 @@ paths: description: Response content: application/json: - schema: *569 + schema: *566 examples: example-for-creating-a-file: value: @@ -83485,7 +83027,7 @@ paths: schema: oneOf: - *3 - - &610 + - &607 description: Repository rule violation was detected type: object properties: @@ -83506,7 +83048,7 @@ paths: items: type: object properties: - placeholder_id: &724 + placeholder_id: &721 description: The ID of the push protection bypass placeholder. This value is returned on any push protected routes. @@ -83538,8 +83080,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#delete-a-file parameters: - - *441 - - *442 + - *438 + - *439 - name: path description: path parameter in: path @@ -83600,7 +83142,7 @@ paths: description: Response content: application/json: - schema: *569 + schema: *566 examples: default: value: @@ -83655,8 +83197,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-contributors parameters: - - *441 - - *442 + - *438 + - *439 - name: anon description: Set to `1` or `true` to include anonymous contributors in results. in: query @@ -83780,8 +83322,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/alerts#list-dependabot-alerts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *321 - *322 - *323 @@ -83793,7 +83335,7 @@ paths: schema: type: string - *325 - - *570 + - *567 - *326 - *327 - *108 @@ -83814,7 +83356,7 @@ paths: application/json: schema: type: array - items: &574 + items: &571 type: object description: A Dependabot alert. properties: @@ -83864,7 +83406,7 @@ paths: - direct - transitive - - security_advisory: *571 + security_advisory: *568 security_vulnerability: *128 url: *129 html_url: *130 @@ -83895,8 +83437,8 @@ paths: dismissal. maxLength: 280 fixed_at: *134 - auto_dismissed_at: *572 - dismissal_request: *573 + auto_dismissed_at: *569 + dismissal_request: *570 required: - number - state @@ -84126,9 +83668,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/alerts#get-a-dependabot-alert parameters: - - *441 - - *442 - - &575 + - *438 + - *439 + - &572 name: alert_number in: path description: |- @@ -84143,7 +83685,7 @@ paths: description: Response content: application/json: - schema: *574 + schema: *571 examples: default: value: @@ -84256,9 +83798,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/alerts#update-a-dependabot-alert parameters: - - *441 - - *442 - - *575 + - *438 + - *439 + - *572 requestBody: required: true content: @@ -84303,7 +83845,7 @@ paths: description: Response content: application/json: - schema: *574 + schema: *571 examples: default: value: @@ -84432,8 +83974,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-repository-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -84451,7 +83993,7 @@ paths: type: integer secrets: type: array - items: &578 + items: &575 title: Dependabot Secret description: Set secrets for Dependabot. type: object @@ -84505,16 +84047,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *576 + schema: *573 examples: - default: *577 + default: *574 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -84534,15 +84076,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '200': description: Response content: application/json: - schema: *578 + schema: *575 examples: default: value: @@ -84568,8 +84110,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#create-or-update-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 requestBody: required: true @@ -84622,8 +84164,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#delete-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '204': @@ -84646,8 +84188,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph/dependency-review#get-a-diff-of-the-dependencies-between-commits parameters: - - *441 - - *442 + - *438 + - *439 - name: basehead description: The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their @@ -84821,8 +84363,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph/sboms#export-a-software-bill-of-materials-sbom-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -85082,8 +84624,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -85166,7 +84708,7 @@ paths: - version - url additionalProperties: false - metadata: &579 + metadata: &576 title: metadata description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -85205,7 +84747,7 @@ paths: examples: - "/src/build/package-lock.json" additionalProperties: false - metadata: *579 + metadata: *576 resolved: type: object description: A collection of resolved package dependencies. @@ -85219,7 +84761,7 @@ paths: pattern: "^pkg" examples: - pkg:/npm/%40actions/http-client@1.0.11 - metadata: *579 + metadata: *576 relationship: type: string description: A notation of whether a dependency is requested @@ -85352,8 +84894,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments parameters: - - *441 - - *442 + - *438 + - *439 - name: sha description: The SHA recorded at creation time. in: query @@ -85394,9 +84936,9 @@ paths: application/json: schema: type: array - items: *580 + items: *577 examples: - default: *581 + default: *578 headers: Link: *45 x-github: @@ -85462,8 +85004,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#create-a-deployment parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -85545,7 +85087,7 @@ paths: description: Response content: application/json: - schema: *580 + schema: *577 examples: simple-example: summary: Simple example @@ -85618,9 +85160,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#get-a-deployment parameters: - - *441 - - *442 - - &582 + - *438 + - *439 + - &579 name: deployment_id description: deployment_id parameter in: path @@ -85632,7 +85174,7 @@ paths: description: Response content: application/json: - schema: *580 + schema: *577 examples: default: value: @@ -85697,9 +85239,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#delete-a-deployment parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 responses: '204': description: Response @@ -85721,9 +85263,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 - *17 - *19 responses: @@ -85733,7 +85275,7 @@ paths: application/json: schema: type: array - items: &583 + items: &580 title: Deployment Status description: The status of a deployment. type: object @@ -85897,9 +85439,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#create-a-deployment-status parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 requestBody: required: true content: @@ -85974,9 +85516,9 @@ paths: description: Response content: application/json: - schema: *583 + schema: *580 examples: - default: &584 + default: &581 value: url: https://api.github.com/repos/octocat/example/deployments/42/statuses/1 id: 1 @@ -86032,9 +85574,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#get-a-deployment-status parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 - name: status_id in: path required: true @@ -86045,9 +85587,9 @@ paths: description: Response content: application/json: - schema: *583 + schema: *580 examples: - default: *584 + default: *581 '404': *6 x-github: githubCloudOnly: false @@ -86074,12 +85616,12 @@ paths: category: code-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 + - *582 + - *583 + - *584 - *585 - - *586 - - *587 - - *588 - *17 - *19 responses: @@ -86089,9 +85631,9 @@ paths: application/json: schema: type: array - items: *589 + items: *586 examples: - default: *590 + default: *587 '404': *6 '403': *27 '500': *38 @@ -86115,8 +85657,8 @@ paths: category: code-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86128,7 +85670,7 @@ paths: description: A single dismissal request. content: application/json: - schema: *589 + schema: *586 examples: default: value: @@ -86184,8 +85726,8 @@ paths: category: code-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86244,12 +85786,12 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 + - *582 + - *583 + - *584 - *585 - - *586 - - *587 - - *588 - *17 - *19 responses: @@ -86259,9 +85801,9 @@ paths: application/json: schema: type: array - items: *591 + items: *588 examples: - default: *592 + default: *589 '404': *6 '403': *27 '500': *38 @@ -86285,8 +85827,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86298,7 +85840,7 @@ paths: description: A single dismissal request. content: application/json: - schema: *591 + schema: *588 examples: default: value: @@ -86349,8 +85891,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86388,7 +85930,7 @@ paths: description: The created dismissal request. content: application/json: - schema: *591 + schema: *588 examples: default: value: @@ -86439,8 +85981,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86511,8 +86053,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86545,8 +86087,8 @@ paths: category: secret-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - *101 - *102 - *103 @@ -86560,9 +86102,9 @@ paths: application/json: schema: type: array - items: *593 + items: *590 examples: - default: *594 + default: *591 '404': *6 '403': *27 '500': *38 @@ -86587,8 +86129,8 @@ paths: category: secret-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86600,7 +86142,7 @@ paths: description: A single dismissal request. content: application/json: - schema: *593 + schema: *590 examples: default: value: @@ -86658,8 +86200,8 @@ paths: category: secret-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86728,8 +86270,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-a-repository-dispatch-event parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -86786,8 +86328,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#list-environments parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -86805,7 +86347,7 @@ paths: - 5 environments: type: array - items: &596 + items: &593 title: Environment description: Details of a deployment environment type: object @@ -86867,7 +86409,7 @@ paths: type: string examples: - wait_timer - wait_timer: &598 + wait_timer: &595 type: integer description: The amount of time to delay a job after the job is initially triggered. The time (in minutes) @@ -86909,7 +86451,7 @@ paths: items: type: object properties: - type: *595 + type: *592 reviewer: anyOf: - *4 @@ -86936,7 +86478,7 @@ paths: - id - node_id - type - deployment_branch_policy: &599 + deployment_branch_policy: &596 type: - object - 'null' @@ -87053,9 +86595,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#get-an-environment parameters: - - *441 - - *442 - - &597 + - *438 + - *439 + - &594 name: environment_name in: path required: true @@ -87068,9 +86610,9 @@ paths: description: Response content: application/json: - schema: *596 + schema: *593 examples: - default: &600 + default: &597 value: id: 161088068 node_id: MDExOkVudmlyb25tZW50MTYxMDg4MDY4 @@ -87154,9 +86696,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#create-or-update-an-environment parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 requestBody: required: false content: @@ -87166,7 +86708,7 @@ paths: - object - 'null' properties: - wait_timer: *598 + wait_timer: *595 prevent_self_review: type: boolean description: Whether or not a user who created the job is prevented @@ -87185,14 +86727,14 @@ paths: items: type: object properties: - type: *595 + type: *592 id: type: integer description: The id of the user or team who can review the deployment examples: - 4532992 - deployment_branch_policy: *599 + deployment_branch_policy: *596 additionalProperties: false examples: default: @@ -87212,9 +86754,9 @@ paths: description: Response content: application/json: - schema: *596 + schema: *593 examples: - default: *600 + default: *597 '422': description: Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` @@ -87238,9 +86780,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#delete-an-environment parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 responses: '204': description: Default response @@ -87265,9 +86807,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#list-deployment-branch-policies parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *17 - *19 responses: @@ -87286,7 +86828,7 @@ paths: - 2 branch_policies: type: array - items: &601 + items: &598 title: Deployment branch policy description: Details of a deployment branch or tag policy. type: object @@ -87347,9 +86889,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#create-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 requestBody: required: true content: @@ -87397,9 +86939,9 @@ paths: description: Response content: application/json: - schema: *601 + schema: *598 examples: - example-wildcard: &602 + example-wildcard: &599 value: id: 364662 node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI= @@ -87441,10 +86983,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#get-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 - - &603 + - *438 + - *439 + - *594 + - &600 name: branch_policy_id in: path required: true @@ -87456,9 +86998,9 @@ paths: description: Response content: application/json: - schema: *601 + schema: *598 examples: - default: *602 + default: *599 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87477,10 +87019,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#update-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 - - *603 + - *438 + - *439 + - *594 + - *600 requestBody: required: true content: @@ -87509,9 +87051,9 @@ paths: description: Response content: application/json: - schema: *601 + schema: *598 examples: - default: *602 + default: *599 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87530,10 +87072,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#delete-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 - - *603 + - *438 + - *439 + - *594 + - *600 responses: '204': description: Response @@ -87558,9 +87100,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#get-all-deployment-protection-rules-for-an-environment parameters: - - *597 - - *442 - - *441 + - *594 + - *439 + - *438 responses: '200': description: List of deployment protection rules @@ -87577,7 +87119,7 @@ paths: - 10 custom_deployment_protection_rules: type: array - items: &604 + items: &601 title: Deployment protection rule description: Deployment protection rule type: object @@ -87599,7 +87141,7 @@ paths: for the environment. examples: - true - app: &605 + app: &602 title: Custom deployment protection rule app description: A GitHub App that is providing a custom deployment protection rule. @@ -87702,9 +87244,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#create-a-custom-deployment-protection-rule-on-an-environment parameters: - - *597 - - *442 - - *441 + - *594 + - *439 + - *438 requestBody: content: application/json: @@ -87725,9 +87267,9 @@ paths: description: The enabled custom deployment protection rule content: application/json: - schema: *604 + schema: *601 examples: - default: &606 + default: &603 value: id: 3 node_id: IEH37kRlcGxveW1lbnRTdGF0ddiv @@ -87762,9 +87304,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#list-custom-deployment-rule-integrations-available-for-an-environment parameters: - - *597 - - *442 - - *441 + - *594 + - *439 + - *438 - *19 - *17 responses: @@ -87784,7 +87326,7 @@ paths: - 35 available_custom_deployment_protection_rule_integrations: type: array - items: *605 + items: *602 examples: default: value: @@ -87819,10 +87361,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#get-a-custom-deployment-protection-rule parameters: - - *441 - - *442 - - *597 - - &607 + - *438 + - *439 + - *594 + - &604 name: protection_rule_id description: The unique identifier of the protection rule. in: path @@ -87834,9 +87376,9 @@ paths: description: Response content: application/json: - schema: *604 + schema: *601 examples: - default: *606 + default: *603 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87857,10 +87399,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#disable-a-custom-protection-rule-for-an-environment parameters: - - *597 - - *442 - - *441 - - *607 + - *594 + - *439 + - *438 + - *604 responses: '204': description: Response @@ -87886,9 +87428,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-environment-secrets parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *17 - *19 responses: @@ -87906,9 +87448,9 @@ paths: type: integer secrets: type: array - items: *472 + items: *469 examples: - default: *473 + default: *470 headers: Link: *45 x-github: @@ -87933,17 +87475,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 responses: '200': description: Response content: application/json: - schema: *474 + schema: *471 examples: - default: *475 + default: *472 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87965,18 +87507,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-secret parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *283 responses: '200': description: Response content: application/json: - schema: *472 + schema: *469 examples: - default: *608 + default: *605 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87998,9 +87540,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#create-or-update-an-environment-secret parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *283 requestBody: required: true @@ -88058,9 +87600,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#delete-an-environment-secret parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *283 responses: '204': @@ -88086,10 +87628,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-environment-variables parameters: - - *441 - - *442 - - *597 - - *459 + - *438 + - *439 + - *594 + - *456 - *19 responses: '200': @@ -88106,9 +87648,9 @@ paths: type: integer variables: type: array - items: *476 + items: *473 examples: - default: *477 + default: *474 headers: Link: *45 x-github: @@ -88131,9 +87673,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#create-an-environment-variable parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 requestBody: required: true content: @@ -88185,18 +87727,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#get-an-environment-variable parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *286 responses: '200': description: Response content: application/json: - schema: *476 + schema: *473 examples: - default: *609 + default: *606 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -88217,10 +87759,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#update-an-environment-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 - - *597 + - *594 requestBody: required: true content: @@ -88262,10 +87804,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#delete-an-environment-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 - - *597 + - *594 responses: '204': description: Response @@ -88287,8 +87829,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-repository-events parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -88356,8 +87898,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/forks#list-forks parameters: - - *441 - - *442 + - *438 + - *439 - name: sort description: The sort order. `stargazers` will sort by star count. in: query @@ -88516,8 +88058,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/forks#create-a-fork parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -88550,9 +88092,9 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 '400': *14 '422': *15 '403': *27 @@ -88573,8 +88115,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/blobs#create-a-blob parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -88634,7 +88176,7 @@ paths: schema: oneOf: - *248 - - *610 + - *607 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -88659,8 +88201,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/blobs#get-a-blob parameters: - - *441 - - *442 + - *438 + - *439 - name: file_sha in: path required: true @@ -88760,8 +88302,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/commits#create-a-commit parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -88870,7 +88412,7 @@ paths: description: Response content: application/json: - schema: &611 + schema: &608 title: Git Commit description: Low-level Git commit operations within a repository type: object @@ -89097,15 +88639,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/commits#get-a-commit-object parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 responses: '200': description: Response content: application/json: - schema: *611 + schema: *608 examples: default: value: @@ -89161,9 +88703,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#list-matching-references parameters: - - *441 - - *442 - - &612 + - *438 + - *439 + - &609 name: ref description: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -89180,7 +88722,7 @@ paths: application/json: schema: type: array - items: &613 + items: &610 title: Git Reference description: Git references within a repository type: object @@ -89256,17 +88798,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference parameters: - - *441 - - *442 - - *612 + - *438 + - *439 + - *609 responses: '200': description: Response content: application/json: - schema: *613 + schema: *610 examples: - default: &614 + default: &611 value: ref: refs/heads/featureA node_id: MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ== @@ -89295,8 +88837,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#create-a-reference parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -89325,9 +88867,9 @@ paths: description: Response content: application/json: - schema: *613 + schema: *610 examples: - default: *614 + default: *611 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA @@ -89353,9 +88895,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#update-a-reference parameters: - - *441 - - *442 - - *612 + - *438 + - *439 + - *609 requestBody: required: true content: @@ -89384,9 +88926,9 @@ paths: description: Response content: application/json: - schema: *613 + schema: *610 examples: - default: *614 + default: *611 '422': *15 '409': *117 x-github: @@ -89404,9 +88946,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#delete-a-reference parameters: - - *441 - - *442 - - *612 + - *438 + - *439 + - *609 responses: '204': description: Response @@ -89461,8 +89003,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/tags#create-a-tag-object parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -89529,7 +89071,7 @@ paths: description: Response content: application/json: - schema: &616 + schema: &613 title: Git Tag description: Metadata for a Git tag type: object @@ -89585,7 +89127,7 @@ paths: - sha - type - url - verification: *615 + verification: *612 required: - sha - url @@ -89595,7 +89137,7 @@ paths: - tag - message examples: - default: &617 + default: &614 value: node_id: MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw== tag: v0.0.1 @@ -89668,8 +89210,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/tags#get-a-tag parameters: - - *441 - - *442 + - *438 + - *439 - name: tag_sha in: path required: true @@ -89680,9 +89222,9 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: *617 + default: *614 '404': *6 '409': *117 x-github: @@ -89706,8 +89248,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/trees#create-a-tree parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -89781,7 +89323,7 @@ paths: description: Response content: application/json: - schema: &618 + schema: &615 title: Git Tree description: The hierarchy between files in a Git repository. type: object @@ -89883,8 +89425,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/trees#get-a-tree parameters: - - *441 - - *442 + - *438 + - *439 - name: tree_sha description: The SHA1 value or ref (branch or tag) name of the tree. in: path @@ -89907,7 +89449,7 @@ paths: description: Response content: application/json: - schema: *618 + schema: *615 examples: default-response: summary: Default response @@ -89966,8 +89508,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#list-repository-webhooks parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -89977,7 +89519,7 @@ paths: application/json: schema: type: array - items: &619 + items: &616 title: Webhook description: Webhooks for repositories. type: object @@ -90040,7 +89582,7 @@ paths: format: uri examples: - https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries - last_response: &871 + last_response: &866 title: Hook Response type: object properties: @@ -90117,8 +89659,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#create-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -90171,9 +89713,9 @@ paths: description: Response content: application/json: - schema: *619 + schema: *616 examples: - default: &620 + default: &617 value: type: Repository id: 12345678 @@ -90221,17 +89763,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#get-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '200': description: Response content: application/json: - schema: *619 + schema: *616 examples: - default: *620 + default: *617 '404': *6 x-github: githubCloudOnly: false @@ -90251,8 +89793,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#update-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 requestBody: required: true @@ -90298,9 +89840,9 @@ paths: description: Response content: application/json: - schema: *619 + schema: *616 examples: - default: *620 + default: *617 '422': *15 '404': *6 x-github: @@ -90321,8 +89863,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#delete-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '204': @@ -90347,8 +89889,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#get-a-webhook-configuration-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '200': @@ -90376,8 +89918,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#update-a-webhook-configuration-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *335 requestBody: required: false @@ -90422,8 +89964,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#list-deliveries-for-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 - *17 - *336 @@ -90455,8 +89997,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#get-a-delivery-for-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 - *16 responses: @@ -90485,8 +90027,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 - *16 responses: @@ -90510,8 +90052,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#ping-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '204': @@ -90537,8 +90079,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#test-the-push-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '204': @@ -90562,8 +90104,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-immutable-releases-are-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response if immutable releases are enabled @@ -90611,8 +90153,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-immutable-releases parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '409': *117 @@ -90632,8 +90174,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-immutable-releases parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '409': *117 @@ -90690,14 +90232,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#get-an-import-status parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &621 + schema: &618 title: Import description: A repository import from an external source. type: object @@ -90804,7 +90346,7 @@ paths: - html_url - authors_url examples: - default: &624 + default: &621 value: vcs: subversion use_lfs: true @@ -90820,7 +90362,7 @@ paths: authors_url: https://api.github.com/repos/octocat/socm/import/authors repository_url: https://api.github.com/repos/octocat/socm '404': *6 - '503': &622 + '503': &619 description: Unavailable due to service under maintenance. content: application/json: @@ -90849,8 +90391,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#start-an-import parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -90898,7 +90440,7 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: default: value: @@ -90923,7 +90465,7 @@ paths: type: string '422': *15 '404': *6 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90951,8 +90493,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -91004,7 +90546,7 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: example-1: summary: Example 1 @@ -91052,7 +90594,7 @@ paths: 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 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91075,12 +90617,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#cancel-an-import parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91106,9 +90648,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#get-commit-authors parameters: - - *441 - - *442 - - &804 + - *438 + - *439 + - &799 name: since description: A user ID. Only return users with an ID greater than this ID. in: query @@ -91122,7 +90664,7 @@ paths: application/json: schema: type: array - items: &623 + items: &620 title: Porter Author description: Porter Author type: object @@ -91176,7 +90718,7 @@ paths: url: https://api.github.com/repos/octocat/socm/import/authors/2268559 import_url: https://api.github.com/repos/octocat/socm/import '404': *6 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91201,8 +90743,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author parameters: - - *441 - - *442 + - *438 + - *439 - name: author_id in: path required: true @@ -91232,7 +90774,7 @@ paths: description: Response content: application/json: - schema: *623 + schema: *620 examples: default: value: @@ -91245,7 +90787,7 @@ paths: import_url: https://api.github.com/repos/octocat/socm/import '422': *15 '404': *6 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91269,8 +90811,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#get-large-files parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -91311,7 +90853,7 @@ paths: path: foo/bar/3 oid: c20ad4d76fe97759aa27a0c99bff6710 size: 12582912 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91339,8 +90881,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-git-lfs-preference parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -91367,11 +90909,11 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: - default: *624 + default: *621 '422': *15 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91394,8 +90936,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#get-a-repository-installation-for-the-authenticated-app parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -91403,8 +90945,8 @@ paths: application/json: schema: *20 examples: - default: *625 - '301': *447 + default: *622 + '301': *444 '404': *6 x-github: githubCloudOnly: false @@ -91424,8 +90966,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/interactions/repos#get-interaction-restrictions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -91438,7 +90980,7 @@ paths: properties: {} additionalProperties: false examples: - default: &627 + default: &624 value: limit: collaborators_only origin: repository @@ -91463,13 +91005,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/interactions/repos#set-interaction-restrictions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *626 + schema: *623 examples: default: summary: Example request body @@ -91483,7 +91025,7 @@ paths: application/json: schema: *353 examples: - default: *627 + default: *624 '409': description: Response x-github: @@ -91505,8 +91047,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/interactions/repos#remove-interaction-restrictions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -91529,8 +91071,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations#list-repository-invitations parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -91540,9 +91082,9 @@ paths: application/json: schema: type: array - items: *628 + items: *625 examples: - default: &797 + default: &792 value: - id: 1 repository: @@ -91673,8 +91215,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations#update-a-repository-invitation parameters: - - *441 - - *442 + - *438 + - *439 - *357 requestBody: required: false @@ -91704,7 +91246,7 @@ paths: description: Response content: application/json: - schema: *628 + schema: *625 examples: default: value: @@ -91835,8 +91377,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations#delete-a-repository-invitation parameters: - - *441 - - *442 + - *438 + - *439 - *357 responses: '204': @@ -91868,8 +91410,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#list-repository-issues parameters: - - *441 - - *442 + - *438 + - *439 - 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 @@ -91942,7 +91484,7 @@ paths: type: array items: *213 examples: - default: &638 + default: &635 value: - id: 1 node_id: MDU6SXNzdWUx @@ -92090,7 +91632,7 @@ paths: state_reason: completed headers: Link: *45 - '301': *447 + '301': *444 '422': *15 '404': *6 x-github: @@ -92119,8 +91661,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#create-an-issue parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -92212,7 +91754,7 @@ paths: application/json: schema: *213 examples: - default: &635 + default: &632 value: id: 1 node_id: MDU6SXNzdWUx @@ -92368,7 +91910,7 @@ paths: '422': *15 '503': *190 '404': *6 - '410': *629 + '410': *626 x-github: triggersNotification: true githubCloudOnly: false @@ -92396,8 +91938,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#list-issue-comments-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *236 - name: direction description: Either `asc` or `desc`. Ignored without the `sort` parameter. @@ -92418,9 +91960,9 @@ paths: application/json: schema: type: array - items: *630 + items: *627 examples: - default: &637 + default: &634 value: - id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -92478,17 +92020,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '200': description: Response content: application/json: - schema: *630 + schema: *627 examples: - default: &631 + default: &628 value: id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -92542,8 +92084,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#update-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -92566,9 +92108,9 @@ paths: description: Response content: application/json: - schema: *630 + schema: *627 examples: - default: *631 + default: *628 '422': *15 x-github: githubCloudOnly: false @@ -92586,8 +92128,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#delete-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '204': @@ -92608,8 +92150,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). @@ -92636,9 +92178,9 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 @@ -92659,8 +92201,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -92693,16 +92235,16 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -92724,10 +92266,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-an-issue-comment-reaction parameters: - - *441 - - *442 + - *438 + - *439 - *228 - - *633 + - *630 responses: '204': description: Response @@ -92747,8 +92289,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/events#list-issue-events-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -92758,7 +92300,7 @@ paths: application/json: schema: type: array - items: &634 + items: &631 title: Issue Event description: Issue Event type: object @@ -93097,8 +92639,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/events#get-an-issue-event parameters: - - *441 - - *442 + - *438 + - *439 - name: event_id in: path required: true @@ -93109,7 +92651,7 @@ paths: description: Response content: application/json: - schema: *634 + schema: *631 examples: default: value: @@ -93301,7 +92843,7 @@ paths: author_association: COLLABORATOR state_reason: completed '404': *6 - '410': *629 + '410': *626 '403': *27 x-github: githubCloudOnly: false @@ -93335,9 +92877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue parameters: - - *441 - - *442 - - &636 + - *438 + - *439 + - &633 name: issue_number description: The number that identifies the issue. in: path @@ -93351,10 +92893,10 @@ paths: application/json: schema: *213 examples: - default: *635 - '301': *447 + default: *632 + '301': *444 '404': *6 - '410': *629 + '410': *626 '304': *35 x-github: githubCloudOnly: false @@ -93379,9 +92921,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#update-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -93502,13 +93044,13 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 '422': *15 '503': *190 '403': *27 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93526,9 +93068,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#add-assignees-to-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -93556,7 +93098,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93572,9 +93114,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#remove-assignees-from-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: content: application/json: @@ -93601,7 +93143,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93623,9 +93165,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#check-if-a-user-can-be-assigned-to-a-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: assignee in: path required: true @@ -93665,9 +93207,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#list-issue-comments parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *219 - *17 - *19 @@ -93678,13 +93220,13 @@ paths: application/json: schema: type: array - items: *630 + items: *627 examples: - default: *637 + default: *634 headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93713,9 +93255,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#create-an-issue-comment parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -93737,16 +93279,16 @@ paths: description: Response content: application/json: - schema: *630 + schema: *627 examples: - default: *631 + default: *628 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1 schema: type: string '403': *27 - '410': *629 + '410': *626 '422': *15 '404': *6 x-github: @@ -93774,9 +93316,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocked-by parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -93788,12 +93330,12 @@ paths: type: array items: *213 examples: - default: *638 + default: *635 headers: Link: *45 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93821,9 +93363,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#add-a-dependency-an-issue-is-blocked-by parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -93847,15 +93389,15 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/dependencies/blocked_by schema: type: string - '301': *447 + '301': *444 '403': *27 - '410': *629 + '410': *626 '422': *15 '404': *6 x-github: @@ -93886,9 +93428,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#remove-dependency-an-issue-is-blocked-by parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: issue_id in: path description: The id of the blocking issue to remove as a dependency @@ -93902,13 +93444,13 @@ paths: application/json: schema: *213 examples: - default: *635 - '301': *447 + default: *632 + '301': *444 '400': *14 '401': *23 '403': *27 '404': *6 - '410': *629 + '410': *626 x-github: triggersNotification: true githubCloudOnly: false @@ -93934,9 +93476,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocking parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -93948,12 +93490,12 @@ paths: type: array items: *213 examples: - default: *638 + default: *635 headers: Link: *45 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93970,9 +93512,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/events#list-issue-events parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -93986,7 +93528,7 @@ paths: title: Issue Event for Issue description: Issue Event for Issue anyOf: - - &640 + - &637 title: Labeled Issue Event description: Labeled Issue Event type: object @@ -94035,7 +93577,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &641 + - &638 title: Unlabeled Issue Event description: Unlabeled Issue Event type: object @@ -94163,7 +93705,7 @@ paths: - performed_via_github_app - assignee - assigner - - &642 + - &639 title: Milestoned Issue Event description: Milestoned Issue Event type: object @@ -94209,7 +93751,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &643 + - &640 title: Demilestoned Issue Event description: Demilestoned Issue Event type: object @@ -94255,7 +93797,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &644 + - &641 title: Renamed Issue Event description: Renamed Issue Event type: object @@ -94304,7 +93846,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &645 + - &642 title: Review Requested Issue Event description: Review Requested Issue Event type: object @@ -94346,7 +93888,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &646 + - &643 title: Review Request Removed Issue Event description: Review Request Removed Issue Event type: object @@ -94388,7 +93930,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &647 + - &644 title: Review Dismissed Issue Event description: Review Dismissed Issue Event type: object @@ -94444,7 +93986,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &648 + - &645 title: Locked Issue Event description: Locked Issue Event type: object @@ -94489,7 +94031,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &649 + - &646 title: Added to Project Issue Event description: Added to Project Issue Event type: object @@ -94550,7 +94092,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &650 + - &647 title: Moved Column in Project Issue Event description: Moved Column in Project Issue Event type: object @@ -94611,7 +94153,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &651 + - &648 title: Removed from Project Issue Event description: Removed from Project Issue Event type: object @@ -94672,7 +94214,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &652 + - &649 title: Converted Note to Issue Issue Event description: Converted Note to Issue Issue Event type: object @@ -94765,7 +94307,7 @@ paths: color: red headers: Link: *45 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -94782,9 +94324,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#list-labels-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -94796,7 +94338,7 @@ paths: type: array items: *212 examples: - default: &639 + default: &636 value: - id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -94814,9 +94356,9 @@ paths: default: false headers: Link: *45 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -94833,9 +94375,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -94896,10 +94438,10 @@ paths: type: array items: *212 examples: - default: *639 - '301': *447 + default: *636 + '301': *444 '404': *6 - '410': *629 + '410': *626 '422': *15 x-github: githubCloudOnly: false @@ -94916,9 +94458,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -94980,10 +94522,10 @@ paths: type: array items: *212 examples: - default: *639 - '301': *447 + default: *636 + '301': *444 '404': *6 - '410': *629 + '410': *626 '422': *15 x-github: githubCloudOnly: false @@ -95000,15 +94542,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#remove-all-labels-from-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 responses: '204': description: Response - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95027,9 +94569,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#remove-a-label-from-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: name in: path required: true @@ -95053,9 +94595,9 @@ paths: description: Something isn't working color: f29513 default: true - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95075,9 +94617,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#lock-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -95106,7 +94648,7 @@ paths: '204': description: Response '403': *27 - '410': *629 + '410': *626 '404': *6 '422': *15 x-github: @@ -95124,9 +94666,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#unlock-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 responses: '204': description: Response @@ -95156,9 +94698,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#get-parent-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 responses: '200': description: Response @@ -95166,10 +94708,10 @@ paths: application/json: schema: *213 examples: - default: *635 - '301': *447 + default: *632 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95186,9 +94728,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. @@ -95214,13 +94756,13 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95238,9 +94780,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95272,16 +94814,16 @@ paths: description: Response content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Response content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -95303,10 +94845,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-an-issue-reaction parameters: - - *441 - - *442 - - *636 + - *438 + - *439 - *633 + - *630 responses: '204': description: Response @@ -95335,9 +94877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#remove-sub-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95361,7 +94903,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/sub-issue @@ -95394,9 +94936,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -95408,11 +94950,11 @@ paths: type: array items: *213 examples: - default: *638 + default: *635 headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95440,9 +94982,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#add-sub-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95471,14 +95013,14 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/sub-issues/1 schema: type: string '403': *27 - '410': *629 + '410': *626 '422': *15 '404': *6 x-github: @@ -95498,9 +95040,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#reprioritize-sub-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95533,7 +95075,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 '403': *27 '404': *6 '422': *7 @@ -95555,9 +95097,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/timeline#list-timeline-events-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -95572,6 +95114,9 @@ paths: description: Timeline Event type: object anyOf: + - *637 + - *638 + - *639 - *640 - *641 - *642 @@ -95582,9 +95127,6 @@ paths: - *647 - *648 - *649 - - *650 - - *651 - - *652 - title: Timeline Comment Event description: Timeline Comment Event type: object @@ -95913,7 +95455,7 @@ paths: type: string comments: type: array - items: &673 + items: &670 title: Pull Request Review Comment description: Pull Request Review Comments are comments on a portion of the Pull Request's diff. @@ -96154,7 +95696,7 @@ paths: type: string comments: type: array - items: *552 + items: *549 - title: Timeline Assigned Issue Event description: Timeline Assigned Issue Event type: object @@ -96429,7 +95971,7 @@ paths: headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -96446,8 +95988,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#list-deploy-keys parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -96457,7 +95999,7 @@ paths: application/json: schema: type: array - items: &653 + items: &650 title: Deploy Key description: An SSH key granting access to a single repository. type: object @@ -96525,8 +96067,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#create-a-deploy-key parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -96562,9 +96104,9 @@ paths: description: Response content: application/json: - schema: *653 + schema: *650 examples: - default: &654 + default: &651 value: id: 1 key: ssh-rsa AAA... @@ -96598,9 +96140,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key parameters: - - *441 - - *442 - - &655 + - *438 + - *439 + - &652 name: key_id description: The unique identifier of the key. in: path @@ -96612,9 +96154,9 @@ paths: description: Response content: application/json: - schema: *653 + schema: *650 examples: - default: *654 + default: *651 '404': *6 x-github: githubCloudOnly: false @@ -96632,9 +96174,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#delete-a-deploy-key parameters: - - *441 - - *442 - - *655 + - *438 + - *439 + - *652 responses: '204': description: Response @@ -96654,8 +96196,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#list-labels-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -96667,7 +96209,7 @@ paths: type: array items: *212 examples: - default: *639 + default: *636 headers: Link: *45 '404': *6 @@ -96688,8 +96230,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#create-a-label parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -96727,7 +96269,7 @@ paths: application/json: schema: *212 examples: - default: &656 + default: &653 value: id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -96759,8 +96301,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#get-a-label parameters: - - *441 - - *442 + - *438 + - *439 - name: name in: path required: true @@ -96773,7 +96315,7 @@ paths: application/json: schema: *212 examples: - default: *656 + default: *653 '404': *6 x-github: githubCloudOnly: false @@ -96790,8 +96332,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#update-a-label parameters: - - *441 - - *442 + - *438 + - *439 - name: name in: path required: true @@ -96856,8 +96398,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#delete-a-label parameters: - - *441 - - *442 + - *438 + - *439 - name: name in: path required: true @@ -96883,8 +96425,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-languages parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -96920,8 +96462,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/lfs#enable-git-lfs-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '202': *37 '403': @@ -96949,8 +96491,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/lfs#disable-git-lfs-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -96976,9 +96518,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/licenses/licenses#get-the-license-for-a-repository parameters: - - *441 - - *442 - - *527 + - *438 + - *439 + - *524 responses: '200': description: Response @@ -97125,8 +96667,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97191,8 +96733,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#merge-a-branch parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97226,9 +96768,9 @@ paths: description: Successful Response (The resulting merge commit) content: application/json: - schema: *555 + schema: *552 examples: - default: *657 + default: *654 '204': description: Response when already merged '404': @@ -97253,8 +96795,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#list-milestones parameters: - - *441 - - *442 + - *438 + - *439 - name: state description: The state of the milestone. Either `open`, `closed`, or `all`. in: query @@ -97351,8 +96893,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#create-a-milestone parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97394,7 +96936,7 @@ paths: application/json: schema: *392 examples: - default: &658 + default: &655 value: url: https://api.github.com/repos/octocat/Hello-World/milestones/1 html_url: https://github.com/octocat/Hello-World/milestones/v1.0 @@ -97453,9 +96995,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#get-a-milestone parameters: - - *441 - - *442 - - &659 + - *438 + - *439 + - &656 name: milestone_number description: The number that identifies the milestone. in: path @@ -97469,7 +97011,7 @@ paths: application/json: schema: *392 examples: - default: *658 + default: *655 '404': *6 x-github: githubCloudOnly: false @@ -97486,9 +97028,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#update-a-milestone parameters: - - *441 - - *442 - - *659 + - *438 + - *439 + - *656 requestBody: required: false content: @@ -97528,7 +97070,7 @@ paths: application/json: schema: *392 examples: - default: *658 + default: *655 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -97544,9 +97086,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#delete-a-milestone parameters: - - *441 - - *442 - - *659 + - *438 + - *439 + - *656 responses: '204': description: Response @@ -97567,9 +97109,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#list-labels-for-issues-in-a-milestone parameters: - - *441 - - *442 - - *659 + - *438 + - *439 + - *656 - *17 - *19 responses: @@ -97581,7 +97123,7 @@ paths: type: array items: *212 examples: - default: *639 + default: *636 headers: Link: *45 x-github: @@ -97600,12 +97142,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#list-repository-notifications-for-the-authenticated-user parameters: - - *441 - - *442 - - *660 - - *661 + - *438 + - *439 + - *657 + - *658 - *219 - - *662 + - *659 - *17 - *19 responses: @@ -97617,7 +97159,7 @@ paths: type: array items: *239 examples: - default: *663 + default: *660 headers: Link: *45 x-github: @@ -97641,8 +97183,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#mark-repository-notifications-as-read parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -97700,14 +97242,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &664 + schema: &661 title: GitHub Pages description: The configuration for GitHub Pages for a repository. type: object @@ -97851,7 +97393,7 @@ paths: - custom_404 - public examples: - default: &665 + default: &662 value: url: https://api.github.com/repos/github/developer.github.com/pages status: built @@ -97892,8 +97434,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#create-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97948,9 +97490,9 @@ paths: description: Response content: application/json: - schema: *664 + schema: *661 examples: - default: *665 + default: *662 '422': *15 '409': *117 x-github: @@ -97973,8 +97515,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#update-information-about-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -98082,8 +97624,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#delete-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -98109,8 +97651,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-apiname-pages-builds parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -98120,7 +97662,7 @@ paths: application/json: schema: type: array - items: &666 + items: &663 title: Page Build description: Page Build type: object @@ -98212,8 +97754,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#request-a-apiname-pages-build parameters: - - *441 - - *442 + - *438 + - *439 responses: '201': description: Response @@ -98260,16 +97802,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-latest-pages-build parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *666 + schema: *663 examples: - default: &667 + default: &664 value: url: https://api.github.com/repos/github/developer.github.com/pages/builds/5472601 status: built @@ -98317,8 +97859,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-apiname-pages-build parameters: - - *441 - - *442 + - *438 + - *439 - name: build_id in: path required: true @@ -98329,9 +97871,9 @@ paths: description: Response content: application/json: - schema: *666 + schema: *663 examples: - default: *667 + default: *664 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -98351,8 +97893,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#create-a-github-pages-deployment parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -98460,9 +98002,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-the-status-of-a-github-pages-deployment parameters: - - *441 - - *442 - - &668 + - *438 + - *439 + - &665 name: pages_deployment_id description: The ID of the Pages deployment. You can also give the commit SHA of the deployment. @@ -98520,9 +98062,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#cancel-a-github-pages-deployment parameters: - - *441 - - *442 - - *668 + - *438 + - *439 + - *665 responses: '204': *149 '404': *6 @@ -98549,8 +98091,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-a-dns-health-check-for-github-pages parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -98845,8 +98387,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Private vulnerability reporting status @@ -98883,8 +98425,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '422': *14 @@ -98905,8 +98447,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '422': *14 @@ -98928,8 +98470,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/custom-properties#get-all-custom-property-values-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -98939,7 +98481,7 @@ paths: type: array items: *150 examples: - default: *669 + default: *666 '403': *27 '404': *6 x-github: @@ -98961,8 +98503,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -98978,7 +98520,7 @@ paths: required: - properties examples: - default: *670 + default: *667 responses: '204': description: No Content when custom property values are successfully created @@ -99016,8 +98558,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: state description: Either `open`, `closed`, or `all` to filter by state. in: query @@ -99077,9 +98619,9 @@ paths: application/json: schema: type: array - items: *559 + items: *556 examples: - default: *671 + default: *668 headers: Link: *45 '304': *35 @@ -99111,8 +98653,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#create-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -99179,7 +98721,7 @@ paths: description: Response content: application/json: - schema: &675 + schema: &672 type: object title: Pull Request description: Pull requests let you tell others about changes you've @@ -99419,7 +98961,7 @@ paths: - review_comment - self author_association: *214 - auto_merge: *672 + auto_merge: *669 draft: description: Indicates whether or not the pull request is a draft. type: boolean @@ -99521,7 +99063,7 @@ paths: - merged_by - review_comments examples: - default: &676 + default: &673 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -100048,8 +99590,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#list-review-comments-in-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: sort in: query required: false @@ -100078,9 +99620,9 @@ paths: application/json: schema: type: array - items: *673 + items: *670 examples: - default: &678 + default: &675 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -100157,17 +99699,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '200': description: Response content: application/json: - schema: *673 + schema: *670 examples: - default: &674 + default: &671 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -100242,8 +99784,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#update-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -100266,9 +99808,9 @@ paths: description: Response content: application/json: - schema: *673 + schema: *670 examples: - default: *674 + default: *671 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -100284,8 +99826,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#delete-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '204': @@ -100307,8 +99849,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-pull-request-review-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). @@ -100335,9 +99877,9 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 @@ -100358,8 +99900,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -100392,16 +99934,16 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -100423,10 +99965,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-a-pull-request-comment-reaction parameters: - - *441 - - *442 + - *438 + - *439 - *228 - - *633 + - *630 responses: '204': description: Response @@ -100469,9 +100011,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#get-a-pull-request parameters: - - *441 - - *442 - - &677 + - *438 + - *439 + - &674 name: pull_number description: The number that identifies the pull request. in: path @@ -100484,9 +100026,9 @@ paths: to fetch diff and patch formats. content: application/json: - schema: *675 + schema: *672 examples: - default: *676 + default: *673 '304': *35 '404': *6 '406': @@ -100521,9 +100063,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#update-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -100565,9 +100107,9 @@ paths: description: Response content: application/json: - schema: *675 + schema: *672 examples: - default: *676 + default: *673 '422': *15 '403': *27 x-github: @@ -100589,9 +100131,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#create-a-codespace-from-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: true content: @@ -100654,7 +100196,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -100662,7 +100204,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '401': *23 '403': *27 '404': *6 @@ -100692,9 +100234,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#list-review-comments-on-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *236 - name: direction description: The direction to sort results. Ignored without `sort` parameter. @@ -100715,9 +100257,9 @@ paths: application/json: schema: type: array - items: *673 + items: *670 examples: - default: *678 + default: *675 headers: Link: *45 x-github: @@ -100750,9 +100292,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#create-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: true content: @@ -100858,7 +100400,7 @@ paths: description: Response content: application/json: - schema: *673 + schema: *670 examples: example-for-a-multi-line-comment: value: @@ -100946,9 +100488,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#create-a-reply-for-a-review-comment parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *228 requestBody: required: true @@ -100971,7 +100513,7 @@ paths: description: Response content: application/json: - schema: *673 + schema: *670 examples: default: value: @@ -101057,9 +100599,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-commits-on-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *17 - *19 responses: @@ -101069,9 +100611,9 @@ paths: application/json: schema: type: array - items: *555 + items: *552 examples: - default: *679 + default: *676 headers: Link: *45 x-github: @@ -101101,9 +100643,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests-files parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *17 - *19 responses: @@ -101113,7 +100655,7 @@ paths: application/json: schema: type: array - items: *566 + items: *563 examples: default: value: @@ -101151,9 +100693,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#check-if-a-pull-request-has-been-merged parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 responses: '204': description: Response if pull request has been merged @@ -101176,9 +100718,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#merge-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -101290,9 +100832,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/review-requests#get-all-requested-reviewers-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 responses: '200': description: Response @@ -101367,9 +100909,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/review-requests#request-reviewers-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -101406,7 +100948,7 @@ paths: description: Response content: application/json: - schema: *559 + schema: *556 examples: default: value: @@ -101942,9 +101484,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: true content: @@ -101978,7 +101520,7 @@ paths: description: Response content: application/json: - schema: *559 + schema: *556 examples: default: value: @@ -102483,9 +102025,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#list-reviews-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *17 - *19 responses: @@ -102495,7 +102037,7 @@ paths: application/json: schema: type: array - items: &680 + items: &677 title: Pull Request Review description: Pull Request Reviews are reviews on pull requests. type: object @@ -102651,9 +102193,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#create-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -102743,9 +102285,9 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: &682 + default: &679 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -102808,10 +102350,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#get-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - &681 + - *438 + - *439 + - *674 + - &678 name: review_id description: The unique identifier of the review. in: path @@ -102823,9 +102365,9 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: &683 + default: &680 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -102884,10 +102426,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#update-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 requestBody: required: true content: @@ -102910,7 +102452,7 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: default: value: @@ -102972,18 +102514,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#delete-a-pending-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 responses: '200': description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: *682 + default: *679 '422': *7 '404': *6 x-github: @@ -103010,10 +102552,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#list-comments-for-a-pull-request-review parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 - *17 - *19 responses: @@ -103271,10 +102813,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#dismiss-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 requestBody: required: true content: @@ -103303,7 +102845,7 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: default: value: @@ -103366,10 +102908,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 requestBody: required: true content: @@ -103404,9 +102946,9 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: *683 + default: *680 '404': *6 '422': *7 '403': *27 @@ -103428,9 +102970,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#update-a-pull-request-branch parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -103494,8 +103036,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#get-a-repository-readme parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: 'The name of the commit/branch/tag. Default: the repository’s default branch.' @@ -103508,9 +103050,9 @@ paths: description: Response content: application/json: - schema: *684 + schema: *681 examples: - default: &685 + default: &682 value: type: file encoding: base64 @@ -103552,8 +103094,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#get-a-repository-readme-for-a-directory parameters: - - *441 - - *442 + - *438 + - *439 - name: dir description: The alternate path to look for a README file in: path @@ -103573,9 +103115,9 @@ paths: description: Response content: application/json: - schema: *684 + schema: *681 examples: - default: *685 + default: *682 '404': *6 '422': *15 x-github: @@ -103597,8 +103139,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#list-releases parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -103608,7 +103150,7 @@ paths: application/json: schema: type: array - items: *686 + items: *683 examples: default: value: @@ -103702,8 +103244,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#create-a-release parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -103779,9 +103321,9 @@ paths: description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: &690 + default: &687 value: url: https://api.github.com/repos/octocat/Hello-World/releases/1 html_url: https://github.com/octocat/Hello-World/releases/v1.0.0 @@ -103886,9 +103428,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#get-a-release-asset parameters: - - *441 - - *442 - - &688 + - *438 + - *439 + - &685 name: asset_id description: The unique identifier of the asset. in: path @@ -103900,9 +103442,9 @@ paths: description: Response content: application/json: - schema: *687 + schema: *684 examples: - default: &689 + default: &686 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 @@ -103937,7 +103479,7 @@ paths: type: User site_admin: false '404': *6 - '302': *568 + '302': *565 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -103953,9 +103495,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#update-a-release-asset parameters: - - *441 - - *442 - - *688 + - *438 + - *439 + - *685 requestBody: required: false content: @@ -103984,9 +103526,9 @@ paths: description: Response content: application/json: - schema: *687 + schema: *684 examples: - default: *689 + default: *686 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -104002,9 +103544,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#delete-a-release-asset parameters: - - *441 - - *442 - - *688 + - *438 + - *439 + - *685 responses: '204': description: Response @@ -104028,8 +103570,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#generate-release-notes-content-for-a-release parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -104115,16 +103657,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#get-the-latest-release parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -104141,8 +103683,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#get-a-release-by-tag-name parameters: - - *441 - - *442 + - *438 + - *439 - name: tag description: tag parameter in: path @@ -104155,9 +103697,9 @@ paths: description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 '404': *6 x-github: githubCloudOnly: false @@ -104179,9 +103721,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#get-a-release parameters: - - *441 - - *442 - - &691 + - *438 + - *439 + - &688 name: release_id description: The unique identifier of the release. in: path @@ -104195,9 +103737,9 @@ paths: For more information, see "[Getting started with the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."' content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 '401': description: Unauthorized x-github: @@ -104215,9 +103757,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#update-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 requestBody: required: false content: @@ -104281,9 +103823,9 @@ paths: description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 '404': description: Not Found if the discussion category name is invalid content: @@ -104304,9 +103846,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#delete-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 responses: '204': description: Response @@ -104326,9 +103868,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#list-release-assets parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 - *17 - *19 responses: @@ -104338,7 +103880,7 @@ paths: application/json: schema: type: array - items: *687 + items: *684 examples: default: value: @@ -104420,9 +103962,9 @@ paths: description: The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 - name: name in: query required: true @@ -104448,7 +103990,7 @@ paths: description: Response for successful upload content: application/json: - schema: *687 + schema: *684 examples: response-for-successful-upload: value: @@ -104503,9 +104045,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. @@ -104529,9 +104071,9 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 @@ -104552,9 +104094,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 requestBody: required: true content: @@ -104584,16 +104126,16 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -104615,10 +104157,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-a-release-reaction parameters: - - *441 - - *442 - - *691 - - *633 + - *438 + - *439 + - *688 + - *630 responses: '204': description: Response @@ -104642,9 +104184,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-rules-for-a-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 - *17 - *19 responses: @@ -104661,7 +104203,7 @@ paths: oneOf: - allOf: - *164 - - &692 + - &689 title: repository ruleset data for rule description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -104682,67 +104224,67 @@ paths: description: The ID of the ruleset that includes this rule. - allOf: - *165 - - *692 + - *689 - allOf: - *166 - - *692 + - *689 - allOf: - *167 - - *692 + - *689 - allOf: - - *693 - - *692 + - *690 + - *689 - allOf: - *168 - - *692 + - *689 - allOf: - *169 - - *692 + - *689 - allOf: - *170 - - *692 + - *689 - allOf: - *171 - - *692 + - *689 - allOf: - *172 - - *692 + - *689 - allOf: - *173 - - *692 + - *689 - allOf: - *174 - - *692 + - *689 - allOf: - *175 - - *692 + - *689 - allOf: - *176 - - *692 + - *689 - allOf: - *177 - - *692 + - *689 - allOf: - *178 - - *692 + - *689 - allOf: - *179 - - *692 + - *689 - allOf: - *180 - - *692 + - *689 - allOf: - *181 - - *692 + - *689 - allOf: - *182 - - *692 + - *689 - allOf: - *183 - - *692 + - *689 - allOf: - *184 - - *692 + - *689 examples: default: value: @@ -104781,8 +104323,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - name: includes_parents @@ -104793,7 +104335,7 @@ paths: schema: type: boolean default: true - - *694 + - *691 responses: '200': description: Response @@ -104848,8 +104390,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 requestBody: description: Request body required: true @@ -104878,7 +104420,7 @@ paths: rules: type: array description: An array of rules within the ruleset. - items: *695 + items: *692 required: - name - enforcement @@ -104911,7 +104453,7 @@ paths: application/json: schema: *185 examples: - default: &704 + default: &701 value: id: 42 name: super cool ruleset @@ -104958,12 +104500,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rule-suites#list-repository-rule-suites parameters: - - *441 - - *442 - - *696 + - *438 + - *439 + - *693 - *103 - - *697 - - *698 + - *694 + - *695 - *17 - *19 responses: @@ -104971,9 +104513,9 @@ paths: description: Response content: application/json: - schema: *699 + schema: *696 examples: - default: *700 + default: *697 '404': *6 '500': *38 x-github: @@ -104994,17 +104536,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rule-suites#get-a-repository-rule-suite parameters: - - *441 - - *442 - - *701 + - *438 + - *439 + - *698 responses: '200': description: Response content: application/json: - schema: *702 + schema: *699 examples: - default: *703 + default: *700 '404': *6 '500': *38 x-github: @@ -105032,8 +104574,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105055,7 +104597,7 @@ paths: application/json: schema: *185 examples: - default: *704 + default: *701 '404': *6 '500': *38 put: @@ -105073,8 +104615,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105108,7 +104650,7 @@ paths: rules: description: An array of rules within the ruleset. type: array - items: *695 + items: *692 examples: default: value: @@ -105138,7 +104680,7 @@ paths: application/json: schema: *185 examples: - default: *704 + default: *701 '404': *6 '500': *38 delete: @@ -105156,8 +104698,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105180,8 +104722,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-repository-ruleset-history parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - name: ruleset_id @@ -105218,8 +104760,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-repository-ruleset-version parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105292,8 +104834,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *410 - *411 - *412 @@ -105302,8 +104844,8 @@ paths: - *108 - *19 - *17 - - *705 - - *706 + - *702 + - *703 - *415 - *416 - *417 @@ -105315,7 +104857,7 @@ paths: application/json: schema: type: array - items: &710 + items: &707 type: object properties: number: *124 @@ -105331,8 +104873,8 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: *707 - resolution: *708 + state: *704 + resolution: *705 resolved_at: type: - string @@ -105426,7 +104968,7 @@ paths: first_location_detected: anyOf: - type: 'null' - - *709 + - *706 has_more_locations: type: boolean description: A boolean value representing whether or not the @@ -105571,16 +105113,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#get-a-secret-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 - *418 responses: '200': description: Response content: application/json: - schema: *710 + schema: *707 examples: default: value: @@ -105634,9 +105176,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 requestBody: required: true content: @@ -105644,8 +105186,8 @@ paths: schema: type: object properties: - state: *707 - resolution: *708 + state: *704 + resolution: *705 resolution_comment: description: An optional comment when closing or reopening an alert. Cannot be updated or deleted. @@ -105681,7 +105223,7 @@ paths: description: Response content: application/json: - schema: *710 + schema: *707 examples: default: value: @@ -105776,9 +105318,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#list-locations-for-a-secret-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 - *19 - *17 responses: @@ -105789,7 +105331,7 @@ paths: schema: type: array description: List of locations where the secret was detected - items: &891 + items: &886 type: object properties: type: @@ -105816,6 +105358,9 @@ paths: - commit details: oneOf: + - *708 + - *709 + - *710 - *711 - *712 - *713 @@ -105826,9 +105371,6 @@ paths: - *718 - *719 - *720 - - *721 - - *722 - - *723 examples: default: value: @@ -105914,8 +105456,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#create-a-push-protection-bypass parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -105923,14 +105465,14 @@ paths: schema: type: object properties: - reason: &725 + reason: &722 description: The reason for bypassing push protection. type: string enum: - false_positive - used_in_tests - will_fix_later - placeholder_id: *724 + placeholder_id: *721 required: - reason - placeholder_id @@ -105947,7 +105489,7 @@ paths: schema: type: object properties: - reason: *725 + reason: *722 expire_at: type: - string @@ -105994,8 +105536,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#get-secret-scanning-scan-history-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '404': description: Repository does not have GitHub Advanced Security or secret @@ -106010,7 +105552,7 @@ paths: properties: incremental_scans: type: array - items: &726 + items: &723 description: Information on a single scan performed by secret scanning on the repository type: object @@ -106038,15 +105580,15 @@ paths: the scan is pending pattern_update_scans: type: array - items: *726 + items: *723 backfill_scans: type: array - items: *726 + items: *723 custom_pattern_backfill_scans: type: array items: allOf: - - *726 + - *723 - type: object properties: pattern_name: @@ -106116,8 +105658,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#list-repository-security-advisories parameters: - - *441 - - *442 + - *438 + - *439 - *108 - name: sort description: The property to sort the results by. @@ -106161,9 +105703,9 @@ paths: application/json: schema: type: array - items: *727 + items: *724 examples: - default: *728 + default: *725 '400': *14 '404': *6 x-github: @@ -106186,8 +105728,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#create-a-repository-security-advisory parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -106357,9 +105899,9 @@ paths: description: Response content: application/json: - schema: *727 + schema: *724 examples: - default: &730 + default: &727 value: ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -106592,8 +106134,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -106706,7 +106248,7 @@ paths: description: Response content: application/json: - schema: *727 + schema: *724 examples: default: value: @@ -106853,17 +106395,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#get-a-repository-security-advisory parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 responses: '200': description: Response content: application/json: - schema: *727 + schema: *724 examples: - default: *730 + default: *727 '403': *27 '404': *6 x-github: @@ -106887,9 +106429,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#update-a-repository-security-advisory parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 requestBody: required: true content: @@ -107060,10 +106602,10 @@ paths: description: Response content: application/json: - schema: *727 + schema: *724 examples: - default: *730 - add_credit: *730 + default: *727 + add_credit: *727 '403': *27 '404': *6 '422': @@ -107101,9 +106643,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 responses: '202': *37 '400': *14 @@ -107130,17 +106672,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#create-a-temporary-private-fork parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 responses: '202': description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 '400': *14 '422': *15 '403': *27 @@ -107166,8 +106708,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#list-stargazers parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -107263,8 +106805,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-weekly-commit-activity parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Returns a weekly aggregate of the number of additions and deletions @@ -107273,7 +106815,7 @@ paths: application/json: schema: type: array - items: &731 + items: &728 title: Code Frequency Stat description: Code Frequency Stat type: array @@ -107306,8 +106848,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-last-year-of-commit-activity parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -107385,8 +106927,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-all-contributor-commit-activity parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -107480,8 +107022,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-weekly-commit-count parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: The array order is oldest week (index 0) to most recent week. @@ -107635,8 +107177,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-hourly-commit-count-for-each-day parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: For example, `[2, 14, 25]` indicates that there were 25 total @@ -107646,7 +107188,7 @@ paths: application/json: schema: type: array - items: *731 + items: *728 examples: default: value: @@ -107679,8 +107221,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses#create-a-commit-status parameters: - - *441 - - *442 + - *438 + - *439 - name: sha in: path required: true @@ -107736,7 +107278,7 @@ paths: description: Response content: application/json: - schema: *732 + schema: *729 examples: default: value: @@ -107790,8 +107332,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#list-watchers parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -107823,14 +107365,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#get-a-repository-subscription parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: if you subscribe to the repository content: application/json: - schema: &733 + schema: &730 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -107903,8 +107445,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#set-a-repository-subscription parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -107930,7 +107472,7 @@ paths: description: Response content: application/json: - schema: *733 + schema: *730 examples: default: value: @@ -107957,8 +107499,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#delete-a-repository-subscription parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -107978,8 +107520,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-tags parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -108061,8 +107603,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -108070,7 +107612,7 @@ paths: application/json: schema: type: array - items: &734 + items: &731 title: Tag protection description: Tag protection type: object @@ -108127,8 +107669,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -108151,7 +107693,7 @@ paths: description: Response content: application/json: - schema: *734 + schema: *731 examples: default: value: @@ -108182,8 +107724,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#closing-down---delete-a-tag-protection-state-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: tag_protection_id description: The unique identifier of the tag protection. in: path @@ -108220,8 +107762,8 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#download-a-repository-archive-tar operationId: repos/download-tarball-archive parameters: - - *441 - - *442 + - *438 + - *439 - name: ref in: path required: true @@ -108257,8 +107799,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-teams parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -108290,8 +107832,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-all-repository-topics parameters: - - *441 - - *442 + - *438 + - *439 - *19 - *17 responses: @@ -108299,7 +107841,7 @@ paths: description: Response content: application/json: - schema: &735 + schema: &732 title: Topic description: A topic aggregates entities that are related to a subject. type: object @@ -108311,7 +107853,7 @@ paths: required: - names examples: - default: &736 + default: &733 value: names: - octocat @@ -108334,8 +107876,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#replace-all-repository-topics parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -108366,9 +107908,9 @@ paths: description: Response content: application/json: - schema: *735 + schema: *732 examples: - default: *736 + default: *733 '404': *6 '422': *7 x-github: @@ -108389,9 +107931,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-repository-clones parameters: - - *441 - - *442 - - &737 + - *438 + - *439 + - &734 name: per description: The time frame to display results for. in: query @@ -108422,7 +107964,7 @@ paths: - 128 clones: type: array - items: &738 + items: &735 title: Traffic type: object properties: @@ -108509,8 +108051,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-top-referral-paths parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -108604,8 +108146,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-top-referral-sources parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -108668,9 +108210,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-page-views parameters: - - *441 - - *442 - - *737 + - *438 + - *439 + - *734 responses: '200': description: Response @@ -108691,7 +108233,7 @@ paths: - 3782 views: type: array - items: *738 + items: *735 required: - uniques - count @@ -108768,8 +108310,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#transfer-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -109043,8 +108585,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response if repository is enabled with vulnerability alerts @@ -109067,8 +108609,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-vulnerability-alerts parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -109090,8 +108632,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-vulnerability-alerts parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -109117,8 +108659,8 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#download-a-repository-archive-zip operationId: repos/download-zipball-archive parameters: - - *441 - - *442 + - *438 + - *439 - name: ref in: path required: true @@ -109210,9 +108752,9 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -109363,7 +108905,7 @@ paths: value: Engineering externalId: value: 8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159 - - &746 + - &743 name: excludedAttributes description: Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time. @@ -109373,7 +108915,7 @@ paths: type: string examples: - members - - &751 + - &748 name: startIndex description: 'Used for pagination: the starting index of the first result to return when paginating through values.' @@ -109385,7 +108927,7 @@ paths: format: int32 examples: - 1 - - &752 + - &749 name: count description: 'Used for pagination: the number of results to return per page.' in: query @@ -109429,7 +108971,7 @@ paths: Resources: type: array description: Information about each provisioned group. - items: &741 + items: &738 allOf: - type: object required: @@ -109511,7 +109053,7 @@ paths: - value: 0db508eb-91e2-46e4-809c-30dcbda0c685 "$+ref": https://api.github.localhost/scim/v2/Users/0db508eb-91e2-46e4-809c-30dcbda0c685 displayName: User 2 - meta: &753 + meta: &750 type: object description: The metadata associated with the creation/updates to the user. @@ -109576,30 +109118,30 @@ paths: location: https://api.github.localhost/scim/v2/Groups/24b28bbb-5fc4-4686-a153-a020debb1155 startIndex: 1 itemsPerPage: 20 - '400': &742 + '400': &739 description: Bad request content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '401': *740 - '403': &743 + schema: *736 + '401': *737 + '403': &740 description: Permission denied - '429': &744 + '429': &741 description: Too many requests content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '500': &745 + schema: *736 + '500': &742 description: Internal server error content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 + schema: *736 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109623,7 +109165,7 @@ paths: required: true content: application/json: - schema: &749 + schema: &746 type: object required: - schemas @@ -109687,9 +109229,9 @@ paths: description: Group has been created content: application/scim+json: - schema: *741 + schema: *738 examples: - group: &747 + group: &744 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:Group @@ -109708,13 +109250,13 @@ paths: created: '2012-03-27T19:59:26.000Z' lastModified: '2018-03-27T19:59:26.000Z' location: https://api.github.localhost/scim/v2/Groups/24b28bbb-5fc4-4686-a153-a020debb1155 - '400': *742 - '401': *740 - '403': *743 - '409': &750 + '400': *739 + '401': *737 + '403': *740 + '409': &747 description: Duplicate record detected - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109731,7 +109273,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#get-scim-provisioning-information-for-an-enterprise-group parameters: - - &748 + - &745 name: scim_group_id description: A unique identifier of the SCIM group. in: path @@ -109740,22 +109282,22 @@ paths: type: string examples: - 7fce0092-d52e-4f76-b727-3955bd72c939 - - *746 + - *743 - *39 responses: '200': description: Success, a group was found content: application/scim+json: - schema: *741 + schema: *738 examples: - default: *747 - '400': *742 - '401': *740 - '403': *743 + default: *744 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109774,13 +109316,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#set-scim-information-for-a-provisioned-enterprise-group parameters: - - *748 + - *745 - *39 requestBody: required: true content: application/json: - schema: *749 + schema: *746 examples: group: summary: Group @@ -109806,17 +109348,17 @@ paths: description: Group was updated content: application/scim+json: - schema: *741 + schema: *738 examples: - group: *747 - groupWithMembers: *747 - '400': *742 - '401': *740 - '403': *743 + group: *744 + groupWithMembers: *744 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109840,13 +109382,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#update-an-attribute-for-a-scim-enterprise-group parameters: - - *748 + - *745 - *39 requestBody: required: true content: application/json: - schema: &760 + schema: &757 type: object required: - Operations @@ -109906,17 +109448,17 @@ paths: description: Success, group was updated content: application/scim+json: - schema: *741 + schema: *738 examples: - updateGroup: *747 - addMembers: *747 - '400': *742 - '401': *740 - '403': *743 + updateGroup: *744 + addMembers: *744 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109932,17 +109474,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#delete-a-scim-group-from-an-enterprise parameters: - - *748 + - *745 - *39 responses: '204': description: Group was deleted, no content - '400': *742 - '401': *740 - '403': *743 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109976,8 +109518,8 @@ paths: value: userName eq 'E012345' externalId: value: externalId eq 'E012345' - - *751 - - *752 + - *748 + - *749 - *39 responses: '200': @@ -110011,7 +109553,7 @@ paths: Resources: type: array description: Information about each provisioned account. - items: &755 + items: &752 allOf: - type: object required: @@ -110103,7 +109645,7 @@ paths: address. examples: - true - roles: &754 + roles: &751 type: array description: The roles assigned to the user. items: @@ -110162,7 +109704,7 @@ paths: type: string description: Provisioned SCIM groups that the user is a member of. - meta: *753 + meta: *750 startIndex: type: integer description: A starting index for the returned page @@ -110201,11 +109743,11 @@ paths: primary: false startIndex: 1 itemsPerPage: 20 - '400': *742 - '401': *740 - '403': *743 - '429': *744 - '500': *745 + '400': *739 + '401': *737 + '403': *740 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110229,7 +109771,7 @@ paths: required: true content: application/json: - schema: &758 + schema: &755 type: object required: - schemas @@ -110322,9 +109864,9 @@ paths: description: Whether this email address is the primary address. examples: - true - roles: *754 + roles: *751 examples: - user: &759 + user: &756 summary: User value: schemas: @@ -110371,9 +109913,9 @@ paths: description: User has been created content: application/scim+json: - schema: *755 + schema: *752 examples: - user: &756 + user: &753 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:User @@ -110399,13 +109941,13 @@ paths: created: '2012-03-27T19:59:26.000Z' lastModified: '2018-03-27T19:59:26.000Z' location: https://api.github.localhost/scim/v2/Users/7fce0092-d52e-4f76-b727-3955bd72c939 - enterpriseOwner: *756 - '400': *742 - '401': *740 - '403': *743 - '409': *750 - '429': *744 - '500': *745 + enterpriseOwner: *753 + '400': *739 + '401': *737 + '403': *740 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110422,7 +109964,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#get-scim-provisioning-information-for-an-enterprise-user parameters: - - &757 + - &754 name: scim_user_id description: The unique identifier of the SCIM user. in: path @@ -110435,15 +109977,15 @@ paths: description: Success, a user was found content: application/scim+json: - schema: *755 + schema: *752 examples: - default: *756 - '400': *742 - '401': *740 - '403': *743 + default: *753 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110465,30 +110007,30 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#set-scim-information-for-a-provisioned-enterprise-user parameters: - - *757 + - *754 - *39 requestBody: required: true content: application/json: - schema: *758 + schema: *755 examples: - user: *759 + user: *756 responses: '200': description: User was updated content: application/scim+json: - schema: *755 + schema: *752 examples: - user: *756 - '400': *742 - '401': *740 - '403': *743 + user: *753 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110523,13 +110065,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#update-an-attribute-for-a-scim-enterprise-user parameters: - - *757 + - *754 - *39 requestBody: required: true content: application/json: - schema: *760 + schema: *757 examples: userMultiValuedProperties: summary: Multi Valued Property @@ -110569,18 +110111,18 @@ paths: description: Success, user was updated content: application/scim+json: - schema: *755 + schema: *752 examples: - userMultiValuedProperties: *756 - userSingleValuedProperties: *756 - disableUser: *756 - '400': *742 - '401': *740 - '403': *743 + userMultiValuedProperties: *753 + userSingleValuedProperties: *753 + disableUser: *753 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110600,17 +110142,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#delete-a-scim-user-from-an-enterprise parameters: - - *757 + - *754 - *39 responses: '204': description: User was deleted, no content - '400': *742 - '401': *740 - '403': *743 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110701,7 +110243,7 @@ paths: - 1 Resources: type: array - items: &761 + items: &758 title: SCIM /Users description: SCIM /Users provisioning endpoints type: object @@ -110948,22 +110490,22 @@ paths: lastModified: '2017-03-09T16:11:13-05:00' location: https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243 '304': *35 - '404': &762 + '404': &759 description: Resource not found content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '403': &763 + schema: *736 + '403': &760 description: Forbidden content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '400': *742 - '429': *744 + schema: *736 + '400': *739 + '429': *741 x-github: githubCloudOnly: true enabledForGitHubApps: true @@ -110989,9 +110531,9 @@ paths: description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: &764 + default: &761 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:User @@ -111014,17 +110556,17 @@ paths: lastModified: '2017-03-09T16:11:13-05:00' location: https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32 '304': *35 - '404': *762 - '403': *763 - '500': *745 + '404': *759 + '403': *760 + '500': *742 '409': description: Conflict content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '400': *742 + schema: *736 + '400': *739 requestBody: required: true content: @@ -111124,17 +110666,17 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#get-scim-provisioning-information-for-a-user parameters: - *85 - - *757 + - *754 responses: '200': description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: *764 - '404': *762 - '403': *763 + default: *761 + '404': *759 + '403': *760 '304': *35 x-github: githubCloudOnly: true @@ -111158,18 +110700,18 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#update-a-provisioned-organization-membership parameters: - *85 - - *757 + - *754 responses: '200': description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: *764 + default: *761 '304': *35 - '404': *762 - '403': *763 + '404': *759 + '403': *760 requestBody: required: true content: @@ -111284,19 +110826,19 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#update-an-attribute-for-a-scim-user parameters: - *85 - - *757 + - *754 responses: '200': description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: *764 + default: *761 '304': *35 - '404': *762 - '403': *763 - '400': *742 + '404': *759 + '403': *760 + '400': *739 '429': description: Response content: @@ -111392,12 +110934,12 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#delete-a-scim-user-from-an-organization parameters: - *85 - - *757 + - *754 responses: '204': description: Response - '404': *762 - '403': *763 + '404': *759 + '403': *760 '304': *35 x-github: githubCloudOnly: true @@ -111531,7 +111073,7 @@ paths: examples: - 73..77 - 77..78 - text_matches: &765 + text_matches: &762 title: Search Result Text Matches type: array items: @@ -111695,7 +111237,7 @@ paths: enum: - author-date - committer-date - - &766 + - &763 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 @@ -111764,7 +111306,7 @@ paths: committer: anyOf: - type: 'null' - - *492 + - *489 comment_count: type: integer message: @@ -111783,7 +111325,7 @@ paths: url: type: string format: uri - verification: *615 + verification: *612 required: - author - committer @@ -111798,7 +111340,7 @@ paths: committer: anyOf: - type: 'null' - - *492 + - *489 parents: type: array items: @@ -111815,7 +111357,7 @@ paths: type: number node_id: type: string - text_matches: *765 + text_matches: *762 required: - sha - node_id @@ -112008,7 +111550,7 @@ paths: - interactions - created - updated - - *766 + - *763 - *17 - *19 - name: advanced_search @@ -112105,11 +111647,11 @@ paths: type: - string - 'null' - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: type: string state_reason: @@ -112137,7 +111679,7 @@ paths: - string - 'null' format: date-time - text_matches: *765 + text_matches: *762 pull_request: type: object properties: @@ -112360,7 +111902,7 @@ paths: enum: - created - updated - - *766 + - *763 - *17 - *19 responses: @@ -112405,7 +111947,7 @@ paths: - 'null' score: type: number - text_matches: *765 + text_matches: *762 required: - id - node_id @@ -112491,7 +112033,7 @@ paths: - forks - help-wanted-issues - updated - - *766 + - *763 - *17 - *19 responses: @@ -112728,7 +112270,7 @@ paths: - admin - pull - push - text_matches: *765 + text_matches: *762 temp_clone_token: type: string allow_merge_commit: @@ -113037,7 +112579,7 @@ paths: - string - 'null' format: uri - text_matches: *765 + text_matches: *762 related: type: - array @@ -113232,7 +112774,7 @@ paths: - followers - repositories - joined - - *766 + - *763 - *17 - *19 responses: @@ -113342,7 +112884,7 @@ paths: type: - boolean - 'null' - text_matches: *765 + text_matches: *762 blog: type: - string @@ -113424,7 +112966,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-legacy parameters: - - &770 + - &767 name: team_id description: The unique identifier of the team. in: path @@ -113465,7 +113007,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team-legacy parameters: - - *770 + - *767 requestBody: required: true content: @@ -113566,7 +113108,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team-legacy parameters: - - *770 + - *767 responses: '204': description: Response @@ -113580,226 +113122,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions-legacy - parameters: - - *770 - - *108 - - *17 - - *19 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: *433 - examples: - default: *771 - headers: - Link: *45 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy - parameters: - - *770 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *433 - examples: - default: *434 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion-legacy - parameters: - - *770 - - *435 - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: *434 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy - parameters: - - *770 - - *435 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: *772 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy - parameters: - - *770 - - *435 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -113815,7 +113137,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations-legacy parameters: - - *770 + - *767 - *17 - *19 responses: @@ -113853,7 +113175,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members-legacy parameters: - - *770 + - *767 - name: role description: Filters members returned by their role in the team. in: query @@ -113904,7 +113226,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-member-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -113941,7 +113263,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-team-member-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -113981,7 +113303,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-member-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -114018,16 +113340,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user-legacy parameters: - - *770 + - *767 - *137 responses: '200': description: Response content: application/json: - schema: *440 + schema: *437 examples: - response-if-user-is-a-team-maintainer: *773 + response-if-user-is-a-team-maintainer: *768 '404': *6 x-github: githubCloudOnly: false @@ -114060,7 +113382,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user-legacy parameters: - - *770 + - *767 - *137 requestBody: required: false @@ -114086,9 +113408,9 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - response-if-users-membership-with-team-is-now-pending: *774 + response-if-users-membership-with-team-is-now-pending: *769 '403': description: Forbidden if team synchronization is set up '422': @@ -114122,7 +113444,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -114150,7 +113472,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories-legacy parameters: - - *770 + - *767 - *17 - *19 responses: @@ -114192,15 +113514,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-repository-legacy parameters: - - *770 - - *441 - - *442 + - *767 + - *438 + - *439 responses: '200': description: Alternative response with extra repository information content: application/json: - schema: *775 + schema: *770 examples: alternative-response-with-extra-repository-information: value: @@ -114351,9 +113673,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-repository-permissions-legacy parameters: - - *770 - - *441 - - *442 + - *767 + - *438 + - *439 requestBody: required: false content: @@ -114403,9 +113725,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-repository-from-a-team-legacy parameters: - - *770 - - *441 - - *442 + - *767 + - *438 + - *439 responses: '204': description: Response @@ -114434,15 +113756,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#list-idp-groups-for-a-team-legacy parameters: - - *770 + - *767 responses: '200': description: Response content: application/json: - schema: *443 + schema: *440 examples: - default: *444 + default: *441 '403': *27 '404': *6 x-github: @@ -114469,7 +113791,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#create-or-update-idp-group-connections-legacy parameters: - - *770 + - *767 requestBody: required: true content: @@ -114530,7 +113852,7 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: default: value: @@ -114561,7 +113883,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams-legacy parameters: - - *770 + - *767 - *17 - *19 responses: @@ -114573,7 +113895,7 @@ paths: type: array items: *302 examples: - response-if-child-teams-exist: *776 + response-if-child-teams-exist: *771 headers: Link: *45 '404': *6 @@ -114606,7 +113928,7 @@ paths: application/json: schema: oneOf: - - &778 + - &773 title: Private User description: Private User type: object @@ -114856,7 +114178,7 @@ paths: - private_gists - total_private_repos - two_factor_authentication - - *777 + - *772 examples: response-with-public-and-private-profile-information: summary: Response with public and private profile information @@ -115016,7 +114338,7 @@ paths: description: Response content: application/json: - schema: *778 + schema: *773 examples: default: value: @@ -115362,7 +114684,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -115370,7 +114692,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '401': *23 '403': *27 '404': *6 @@ -115414,7 +114736,7 @@ paths: type: integer secrets: type: array - items: &779 + items: &774 title: Codespaces Secret description: Secrets for a GitHub Codespace. type: object @@ -115456,7 +114778,7 @@ paths: - visibility - selected_repositories_url examples: - default: *546 + default: *543 headers: Link: *45 x-github: @@ -115534,7 +114856,7 @@ paths: description: Response content: application/json: - schema: *779 + schema: *774 examples: default: value: @@ -115680,7 +115002,7 @@ paths: type: array items: *273 examples: - default: *780 + default: *775 '401': *23 '403': *27 '404': *6 @@ -115832,7 +115154,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '304': *35 '500': *38 '401': *23 @@ -115890,7 +115212,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '401': *23 '403': *27 '404': *6 @@ -115947,7 +115269,7 @@ paths: description: Response content: application/json: - schema: &781 + schema: &776 type: object title: Fetches information about an export of a codespace. description: An export of a codespace. Also, latest export details @@ -116000,7 +115322,7 @@ paths: examples: - https://github.com/octocat/hello-world/tree/:branch examples: - default: &782 + default: &777 value: state: succeeded completed_at: '2022-01-01T14:59:22Z' @@ -116045,9 +115367,9 @@ paths: description: Response content: application/json: - schema: *781 + schema: *776 examples: - default: *782 + default: *777 '404': *6 x-github: githubCloudOnly: false @@ -116084,9 +115406,9 @@ paths: type: integer machines: type: array - items: *545 + items: *542 examples: - default: *783 + default: *778 '304': *35 '500': *38 '401': *23 @@ -116171,11 +115493,11 @@ paths: - 26a7c758-7299-4a73-b978-5a92a7ae98a0 owner: *4 billable_owner: *4 - repository: *446 + repository: *443 machine: anyOf: - type: 'null' - - *545 + - *542 devcontainer_path: description: Path to devcontainer.json from repo root used to create Codespace. @@ -116980,7 +116302,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '304': *35 '500': *38 '400': *14 @@ -117020,7 +116342,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '500': *38 '401': *23 '403': *27 @@ -117052,7 +116374,7 @@ paths: type: array items: *373 examples: - default: &794 + default: &789 value: - id: 197 name: hello_docker @@ -117153,7 +116475,7 @@ paths: application/json: schema: type: array - items: &784 + items: &779 title: Email description: Email type: object @@ -117223,9 +116545,9 @@ paths: application/json: schema: type: array - items: *784 + items: *779 examples: - default: &796 + default: &791 value: - email: octocat@github.com verified: true @@ -117302,7 +116624,7 @@ paths: application/json: schema: type: array - items: *784 + items: *779 examples: default: value: @@ -117560,7 +116882,7 @@ paths: application/json: schema: type: array - items: &785 + items: &780 title: GPG Key description: A unique encryption key type: object @@ -117705,7 +117027,7 @@ paths: - subkeys - revoked examples: - default: &810 + default: &805 value: - id: 3 name: Octocat's GPG Key @@ -117790,9 +117112,9 @@ paths: description: Response content: application/json: - schema: *785 + schema: *780 examples: - default: &786 + default: &781 value: id: 3 name: Octocat's GPG Key @@ -117849,7 +117171,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user parameters: - - &787 + - &782 name: gpg_key_id description: The unique identifier of the GPG key. in: path @@ -117861,9 +117183,9 @@ paths: description: Response content: application/json: - schema: *785 + schema: *780 examples: - default: *786 + default: *781 '404': *6 '304': *35 '403': *27 @@ -117886,7 +117208,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user parameters: - - *787 + - *782 responses: '204': description: Response @@ -118191,7 +117513,7 @@ paths: required: true content: application/json: - schema: *626 + schema: *623 examples: default: value: @@ -118341,7 +117663,7 @@ paths: application/json: schema: type: array - items: &788 + items: &783 title: Key description: Key type: object @@ -118444,9 +117766,9 @@ paths: description: Response content: application/json: - schema: *788 + schema: *783 examples: - default: &789 + default: &784 value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 @@ -118479,15 +117801,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user parameters: - - *655 + - *652 responses: '200': description: Response content: application/json: - schema: *788 + schema: *783 examples: - default: *789 + default: *784 '404': *6 '304': *35 '403': *27 @@ -118510,7 +117832,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user parameters: - - *655 + - *652 responses: '204': description: Response @@ -118543,7 +117865,7 @@ paths: application/json: schema: type: array - items: &790 + items: &785 title: User Marketplace Purchase description: User Marketplace Purchase type: object @@ -118622,7 +117944,7 @@ paths: - account - plan examples: - default: &791 + default: &786 value: - billing_cycle: monthly next_billing_date: '2017-11-11T00:00:00Z' @@ -118684,9 +118006,9 @@ paths: application/json: schema: type: array - items: *790 + items: *785 examples: - default: *791 + default: *786 headers: Link: *45 '304': *35 @@ -119704,7 +119026,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/users#unlock-a-user-repository parameters: - *369 - - *792 + - *787 responses: '204': description: Response @@ -119819,7 +119141,7 @@ paths: - docker - nuget - container - - *793 + - *788 - *19 - *17 responses: @@ -119831,8 +119153,8 @@ paths: type: array items: *373 examples: - default: *794 - '400': *795 + default: *789 + '400': *790 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -119861,7 +119183,7 @@ paths: application/json: schema: *373 examples: - default: &811 + default: &806 value: id: 40201 name: octo-name @@ -120223,9 +119545,9 @@ paths: application/json: schema: type: array - items: *784 + items: *779 examples: - default: *796 + default: *791 headers: Link: *45 '304': *35 @@ -120338,7 +119660,7 @@ paths: type: array items: *76 examples: - default: &803 + default: &798 summary: Default response value: - id: 1296269 @@ -120656,9 +119978,9 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -120696,9 +120018,9 @@ paths: application/json: schema: type: array - items: *628 + items: *625 examples: - default: *797 + default: *792 headers: Link: *45 '304': *35 @@ -120777,7 +120099,7 @@ paths: application/json: schema: type: array - items: &798 + items: &793 title: Social account description: Social media account type: object @@ -120794,7 +120116,7 @@ paths: - provider - url examples: - default: &799 + default: &794 value: - provider: twitter url: https://twitter.com/github @@ -120857,9 +120179,9 @@ paths: application/json: schema: type: array - items: *798 + items: *793 examples: - default: *799 + default: *794 '422': *15 '304': *35 '404': *6 @@ -120947,7 +120269,7 @@ paths: application/json: schema: type: array - items: &800 + items: &795 title: SSH Signing Key description: A public SSH key used to sign Git commits type: object @@ -120967,7 +120289,7 @@ paths: - title - created_at examples: - default: &825 + default: &820 value: - id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -121032,9 +120354,9 @@ paths: description: Response content: application/json: - schema: *800 + schema: *795 examples: - default: &801 + default: &796 value: id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -121064,7 +120386,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user parameters: - - &802 + - &797 name: ssh_signing_key_id description: The unique identifier of the SSH signing key. in: path @@ -121076,9 +120398,9 @@ paths: description: Response content: application/json: - schema: *800 + schema: *795 examples: - default: *801 + default: *796 '404': *6 '304': *35 '403': *27 @@ -121101,7 +120423,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user parameters: - - *802 + - *797 responses: '204': description: Response @@ -121130,7 +120452,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#list-repositories-starred-by-the-authenticated-user parameters: - - &826 + - &821 name: sort description: The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed @@ -121155,11 +120477,11 @@ paths: type: array items: *76 examples: - default-response: *803 + default-response: *798 application/vnd.github.v3.star+json: schema: type: array - items: &827 + items: &822 title: Starred Repository description: Starred Repository type: object @@ -121315,8 +120637,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response if this repository is starred by you @@ -121344,8 +120666,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#star-a-repository-for-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -121369,8 +120691,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#unstar-a-repository-for-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -121528,10 +120850,10 @@ paths: application/json: schema: oneOf: - - *778 - - *777 + - *773 + - *772 examples: - default-response: &805 + default-response: &800 summary: Default response value: login: octocat @@ -121566,7 +120888,7 @@ paths: following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' - response-with-git-hub-plan-information: &806 + response-with-git-hub-plan-information: &801 summary: Response with GitHub plan information value: login: octocat @@ -121688,7 +121010,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/users#list-users parameters: - - *804 + - *799 - *17 responses: '200': @@ -121737,11 +121059,11 @@ paths: application/json: schema: oneOf: - - *778 - - *777 + - *773 + - *772 examples: - default-response: *805 - response-with-git-hub-plan-information: *806 + default-response: *800 + response-with-git-hub-plan-information: *801 '404': *6 x-github: githubCloudOnly: false @@ -121791,8 +121113,8 @@ paths: required: - subject_digests examples: - default: *807 - withPredicateType: *808 + default: *802 + withPredicateType: *803 responses: '200': description: Response @@ -121846,7 +121168,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: *809 + default: *804 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -122051,7 +121373,7 @@ paths: initiator: type: string examples: - default: *488 + default: *485 '201': description: Response content: @@ -122092,7 +121414,7 @@ paths: type: array items: *373 examples: - default: *794 + default: *789 '403': *27 '401': *23 x-github: @@ -122476,9 +121798,9 @@ paths: application/json: schema: type: array - items: *785 + items: *780 examples: - default: *810 + default: *805 headers: Link: *45 x-github: @@ -122582,7 +121904,7 @@ paths: application/json: schema: *20 examples: - default: *625 + default: *622 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -122707,7 +122029,7 @@ paths: - docker - nuget - container - - *793 + - *788 - *137 - *19 - *17 @@ -122720,10 +122042,10 @@ paths: type: array items: *373 examples: - default: *794 + default: *789 '403': *27 '401': *23 - '400': *795 + '400': *790 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -122753,7 +122075,7 @@ paths: application/json: schema: *373 examples: - default: *811 + default: *806 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -123102,7 +122424,7 @@ paths: type: array items: *394 examples: - default: *812 + default: *807 headers: Link: *45 '304': *35 @@ -123162,7 +122484,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: *813 + items: *808 required: - name - data_type @@ -123178,7 +122500,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: *814 + iteration_configuration: *809 required: - name - data_type @@ -123200,8 +122522,8 @@ paths: value: name: Due date data_type: date - single_select_field: *815 - iteration_field: *816 + single_select_field: *810 + iteration_field: *811 responses: '201': description: Response @@ -123209,11 +122531,11 @@ paths: application/json: schema: *394 examples: - text_field: *817 - number_field: *818 - date_field: *819 - single_select_field: *820 - iteration_field: *821 + text_field: *812 + number_field: *813 + date_field: *814 + single_select_field: *815 + iteration_field: *816 '304': *35 '403': *27 '401': *23 @@ -123235,7 +122557,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/projects/fields#get-project-field-for-user parameters: - *391 - - *822 + - *817 - *137 responses: '200': @@ -123244,7 +122566,7 @@ paths: application/json: schema: *394 examples: - default: *823 + default: *818 headers: Link: *45 '304': *35 @@ -123601,7 +122923,7 @@ paths: parameters: - *391 - *137 - - *824 + - *819 - name: fields description: |- Limit results to specific fields, by their IDs. If not specified, the @@ -123880,9 +123202,9 @@ paths: application/json: schema: type: array - items: *798 + items: *793 examples: - default: *799 + default: *794 headers: Link: *45 x-github: @@ -123912,9 +123234,9 @@ paths: application/json: schema: type: array - items: *800 + items: *795 examples: - default: *825 + default: *820 headers: Link: *45 x-github: @@ -123939,7 +123261,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#list-repositories-starred-by-a-user parameters: - *137 - - *826 + - *821 - *108 - *17 - *19 @@ -123951,11 +123273,11 @@ paths: schema: anyOf: - type: array - items: *827 + items: *822 - type: array items: *76 examples: - default-response: *803 + default-response: *798 headers: Link: *45 x-github: @@ -124115,7 +123437,7 @@ webhooks: type: string enum: - disabled - enterprise: &828 + enterprise: &823 title: Enterprise description: |- An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -124184,7 +123506,7 @@ webhooks: - created_at - updated_at - avatar_url - installation: &829 + installation: &824 title: Simple Installation description: |- The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured @@ -124205,7 +123527,7 @@ webhooks: required: - id - node_id - organization: &830 + organization: &825 title: Organization Simple description: |- A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -124278,7 +123600,7 @@ webhooks: - public_members_url - avatar_url - description - repository: &831 + repository: &826 title: Repository description: |- The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -125191,10 +124513,10 @@ webhooks: type: string enum: - enabled - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -125270,11 +124592,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - rule: &832 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + rule: &827 title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) @@ -125497,11 +124819,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - rule: *832 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + rule: *827 sender: *4 required: - action @@ -125689,11 +125011,11 @@ webhooks: - everyone required: - from - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - rule: *832 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + rule: *827 sender: *4 required: - action @@ -125766,7 +125088,7 @@ webhooks: required: true content: application/json: - schema: &852 + schema: &847 title: Exemption request cancellation event type: object properties: @@ -125774,11 +125096,11 @@ webhooks: type: string enum: - cancelled - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: &833 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: &828 title: Exemption Request description: A request from a user to be exempted from a set of rules. @@ -126052,7 +125374,7 @@ webhooks: - array - 'null' description: The responses to the exemption request. - items: &834 + items: &829 title: Exemption response description: A response to an exemption request by a delegated bypasser. @@ -126164,7 +125486,7 @@ webhooks: required: true content: application/json: - schema: &853 + schema: &848 title: Exemption request completed event type: object properties: @@ -126172,11 +125494,11 @@ webhooks: type: string enum: - completed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 sender: *4 required: - action @@ -126248,7 +125570,7 @@ webhooks: required: true content: application/json: - schema: &850 + schema: &845 title: Exemption request created event type: object properties: @@ -126256,11 +125578,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 sender: *4 required: - action @@ -126332,7 +125654,7 @@ webhooks: required: true content: application/json: - schema: &854 + schema: &849 title: Exemption response dismissed event type: object properties: @@ -126340,12 +125662,12 @@ webhooks: type: string enum: - response_dismissed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 - exemption_response: *834 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 + exemption_response: *829 sender: *4 required: - action @@ -126419,7 +125741,7 @@ webhooks: required: true content: application/json: - schema: &851 + schema: &846 title: Exemption response submitted event type: object properties: @@ -126427,12 +125749,12 @@ webhooks: type: string enum: - response_submitted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 - exemption_response: *834 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 + exemption_response: *829 sender: *4 required: - action @@ -126516,7 +125838,7 @@ webhooks: type: string enum: - completed - check_run: &836 + check_run: &831 title: CheckRun description: A check performed on the code of a given code change type: object @@ -126626,7 +125948,7 @@ webhooks: - examples: - neutral - deployment: *835 + deployment: *830 details_url: type: string examples: @@ -126724,10 +126046,10 @@ webhooks: - output - app - pull_requests - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 sender: *4 required: - check_run @@ -127120,11 +126442,11 @@ webhooks: type: string enum: - created - check_run: *836 - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + check_run: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 sender: *4 required: - check_run @@ -127520,11 +126842,11 @@ webhooks: type: string enum: - requested_action - check_run: *836 - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + check_run: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 requested_action: description: The action requested by the user. type: object @@ -127929,11 +127251,11 @@ webhooks: type: string enum: - rerequested - check_run: *836 - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + check_run: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 sender: *4 required: - check_run @@ -128925,10 +128247,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -129637,10 +128959,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -130343,10 +129665,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -130515,7 +129837,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -130667,20 +129989,20 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: &837 + commit_oid: &832 description: The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - enterprise: *828 - installation: *829 - organization: *830 - ref: &838 + enterprise: *823 + installation: *824 + organization: *825 + ref: &833 description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - repository: *831 + repository: *826 sender: *4 required: - action @@ -130847,7 +130169,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -131088,12 +130410,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -131191,7 +130513,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -131376,12 +130698,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -131550,7 +130872,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -131727,12 +131049,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -131833,7 +131155,7 @@ webhooks: type: - object - 'null' - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -132022,9 +131344,9 @@ webhooks: type: - string - 'null' - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 ref: description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event @@ -132032,7 +131354,7 @@ webhooks: type: - string - 'null' - repository: *831 + repository: *826 sender: *4 required: - action @@ -132131,7 +131453,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -132278,12 +131600,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -132452,7 +131774,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -132604,10 +131926,10 @@ webhooks: - dismissed_reason - rule - tool - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -132867,10 +132189,10 @@ webhooks: - updated_at - author_association - body - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -132951,18 +132273,18 @@ webhooks: type: - string - 'null' - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 master_branch: description: The name of the repository's default branch (usually `main`). type: string - organization: *830 - pusher_type: &839 + organization: *825 + pusher_type: &834 description: The pusher type for the event. Can be either `user` or a deploy key. type: string - ref: &840 + ref: &835 description: The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource. type: string @@ -132972,7 +132294,7 @@ webhooks: enum: - tag - branch - repository: *831 + repository: *826 sender: *4 required: - ref @@ -133055,9 +132377,9 @@ webhooks: enum: - created definition: *151 - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133142,9 +132464,9 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133222,9 +132544,9 @@ webhooks: enum: - promote_to_enterprise definition: *151 - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133302,9 +132624,9 @@ webhooks: enum: - updated definition: *151 - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133381,10 +132703,10 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - repository: *831 - organization: *830 + enterprise: *823 + installation: *824 + repository: *826 + organization: *825 sender: *4 new_property_values: type: array @@ -133469,18 +132791,18 @@ webhooks: title: delete event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - pusher_type: *839 - ref: *840 + enterprise: *823 + installation: *824 + organization: *825 + pusher_type: *834 + ref: *835 ref_type: description: The type of Git ref object deleted in the repository. type: string enum: - tag - branch - repository: *831 + repository: *826 sender: *4 required: - ref @@ -133564,11 +132886,11 @@ webhooks: type: string enum: - auto_dismissed - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133652,11 +132974,11 @@ webhooks: type: string enum: - auto_reopened - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133740,11 +133062,11 @@ webhooks: type: string enum: - created - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133826,11 +133148,11 @@ webhooks: type: string enum: - dismissed - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133912,11 +133234,11 @@ webhooks: type: string enum: - fixed - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133999,11 +133321,11 @@ webhooks: type: string enum: - reintroduced - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -134085,11 +133407,11 @@ webhooks: type: string enum: - reopened - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -134166,9 +133488,9 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - key: &841 + enterprise: *823 + installation: *824 + key: &836 description: The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. type: object @@ -134206,8 +133528,8 @@ webhooks: - verified - created_at - read_only - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -134284,11 +133606,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - key: *841 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + key: *836 + organization: *825 + repository: *826 sender: *4 required: - action @@ -134860,12 +134182,12 @@ webhooks: - updated_at - statuses_url - repository_url - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: &845 + workflow: &840 title: Workflow type: - object @@ -135603,13 +134925,13 @@ webhooks: description: The URL to review the deployment protection rule. type: string format: uri - deployment: *580 + deployment: *577 pull_requests: type: array - items: *675 - repository: *831 - organization: *830 - installation: *829 + items: *672 + repository: *826 + organization: *825 + installation: *824 sender: *4 responses: '200': @@ -135680,7 +135002,7 @@ webhooks: type: string enum: - approved - approver: &842 + approver: &837 type: object properties: avatar_url: @@ -135723,11 +135045,11 @@ webhooks: type: string comment: type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - reviewers: &843 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + reviewers: &838 type: array items: type: object @@ -135808,7 +135130,7 @@ webhooks: sender: *4 since: type: string - workflow_job_run: &844 + workflow_job_run: &839 type: object properties: conclusion: @@ -136554,18 +135876,18 @@ webhooks: type: string enum: - rejected - approver: *842 + approver: *837 comment: type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - reviewers: *843 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + reviewers: *838 sender: *4 since: type: string - workflow_job_run: *844 + workflow_job_run: *839 workflow_job_runs: type: array items: @@ -137282,13 +136604,13 @@ webhooks: type: string enum: - requested - enterprise: *828 + enterprise: *823 environment: type: string - installation: *829 - organization: *830 - repository: *831 - requestor: &855 + installation: *824 + organization: *825 + repository: *826 + requestor: &850 title: User type: - object @@ -139231,12 +138553,12 @@ webhooks: - updated_at - deployment_url - repository_url - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Deployment Workflow Run type: @@ -139927,7 +139249,7 @@ webhooks: type: string enum: - answered - answer: &848 + answer: &843 type: object properties: author_association: @@ -140087,11 +139409,11 @@ webhooks: - created_at - updated_at - body - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140218,11 +139540,11 @@ webhooks: - from required: - category - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140305,11 +139627,11 @@ webhooks: type: string enum: - closed - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140391,7 +139713,7 @@ webhooks: type: string enum: - created - comment: &847 + comment: &842 type: object properties: author_association: @@ -140551,11 +139873,11 @@ webhooks: - updated_at - body - reactions - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140638,12 +139960,12 @@ webhooks: type: string enum: - deleted - comment: *847 - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + comment: *842 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140738,12 +140060,12 @@ webhooks: - from required: - body - comment: *847 - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + comment: *842 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140827,11 +140149,11 @@ webhooks: type: string enum: - created - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140913,11 +140235,11 @@ webhooks: type: string enum: - deleted - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141017,11 +140339,11 @@ webhooks: type: string required: - from - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141103,10 +140425,10 @@ webhooks: type: string enum: - labeled - discussion: *846 - enterprise: *828 - installation: *829 - label: &849 + discussion: *841 + enterprise: *823 + installation: *824 + label: &844 title: Label type: object properties: @@ -141139,8 +140461,8 @@ webhooks: - color - default - description - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141223,11 +140545,11 @@ webhooks: type: string enum: - locked - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141309,11 +140631,11 @@ webhooks: type: string enum: - pinned - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141395,11 +140717,11 @@ webhooks: type: string enum: - reopened - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141484,16 +140806,16 @@ webhooks: changes: type: object properties: - new_discussion: *846 - new_repository: *831 + new_discussion: *841 + new_repository: *826 required: - new_discussion - new_repository - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141576,10 +140898,10 @@ webhooks: type: string enum: - unanswered - discussion: *846 - old_answer: *848 - organization: *830 - repository: *831 + discussion: *841 + old_answer: *843 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141661,12 +140983,12 @@ webhooks: type: string enum: - unlabeled - discussion: *846 - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141749,11 +141071,11 @@ webhooks: type: string enum: - unlocked - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141835,11 +141157,11 @@ webhooks: type: string enum: - unpinned - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141908,7 +141230,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -141971,7 +141293,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142034,7 +141356,7 @@ webhooks: required: true content: application/json: - schema: *852 + schema: *847 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142097,7 +141419,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142160,7 +141482,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142226,7 +141548,7 @@ webhooks: required: true content: application/json: - schema: *852 + schema: *847 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142292,7 +141614,7 @@ webhooks: required: true content: application/json: - schema: *853 + schema: *848 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142358,7 +141680,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142424,7 +141746,7 @@ webhooks: required: true content: application/json: - schema: *854 + schema: *849 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142490,7 +141812,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142555,7 +141877,7 @@ webhooks: required: true content: application/json: - schema: *852 + schema: *847 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142620,7 +141942,7 @@ webhooks: required: true content: application/json: - schema: *853 + schema: *848 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142685,7 +142007,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142750,7 +142072,7 @@ webhooks: required: true content: application/json: - schema: *854 + schema: *849 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142816,7 +142138,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142883,7 +142205,7 @@ webhooks: description: A user forks a repository. type: object properties: - enterprise: *828 + enterprise: *823 forkee: description: The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource. @@ -143561,9 +142883,9 @@ webhooks: type: integer watchers_count: type: integer - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - forkee @@ -143709,9 +143031,9 @@ webhooks: title: gollum event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pages: description: The pages that were updated. type: array @@ -143749,7 +143071,7 @@ webhooks: - action - sha - html_url - repository: *831 + repository: *826 sender: *4 required: - pages @@ -143825,10 +143147,10 @@ webhooks: type: string enum: - created - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: &856 + organization: *825 + repositories: &851 description: An array of repository objects that the installation can access. type: array @@ -143854,8 +143176,8 @@ webhooks: - name - full_name - private - repository: *831 - requester: *855 + repository: *826 + requester: *850 sender: *4 required: - action @@ -143930,11 +143252,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144011,11 +143333,11 @@ webhooks: type: string enum: - new_permissions_accepted - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144092,10 +143414,10 @@ webhooks: type: string enum: - added - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories_added: &857 + organization: *825 + repositories_added: &852 description: An array of repository objects, which were added to the installation. type: array @@ -144141,15 +143463,15 @@ webhooks: private: description: Whether the repository is private or public. type: boolean - repository: *831 - repository_selection: &858 + repository: *826 + repository_selection: &853 description: Describe whether all repositories have been selected or there's a selection involved type: string enum: - all - selected - requester: *855 + requester: *850 sender: *4 required: - action @@ -144228,10 +143550,10 @@ webhooks: type: string enum: - removed - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories_added: *857 + organization: *825 + repositories_added: *852 repositories_removed: description: An array of repository objects, which were removed from the installation. @@ -144258,9 +143580,9 @@ webhooks: - name - full_name - private - repository: *831 - repository_selection: *858 - requester: *855 + repository: *826 + repository_selection: *853 + requester: *850 sender: *4 required: - action @@ -144339,11 +143661,11 @@ webhooks: type: string enum: - suspend - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144526,10 +143848,10 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 target_type: type: string @@ -144608,11 +143930,11 @@ webhooks: type: string enum: - unsuspend - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144860,8 +144182,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. @@ -145678,8 +145000,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 state: description: State of the issue; either 'open' or 'closed' type: string @@ -146040,8 +145362,8 @@ webhooks: - state - locked - assignee - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -146121,7 +145443,7 @@ webhooks: type: string enum: - deleted - comment: &859 + comment: &854 title: issue comment description: The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself. @@ -146288,8 +145610,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. @@ -147102,8 +146424,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 state: description: State of the issue; either 'open' or 'closed' type: string @@ -147466,8 +146788,8 @@ webhooks: - state - locked - assignee - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -147547,7 +146869,7 @@ webhooks: type: string enum: - edited - changes: &883 + changes: &878 description: The changes to the comment. type: object properties: @@ -147559,9 +146881,9 @@ webhooks: type: string required: - from - comment: *859 - enterprise: *828 - installation: *829 + comment: *854 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. @@ -148377,8 +147699,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 state: description: State of the issue; either 'open' or 'closed' type: string @@ -148739,8 +148061,8 @@ webhooks: - state - locked - assignee - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -148830,9 +148152,9 @@ webhooks: type: number blocking_issue: *213 blocking_issue_repo: *76 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -148921,9 +148243,9 @@ webhooks: type: number blocking_issue: *213 blocking_issue_repo: *76 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -149011,9 +148333,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -149102,9 +148424,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -149184,10 +148506,10 @@ webhooks: type: string enum: - assigned - assignee: *855 - enterprise: *828 - installation: *829 - issue: &862 + assignee: *850 + enterprise: *823 + installation: *824 + issue: &857 title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself. @@ -149999,11 +149321,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -150123,8 +149445,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -150204,8 +149526,8 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself. @@ -151022,11 +150344,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -151289,8 +150611,8 @@ webhooks: required: - state - closed_at - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -151369,8 +150691,8 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -152178,11 +151500,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -152301,8 +151623,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -152381,8 +151703,8 @@ webhooks: type: string enum: - demilestoned - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -153213,11 +152535,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -153315,7 +152637,7 @@ webhooks: format: uri user_view_type: type: string - milestone: &860 + milestone: &855 title: Milestone description: A collection of related issues and pull requests. type: object @@ -153458,8 +152780,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -153558,8 +152880,8 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -154371,11 +153693,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -154495,9 +153817,9 @@ webhooks: - active_lock_reason - body - reactions - label: *849 - organization: *830 - repository: *831 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -154577,8 +153899,8 @@ webhooks: type: string enum: - labeled - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -155389,11 +154711,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -155513,9 +154835,9 @@ webhooks: - active_lock_reason - body - reactions - label: *849 - organization: *830 - repository: *831 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -155595,8 +154917,8 @@ webhooks: type: string enum: - locked - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -156432,11 +155754,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -156533,8 +155855,8 @@ webhooks: format: uri user_view_type: type: string - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -156613,8 +155935,8 @@ webhooks: type: string enum: - milestoned - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -157444,11 +156766,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -157545,9 +156867,9 @@ webhooks: format: uri user_view_type: type: string - milestone: *860 - organization: *830 - repository: *831 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -158439,11 +157761,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -159020,8 +158342,8 @@ webhooks: required: - old_issue - old_repository - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -159833,11 +159155,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -159956,8 +159278,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -160037,9 +159359,9 @@ webhooks: type: string enum: - pinned - enterprise: *828 - installation: *829 - issue: &861 + enterprise: *823 + installation: *824 + issue: &856 title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself. @@ -160845,11 +160167,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -160968,8 +160290,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -161048,8 +160370,8 @@ webhooks: type: string enum: - reopened - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -161883,11 +161205,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -161985,8 +161307,8 @@ webhooks: user_view_type: type: string type: *358 - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -162875,11 +162197,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -163478,11 +162800,11 @@ webhooks: required: - new_issue - new_repository - enterprise: *828 - installation: *829 - issue: *861 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *856 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163562,12 +162884,12 @@ webhooks: type: string enum: - typed - enterprise: *828 - installation: *829 - issue: *862 + enterprise: *823 + installation: *824 + issue: *857 type: *358 - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163648,7 +162970,7 @@ webhooks: type: string enum: - unassigned - assignee: &886 + assignee: &881 title: User type: - object @@ -163720,11 +163042,11 @@ webhooks: required: - login - id - enterprise: *828 - installation: *829 - issue: *862 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *857 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163803,12 +163125,12 @@ webhooks: type: string enum: - unlabeled - enterprise: *828 - installation: *829 - issue: *862 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *857 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163888,8 +163210,8 @@ webhooks: type: string enum: - unlocked - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -164723,11 +164045,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -164824,8 +164146,8 @@ webhooks: format: uri user_view_type: type: string - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -164905,11 +164227,11 @@ webhooks: type: string enum: - unpinned - enterprise: *828 - installation: *829 - issue: *861 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *856 + organization: *825 + repository: *826 sender: *4 required: - action @@ -164988,12 +164310,12 @@ webhooks: type: string enum: - untyped - enterprise: *828 - installation: *829 - issue: *862 + enterprise: *823 + installation: *824 + issue: *857 type: *358 - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165073,11 +164395,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165155,11 +164477,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165269,11 +164591,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165355,9 +164677,9 @@ webhooks: - cancelled effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: &863 + enterprise: *823 + installation: *824 + marketplace_purchase: &858 title: Marketplace Purchase type: object required: @@ -165445,8 +164767,8 @@ webhooks: type: integer unit_count: type: integer - organization: *830 - previous_marketplace_purchase: &864 + organization: *825 + previous_marketplace_purchase: &859 title: Marketplace Purchase type: object properties: @@ -165530,7 +164852,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *831 + repository: *826 sender: *4 required: - action @@ -165610,10 +164932,10 @@ webhooks: - changed effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: *863 - organization: *830 + enterprise: *823 + installation: *824 + marketplace_purchase: *858 + organization: *825 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -165701,7 +165023,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *831 + repository: *826 sender: *4 required: - action @@ -165783,10 +165105,10 @@ webhooks: - pending_change effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: *863 - organization: *830 + enterprise: *823 + installation: *824 + marketplace_purchase: *858 + organization: *825 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -165872,7 +165194,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *831 + repository: *826 sender: *4 required: - action @@ -165953,8 +165275,8 @@ webhooks: - pending_change_cancelled effective_date: type: string - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 marketplace_purchase: title: Marketplace Purchase type: object @@ -166040,9 +165362,9 @@ webhooks: type: integer unit_count: type: integer - organization: *830 - previous_marketplace_purchase: *864 - repository: *831 + organization: *825 + previous_marketplace_purchase: *859 + repository: *826 sender: *4 required: - action @@ -166122,12 +165444,12 @@ webhooks: - purchased effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: *863 - organization: *830 - previous_marketplace_purchase: *864 - repository: *831 + enterprise: *823 + installation: *824 + marketplace_purchase: *858 + organization: *825 + previous_marketplace_purchase: *859 + repository: *826 sender: *4 required: - action @@ -166229,11 +165551,11 @@ webhooks: type: string required: - to - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 sender: *4 required: - action @@ -166335,11 +165657,11 @@ webhooks: type: - string - 'null' - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 sender: *4 required: - action @@ -166418,11 +165740,11 @@ webhooks: type: string enum: - removed - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 sender: *4 required: - action @@ -166500,11 +165822,11 @@ webhooks: type: string enum: - added - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 scope: description: The scope of the membership. Currently, can only be `team`. @@ -166582,7 +165904,7 @@ webhooks: required: - login - id - team: &865 + team: &860 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -166812,11 +166134,11 @@ webhooks: type: string enum: - removed - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 scope: description: The scope of the membership. Currently, can only be `team`. @@ -166895,7 +166217,7 @@ webhooks: required: - login - id - team: *865 + team: *860 required: - action - scope @@ -166977,8 +166299,8 @@ webhooks: type: string enum: - checks_requested - installation: *829 - merge_group: &866 + installation: *824 + merge_group: &861 type: object title: Merge Group description: A group of pull requests that the merge queue has grouped @@ -166997,15 +166319,15 @@ webhooks: description: The full ref of the branch the merge group will be merged into. type: string - head_commit: *508 + head_commit: *505 required: - head_sha - head_ref - base_sha - base_ref - head_commit - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167091,10 +166413,10 @@ webhooks: - merged - invalidated - dequeued - installation: *829 - merge_group: *866 - organization: *830 - repository: *831 + installation: *824 + merge_group: *861 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167167,7 +166489,7 @@ webhooks: type: string enum: - deleted - enterprise: *828 + enterprise: *823 hook: description: 'The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, @@ -167276,12 +166598,12 @@ webhooks: hook_id: description: The id of the modified webhook. type: integer - installation: *829 - organization: *830 + installation: *824 + organization: *825 repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -167361,11 +166683,11 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 - milestone: *860 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167444,9 +166766,9 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - milestone: &867 + enterprise: *823 + installation: *824 + milestone: &862 title: Milestone description: A collection of related issues and pull requests. type: object @@ -167588,8 +166910,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167668,11 +166990,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - milestone: *860 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167782,11 +167104,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - milestone: *860 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167866,11 +167188,11 @@ webhooks: type: string enum: - opened - enterprise: *828 - installation: *829 - milestone: *867 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *862 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167949,11 +167271,11 @@ webhooks: type: string enum: - blocked - blocked_user: *855 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + blocked_user: *850 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168032,11 +167354,11 @@ webhooks: type: string enum: - unblocked - blocked_user: *855 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + blocked_user: *850 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168112,7 +167434,7 @@ webhooks: enum: - created definition: *145 - enterprise: *828 + enterprise: *823 sender: *4 required: - action @@ -168192,8 +167514,8 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 sender: *4 required: - action @@ -168266,8 +167588,8 @@ webhooks: enum: - updated definition: *145 - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 sender: *4 required: - action @@ -168339,9 +167661,9 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 new_property_values: type: array @@ -168429,9 +167751,9 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - membership: &868 + enterprise: *823 + installation: *824 + membership: &863 title: Membership description: The membership between the user and the organization. Not present when the action is `member_invited`. @@ -168541,8 +167863,8 @@ webhooks: - role - organization_url - user - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168620,11 +167942,11 @@ webhooks: type: string enum: - member_added - enterprise: *828 - installation: *829 - membership: *868 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + membership: *863 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168703,8 +168025,8 @@ webhooks: type: string enum: - member_invited - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 invitation: description: The invitation for the user or email if the action is `member_invited`. @@ -168826,10 +168148,10 @@ webhooks: - inviter - team_count - invitation_teams_url - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 - user: *855 + user: *850 required: - action - invitation @@ -168907,11 +168229,11 @@ webhooks: type: string enum: - member_removed - enterprise: *828 - installation: *829 - membership: *868 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + membership: *863 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168998,11 +168320,11 @@ webhooks: properties: from: type: string - enterprise: *828 - installation: *829 - membership: *868 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + membership: *863 + organization: *825 + repository: *826 sender: *4 required: - action @@ -169078,9 +168400,9 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 package: description: Information about the package. type: object @@ -169603,7 +168925,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: &869 + items: &864 title: Ruby Gems metadata type: object properties: @@ -169700,7 +169022,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -169776,9 +169098,9 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 package: description: Information about the package. type: object @@ -170140,7 +169462,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *869 + items: *864 source_url: type: string format: uri @@ -170211,7 +169533,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -170392,12 +169714,12 @@ webhooks: - duration - created_at - updated_at - enterprise: *828 + enterprise: *823 id: type: integer - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - id @@ -170474,7 +169796,7 @@ webhooks: type: string enum: - approved - personal_access_token_request: &870 + personal_access_token_request: &865 title: Personal Access Token Request description: Details of a Personal Access Token Request. type: object @@ -170624,10 +169946,10 @@ webhooks: - token_expired - token_expires_at - token_last_used_at - enterprise: *828 - organization: *830 + enterprise: *823 + organization: *825 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170704,11 +170026,11 @@ webhooks: type: string enum: - cancelled - personal_access_token_request: *870 - enterprise: *828 - organization: *830 + personal_access_token_request: *865 + enterprise: *823 + organization: *825 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170784,11 +170106,11 @@ webhooks: type: string enum: - created - personal_access_token_request: *870 - enterprise: *828 - organization: *830 + personal_access_token_request: *865 + enterprise: *823 + organization: *825 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170863,11 +170185,11 @@ webhooks: type: string enum: - denied - personal_access_token_request: *870 - organization: *830 - enterprise: *828 + personal_access_token_request: *865 + organization: *825 + enterprise: *823 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170972,7 +170294,7 @@ webhooks: id: description: Unique identifier of the webhook. type: integer - last_response: *871 + last_response: *866 name: description: The type of webhook. The only valid value is 'web'. type: string @@ -171004,8 +170326,8 @@ webhooks: hook_id: description: The ID of the webhook that triggered the ping. type: integer - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 zen: description: Random string of GitHub zen. @@ -171250,10 +170572,10 @@ webhooks: - from required: - note - enterprise: *828 - installation: *829 - organization: *830 - project_card: &872 + enterprise: *823 + installation: *824 + organization: *825 + project_card: &867 title: Project Card type: object properties: @@ -171376,7 +170698,7 @@ webhooks: - creator - created_at - updated_at - repository: *831 + repository: *826 sender: *4 required: - action @@ -171457,11 +170779,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - project_card: *872 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_card: *867 + repository: *826 sender: *4 required: - action @@ -171541,9 +170863,9 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 project_card: title: Project Card type: object @@ -171673,7 +170995,7 @@ webhooks: repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -171767,11 +171089,11 @@ webhooks: - from required: - note - enterprise: *828 - installation: *829 - organization: *830 - project_card: *872 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_card: *867 + repository: *826 sender: *4 required: - action @@ -171865,9 +171187,9 @@ webhooks: - from required: - column_id - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 project_card: allOf: - title: Project Card @@ -172064,7 +171386,7 @@ webhooks: type: string required: - after_id - repository: *831 + repository: *826 sender: *4 required: - action @@ -172144,10 +171466,10 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 - organization: *830 - project: &874 + enterprise: *823 + installation: *824 + organization: *825 + project: &869 title: Project type: object properties: @@ -172274,7 +171596,7 @@ webhooks: - creator - created_at - updated_at - repository: *831 + repository: *826 sender: *4 required: - action @@ -172354,10 +171676,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - project_column: &873 + enterprise: *823 + installation: *824 + organization: *825 + project_column: &868 title: Project Column type: object properties: @@ -172397,7 +171719,7 @@ webhooks: - name - created_at - updated_at - repository: *831 + repository: *826 sender: *4 required: - action @@ -172476,14 +171798,14 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - project_column: *873 + enterprise: *823 + installation: *824 + organization: *825 + project_column: *868 repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -172572,11 +171894,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - project_column: *873 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_column: *868 + repository: *826 sender: *4 required: - action @@ -172656,11 +171978,11 @@ webhooks: type: string enum: - moved - enterprise: *828 - installation: *829 - organization: *830 - project_column: *873 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_column: *868 + repository: *826 sender: *4 required: - action @@ -172740,11 +172062,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - project: *874 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 + repository: *826 sender: *4 required: - action @@ -172824,14 +172146,14 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - project: *874 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -172932,11 +172254,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - project: *874 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 + repository: *826 sender: *4 required: - action @@ -173015,11 +172337,11 @@ webhooks: type: string enum: - reopened - enterprise: *828 - installation: *829 - organization: *830 - project: *874 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 + repository: *826 sender: *4 required: - action @@ -173100,8 +172422,8 @@ webhooks: type: string enum: - closed - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173183,8 +172505,8 @@ webhooks: type: string enum: - created - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173266,8 +172588,8 @@ webhooks: type: string enum: - deleted - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173389,8 +172711,8 @@ webhooks: type: string to: type: string - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173474,7 +172796,7 @@ webhooks: type: string enum: - archived - changes: &878 + changes: &873 type: object properties: archived_at: @@ -173490,9 +172812,9 @@ webhooks: - string - 'null' format: date-time - installation: *829 - organization: *830 - projects_v2_item: &875 + installation: *824 + organization: *825 + projects_v2_item: &870 title: Projects v2 Item description: An item belonging to a project type: object @@ -173632,9 +172954,9 @@ webhooks: - 'null' to: type: string - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -173716,9 +173038,9 @@ webhooks: type: string enum: - created - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -173799,9 +173121,9 @@ webhooks: type: string enum: - deleted - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -173906,7 +173228,7 @@ webhooks: oneOf: - type: string - type: integer - - &876 + - &871 title: Projects v2 Single Select Option description: An option for a single select field type: object @@ -173930,7 +173252,7 @@ webhooks: required: - id - name - - &877 + - &872 title: Projects v2 Iteration Setting description: An iteration setting for an iteration field type: object @@ -173970,8 +173292,8 @@ webhooks: oneOf: - type: string - type: integer - - *876 - - *877 + - *871 + - *872 type: - 'null' - string @@ -173994,9 +173316,9 @@ webhooks: - 'null' required: - body - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -174093,9 +173415,9 @@ webhooks: type: - string - 'null' - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -174178,10 +173500,10 @@ webhooks: type: string enum: - restored - changes: *878 - installation: *829 - organization: *830 - projects_v2_item: *875 + changes: *873 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -174263,8 +173585,8 @@ webhooks: type: string enum: - reopened - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -174346,9 +173668,9 @@ webhooks: type: string enum: - created - installation: *829 - organization: *830 - projects_v2_status_update: *879 + installation: *824 + organization: *825 + projects_v2_status_update: *874 sender: *4 required: - action @@ -174429,9 +173751,9 @@ webhooks: type: string enum: - deleted - installation: *829 - organization: *830 - projects_v2_status_update: *879 + installation: *824 + organization: *825 + projects_v2_status_update: *874 sender: *4 required: - action @@ -174577,9 +173899,9 @@ webhooks: - string - 'null' format: date - installation: *829 - organization: *830 - projects_v2_status_update: *879 + installation: *824 + organization: *825 + projects_v2_status_update: *874 sender: *4 required: - action @@ -174650,10 +173972,10 @@ webhooks: title: public event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - repository @@ -174730,13 +174052,13 @@ webhooks: type: string enum: - assigned - assignee: *855 - enterprise: *828 - installation: *829 - number: &880 + assignee: *850 + enterprise: *823 + installation: *824 + number: &875 description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -177085,7 +176407,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -177167,11 +176489,11 @@ webhooks: type: string enum: - auto_merge_disabled - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -179513,7 +178835,7 @@ webhooks: - draft reason: type: string - repository: *831 + repository: *826 sender: *4 required: - action @@ -179595,11 +178917,11 @@ webhooks: type: string enum: - auto_merge_enabled - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -181941,7 +181263,7 @@ webhooks: - draft reason: type: string - repository: *831 + repository: *826 sender: *4 required: - action @@ -182023,13 +181345,13 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: &881 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: &876 allOf: - - *675 + - *672 - type: object properties: allow_auto_merge: @@ -182091,7 +181413,7 @@ webhooks: Please use `squash_merge_commit_title` instead.** type: boolean default: false - repository: *831 + repository: *826 sender: *4 required: - action @@ -182172,12 +181494,12 @@ webhooks: type: string enum: - converted_to_draft - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -182257,11 +181579,11 @@ webhooks: type: string enum: - demilestoned - enterprise: *828 + enterprise: *823 milestone: *392 - number: *880 - organization: *830 - pull_request: &882 + number: *875 + organization: *825 + pull_request: &877 title: Pull Request type: object properties: @@ -184588,7 +183910,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -184667,11 +183989,11 @@ webhooks: type: string enum: - dequeued - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -187017,7 +186339,7 @@ webhooks: - BRANCH_PROTECTIONS - GIT_TREE_INVALID - INVALID_MERGE_COMMIT - repository: *831 + repository: *826 sender: *4 required: - action @@ -187141,12 +186463,12 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -187226,11 +186548,11 @@ webhooks: type: string enum: - enqueued - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -189561,7 +188883,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -189641,11 +188963,11 @@ webhooks: type: string enum: - labeled - enterprise: *828 - installation: *829 - label: *849 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + label: *844 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -191993,7 +191315,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -192074,10 +191396,10 @@ webhooks: type: string enum: - locked - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -194423,7 +193745,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -194503,12 +193825,12 @@ webhooks: type: string enum: - milestoned - enterprise: *828 + enterprise: *823 milestone: *392 - number: *880 - organization: *830 - pull_request: *882 - repository: *831 + number: *875 + organization: *825 + pull_request: *877 + repository: *826 sender: *4 required: - action @@ -194587,12 +193909,12 @@ webhooks: type: string enum: - opened - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -194673,12 +193995,12 @@ webhooks: type: string enum: - ready_for_review - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -194758,12 +194080,12 @@ webhooks: type: string enum: - reopened - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -195138,9 +194460,9 @@ webhooks: - start_side - side - reactions - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: type: object properties: @@ -197370,7 +196692,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *831 + repository: *826 sender: *4 required: - action @@ -197450,7 +196772,7 @@ webhooks: type: string enum: - deleted - comment: &884 + comment: &879 title: Pull Request Review Comment description: The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. @@ -197743,9 +197065,9 @@ webhooks: - start_side - side - reactions - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: type: object properties: @@ -199963,7 +199285,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *831 + repository: *826 sender: *4 required: - action @@ -200043,11 +199365,11 @@ webhooks: type: string enum: - edited - changes: *883 - comment: *884 - enterprise: *828 - installation: *829 - organization: *830 + changes: *878 + comment: *879 + enterprise: *823 + installation: *824 + organization: *825 pull_request: type: object properties: @@ -202268,7 +201590,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *831 + repository: *826 sender: *4 required: - action @@ -202349,9 +201671,9 @@ webhooks: type: string enum: - dismissed - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -204584,7 +203906,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 + repository: *826 review: description: The review that was affected. type: object @@ -204835,9 +204157,9 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -206951,8 +206273,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 - review: &885 + repository: *826 + review: &880 description: The review that was affected. type: object properties: @@ -207190,12 +206512,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -209542,7 +208864,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_reviewer: title: User type: @@ -209628,12 +208950,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -211987,7 +211309,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_team: title: Team description: Groups of organization members that gives permissions @@ -212182,12 +211504,12 @@ webhooks: type: string enum: - review_requested - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -214536,7 +213858,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_reviewer: title: User type: @@ -214623,12 +213945,12 @@ webhooks: type: string enum: - review_requested - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -216968,7 +216290,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_team: title: Team description: Groups of organization members that gives permissions @@ -217152,9 +216474,9 @@ webhooks: type: string enum: - submitted - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -219390,8 +218712,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 - review: *885 + repository: *826 + review: *880 sender: *4 required: - action @@ -219471,9 +218793,9 @@ webhooks: type: string enum: - resolved - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -221604,7 +220926,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 + repository: *826 sender: *4 thread: type: object @@ -222001,9 +221323,9 @@ webhooks: type: string enum: - unresolved - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -224117,7 +223439,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 + repository: *826 sender: *4 thread: type: object @@ -224516,10 +223838,10 @@ webhooks: type: string before: type: string - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -226854,7 +226176,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -226936,11 +226258,11 @@ webhooks: type: string enum: - unassigned - assignee: *886 - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + assignee: *881 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -229290,7 +228612,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -229369,11 +228691,11 @@ webhooks: type: string enum: - unlabeled - enterprise: *828 - installation: *829 - label: *849 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + label: *844 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -231712,7 +231034,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -231793,10 +231115,10 @@ webhooks: type: string enum: - unlocked - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -234125,7 +233447,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -234328,7 +233650,7 @@ webhooks: deleted: description: Whether this push deleted the `ref`. type: boolean - enterprise: *828 + enterprise: *823 forced: description: Whether this push was a force push of the `ref`. type: boolean @@ -234423,8 +233745,8 @@ webhooks: - url - author - committer - installation: *829 - organization: *830 + installation: *824 + organization: *825 pusher: title: Committer description: Metaproperties for Git author/committer information. @@ -235012,9 +234334,9 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 registry_package: type: object properties: @@ -235491,7 +234813,7 @@ webhooks: type: string rubygems_metadata: type: array - items: *869 + items: *864 summary: type: string tag_name: @@ -235547,7 +234869,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -235625,9 +234947,9 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 registry_package: type: object properties: @@ -235939,7 +235261,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *869 + items: *864 summary: type: string tag_name: @@ -235989,7 +235311,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -236066,10 +235388,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - release: &887 + enterprise: *823 + installation: *824 + organization: *825 + release: &882 title: Release description: The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object. @@ -236400,7 +235722,7 @@ webhooks: - updated_at - zipball_url - body - repository: *831 + repository: *826 sender: *4 required: - action @@ -236477,11 +235799,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - release: *887 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *882 + repository: *826 sender: *4 required: - action @@ -236598,11 +235920,11 @@ webhooks: type: boolean required: - to - enterprise: *828 - installation: *829 - organization: *830 - release: *887 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *882 + repository: *826 sender: *4 required: - action @@ -236680,9 +236002,9 @@ webhooks: type: string enum: - prereleased - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 release: title: Release description: The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) @@ -237018,7 +236340,7 @@ webhooks: - string - 'null' format: uri - repository: *831 + repository: *826 sender: *4 required: - action @@ -237094,10 +236416,10 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 - release: &888 + enterprise: *823 + installation: *824 + organization: *825 + release: &883 title: Release description: The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object. @@ -237430,7 +236752,7 @@ webhooks: - string - 'null' format: uri - repository: *831 + repository: *826 sender: *4 required: - action @@ -237506,11 +236828,11 @@ webhooks: type: string enum: - released - enterprise: *828 - installation: *829 - organization: *830 - release: *887 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *882 + repository: *826 sender: *4 required: - action @@ -237586,11 +236908,11 @@ webhooks: type: string enum: - unpublished - enterprise: *828 - installation: *829 - organization: *830 - release: *888 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *883 + repository: *826 sender: *4 required: - action @@ -237666,11 +236988,11 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - repository_advisory: *727 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + repository_advisory: *724 sender: *4 required: - action @@ -237746,11 +237068,11 @@ webhooks: type: string enum: - reported - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - repository_advisory: *727 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + repository_advisory: *724 sender: *4 required: - action @@ -237826,10 +237148,10 @@ webhooks: type: string enum: - archived - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -237906,10 +237228,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -237987,10 +237309,10 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238075,10 +237397,10 @@ webhooks: additionalProperties: true description: The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238193,10 +237515,10 @@ webhooks: - 'null' items: type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238268,10 +237590,10 @@ webhooks: title: repository_import event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 status: type: string @@ -238352,10 +237674,10 @@ webhooks: type: string enum: - privatized - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238432,10 +237754,10 @@ webhooks: type: string enum: - publicized - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238529,10 +237851,10 @@ webhooks: - name required: - repository - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238612,10 +237934,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 repository_ruleset: *185 sender: *4 required: @@ -238694,10 +238016,10 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 repository_ruleset: *185 sender: *4 required: @@ -238776,10 +238098,10 @@ webhooks: type: string enum: - edited - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 repository_ruleset: *185 changes: type: object @@ -238841,16 +238163,16 @@ webhooks: properties: added: type: array - items: *695 + items: *692 deleted: type: array - items: *695 + items: *692 updated: type: array items: type: object properties: - rule: *695 + rule: *692 changes: type: object properties: @@ -239087,10 +238409,10 @@ webhooks: - from required: - owner - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239168,10 +238490,10 @@ webhooks: type: string enum: - unarchived - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239249,7 +238571,7 @@ webhooks: type: string enum: - create - alert: &889 + alert: &884 title: Repository Vulnerability Alert Alert description: The security alert of the vulnerable dependency. type: object @@ -239373,10 +238695,10 @@ webhooks: type: string enum: - open - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239586,10 +238908,10 @@ webhooks: type: string enum: - dismissed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239667,11 +238989,11 @@ webhooks: type: string enum: - reopen - alert: *889 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *884 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239873,10 +239195,10 @@ webhooks: enum: - fixed - open - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239954,7 +239276,7 @@ webhooks: type: string enum: - assigned - alert: &890 + alert: &885 type: object properties: number: *124 @@ -240069,10 +239391,10 @@ webhooks: - type: 'null' - *4 assignee: *4 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240150,11 +239472,11 @@ webhooks: type: string enum: - created - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240235,11 +239557,11 @@ webhooks: type: string enum: - created - alert: *890 - installation: *829 - location: *891 - organization: *830 - repository: *831 + alert: *885 + installation: *824 + location: *886 + organization: *825 + repository: *826 sender: *4 required: - location @@ -240477,11 +239799,11 @@ webhooks: type: string enum: - publicly_leaked - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240559,11 +239881,11 @@ webhooks: type: string enum: - reopened - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240641,11 +239963,11 @@ webhooks: type: string enum: - resolved - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240723,12 +240045,12 @@ webhooks: type: string enum: - unassigned - alert: *890 + alert: *885 assignee: *4 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240806,11 +240128,11 @@ webhooks: type: string enum: - validated - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240940,10 +240262,10 @@ webhooks: - organization - enterprise - - repository: *831 - enterprise: *828 - installation: *829 - organization: *830 + repository: *826 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -241021,11 +240343,11 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - security_advisory: &892 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + security_advisory: &887 description: The details of the security advisory, including summary, description, and severity. type: object @@ -241211,11 +240533,11 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - security_advisory: *892 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + security_advisory: *887 sender: *4 required: - action @@ -241288,10 +240610,10 @@ webhooks: type: string enum: - withdrawn - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 security_advisory: description: The details of the security advisory, including summary, description, and severity. @@ -241478,10 +240800,10 @@ webhooks: type: object properties: security_and_analysis: *402 - enterprise: *828 - installation: *829 - organization: *830 - repository: *446 + enterprise: *823 + installation: *824 + organization: *825 + repository: *443 sender: *4 required: - changes @@ -241559,12 +240881,12 @@ webhooks: type: string enum: - cancelled - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: &893 + sponsorship: &888 type: object properties: created_at: @@ -241869,12 +241191,12 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - sponsorship @@ -241962,12 +241284,12 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - changes @@ -242044,17 +241366,17 @@ webhooks: type: string enum: - pending_cancellation - effective_date: &894 + effective_date: &889 description: The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect. type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - sponsorship @@ -242128,7 +241450,7 @@ webhooks: type: string enum: - pending_tier_change - changes: &895 + changes: &890 type: object properties: tier: @@ -242172,13 +241494,13 @@ webhooks: - from required: - tier - effective_date: *894 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + effective_date: *889 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - changes @@ -242255,13 +241577,13 @@ webhooks: type: string enum: - tier_changed - changes: *895 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + changes: *890 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - changes @@ -242335,10 +241657,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -242422,10 +241744,10 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -242859,15 +242181,15 @@ webhooks: type: - string - 'null' - enterprise: *828 + enterprise: *823 id: description: The unique identifier of the status. type: integer - installation: *829 + installation: *824 name: type: string - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 sha: description: The Commit SHA. @@ -242983,9 +242305,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243075,9 +242397,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243167,9 +242489,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243259,9 +242581,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243338,12 +242660,12 @@ webhooks: title: team_add event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - team: &896 + team: &891 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -243573,9 +242895,9 @@ webhooks: type: string enum: - added_to_repository - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -244045,7 +243367,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -244121,9 +243443,9 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -244593,7 +243915,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -244670,9 +243992,9 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -245142,7 +244464,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -245286,9 +244608,9 @@ webhooks: - from required: - permissions - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -245758,7 +245080,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - changes @@ -245836,9 +245158,9 @@ webhooks: type: string enum: - removed_from_repository - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -246308,7 +245630,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -246384,10 +245706,10 @@ webhooks: type: string enum: - started - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -246460,17 +245782,17 @@ webhooks: title: workflow_dispatch event type: object properties: - enterprise: *828 + enterprise: *823 inputs: type: - object - 'null' additionalProperties: true - installation: *829 - organization: *830 + installation: *824 + organization: *825 ref: type: string - repository: *831 + repository: *826 sender: *4 workflow: type: string @@ -246552,10 +245874,10 @@ webhooks: type: string enum: - completed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: allOf: @@ -246811,7 +246133,7 @@ webhooks: type: string required: - conclusion - deployment: *580 + deployment: *577 required: - action - repository @@ -246890,10 +246212,10 @@ webhooks: type: string enum: - in_progress - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: allOf: @@ -247175,7 +246497,7 @@ webhooks: required: - status - steps - deployment: *580 + deployment: *577 required: - action - repository @@ -247254,10 +246576,10 @@ webhooks: type: string enum: - queued - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: type: object @@ -247403,7 +246725,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *580 + deployment: *577 required: - action - repository @@ -247482,10 +246804,10 @@ webhooks: type: string enum: - waiting - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: type: object @@ -247632,7 +246954,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *580 + deployment: *577 required: - action - repository @@ -247712,12 +247034,12 @@ webhooks: type: string enum: - completed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Workflow Run type: object @@ -248736,12 +248058,12 @@ webhooks: type: string enum: - in_progress - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Workflow Run type: object @@ -249745,12 +249067,12 @@ webhooks: type: string enum: - requested - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Workflow Run type: object diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.json b/descriptions-next/ghec/dereferenced/ghec.deref.json index 0eeec04e7..d30b427ba 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -285197,17 +285197,17 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { + "/orgs/{org}/teams/{team_slug}/external-groups": { "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + "summary": "List a connection between an external group and a team", + "description": "Lists a connection between a team and an external group.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", "tags": [ "teams" ], - "operationId": "teams/list-discussions-in-org", + "operationId": "teams/list-linked-external-idp-groups-to-team-for-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team" }, "parameters": [ { @@ -285227,47 +285227,6 @@ "schema": { "type": "string" } - }, - { - "name": "direction", - "description": "The direction to sort the results by.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "desc" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } } ], "responses": { @@ -285276,435 +285235,98 @@ "content": { "application/json": { "schema": { - "type": "array", - "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "title": "Reaction Rollup", + "title": "ExternalGroups", + "description": "A list of external groups available to be connected to a team", + "type": "object", + "properties": { + "groups": { + "description": "An array of external groups available to be mapped to a team", + "type": "array", + "items": { "type": "object", + "required": [ + "group_id", + "group_name", + "updated_at" + ], "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" + "group_id": { + "description": "The internal ID of the group", + "type": "integer", + "examples": [ + 1 + ] }, - "eyes": { - "type": "integer" + "group_name": { + "description": "The display name of the group", + "type": "string", + "examples": [ + "group-azuread-test" + ] }, - "rocket": { - "type": "integer" + "updated_at": { + "description": "The time of the last update for this group", + "type": "string", + "examples": [ + "2019-06-03 22:27:15:000 -700" + ] } + } + }, + "examples": [ + { + "group_id": 1, + "group_name": "group-azuread-test", + "updated_at": "2021-01-03 22:27:15:000 -700" }, - "required": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] + { + "group_id": 2, + "group_name": "group-azuread-test2", + "updated_at": "2021-06-03 22:27:15:000 -700" + } + ] + } } }, "examples": { "default": { - "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 + "value": { + "groups": [ + { + "group_id": "123", + "group_name": "Octocat admins", + "updated_at": "2021-01-24T11:31:04-06:00" }, - "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", - "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 + { + "group_id": "456", + "group_name": "Octocat docs members", + "updated_at": "2021-03-24T11:31:04-06:00" } - } - ] + ] + } } } } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } } } }, "x-github": { - "githubCloudOnly": false, + "githubCloudOnly": true, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "external-groups" } }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "patch": { + "summary": "Update the connection between an external group and a team", + "description": "Creates a connection between a team and an external group. Only one external group can be linked to a team.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", "tags": [ "teams" ], - "operationId": "teams/create-discussion-in-org", + "operationId": "teams/link-external-idp-group-to-team-for-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team" }, "parameters": [ { @@ -285733,30 +285355,22 @@ "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 + "group_id": { + "type": "integer", + "description": "External Group Id", + "examples": [ + 1 + ] } }, "required": [ - "title", - "body" + "group_id" ] }, "examples": { "default": { "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "group_id": 123 } } } @@ -285764,403 +285378,168 @@ } }, "responses": { - "201": { + "200": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "ExternalGroup", + "description": "Information about an external group's usage and its members", "type": "object", + "required": [ + "group_id", + "group_name", + "teams", + "members" + ], "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", + "group_id": { + "description": "The internal ID of the group", "type": "integer", "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" + 1 ] }, - "title": { - "description": "The title of the discussion.", + "group_name": { + "description": "The display name for the group", "type": "string", "examples": [ - "How can we improve our workflow?" + "group-azuread-test" ] }, "updated_at": { + "description": "The date when the group was last updated_at", "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "2021-01-03 22:27:15:000 -700" ] }, - "url": { - "type": "string", - "format": "uri", + "teams": { + "description": "An array of teams linked to this group", + "type": "array", + "items": { + "type": "object", + "required": [ + "team_id", + "team_name" + ], + "properties": { + "team_id": { + "description": "The id for a team", + "type": "integer", + "examples": [ + 1 + ] + }, + "team_name": { + "description": "The name of the team", + "type": "string", + "examples": [ + "team-test" + ] + } + } + }, "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + { + "team_id": 1, + "team_name": "team-test" + }, + { + "team_id": 2, + "team_name": "team-test2" + } ] }, - "reactions": { - "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" + "members": { + "description": "An array of external members linked to this group", + "type": "array", + "items": { + "type": "object", + "required": [ + "member_id", + "member_login", + "member_name", + "member_email" + ], + "properties": { + "member_id": { + "description": "The internal user ID of the identity", + "type": "integer", + "examples": [ + 1 + ] + }, + "member_login": { + "description": "The handle/login for the user", + "type": "string", + "examples": [ + "mona-lisa_eocsaxrs" + ] + }, + "member_name": { + "description": "The user display name/profile name", + "type": "string", + "examples": [ + "Mona Lisa" + ] + }, + "member_email": { + "description": "An email attached to a user", + "type": "string", + "examples": [ + "mona_lisa@github.com" + ] + } } }, - "required": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "examples": [ + { + "member_id": 1, + "member_login": "mona-lisa_eocsaxrs", + "member_name": "Mona Lisa", + "member_email": "mona_lisa@github.com" + }, + { + "member_id": 2, + "member_login": "octo-lisa_eocsaxrs", + "member_name": "Octo Lisa", + "member_email": "octo_lisa@github.com" + } ] } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] + } }, "examples": { "default": { "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", - "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 - } + "group_id": "123", + "group_name": "Octocat admins", + "updated_at": "2021-01-24T11:31:04-06:00", + "teams": [ + { + "team_id": 1, + "team_name": "team-test" + }, + { + "team_id": 2, + "team_name": "team-test2" + } + ], + "members": [ + { + "member_id": 1, + "member_login": "mona-lisa_eocsaxrs", + "member_name": "Mona Lisa", + "member_email": "mona_lisa@github.com" + }, + { + "member_id": 2, + "member_login": "octo-lisa_eocsaxrs", + "member_name": "Octo Lisa", + "member_email": "octo_lisa@github.com" + } + ] } } } @@ -286169,25 +285548,67 @@ } }, "x-github": { - "triggersNotification": true, - "githubCloudOnly": false, - "enabledForGitHubApps": true, + "githubCloudOnly": true, + "enabledForGitHubApps": false, + "category": "teams", + "subcategory": "external-groups" + } + }, + "delete": { + "summary": "Remove the connection between an external group and a team", + "description": "Deletes a connection between a team and an external group.\n\nYou can manage team membership with your IdP using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", + "tags": [ + "teams" + ], + "operationId": "teams/unlink-external-idp-group-from-team-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "204": { + "description": "Response" + } + }, + "x-github": { + "githubCloudOnly": true, + "enabledForGitHubApps": false, "category": "teams", - "subcategory": "discussions" + "subcategory": "external-groups" } } }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { + "/orgs/{org}/teams/{team_slug}/invitations": { "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", + "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 Enterprise Cloud member, the `login` field in the return hash will be `null`.\n\n> [!NOTE]\n> 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/get-discussion-in-org", + "operationId": "teams/list-pending-invitations-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations" }, "parameters": [ { @@ -286209,12 +285630,21 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", "schema": { - "type": "integer" + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 } } ], @@ -286224,353 +285654,553 @@ "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } + "type": "array", + "items": { + "title": "Organization Invitation", + "description": "Organization Invitation", + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "login": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "role": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "failed_at": { + "type": [ + "string", + "null" + ] + }, + "failed_reason": { + "type": [ + "string", + "null" + ] + }, + "inviter": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } }, - "eyes": { - "type": "integer" + "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" + ] + }, + "team_count": { + "type": "integer" + }, + "node_id": { + "type": "string", + "examples": [ + "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" + ] + }, + "invitation_teams_url": { + "type": "string", + "examples": [ + "\"https://api.github.com/organizations/16/invitations/1/teams\"" + ] + }, + "invitation_source": { + "type": "string", + "examples": [ + "\"member\"" + ] + } + }, + "required": [ + "id", + "login", + "email", + "role", + "created_at", + "inviter", + "team_count", + "invitation_teams_url", + "node_id" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "id": 1, + "login": "monalisa", + "node_id": "MDQ6VXNlcjE=", + "email": "octocat@github.com", + "role": "direct_member", + "created_at": "2016-11-30T06:46:10-08:00", + "failed_at": "", + "failed_reason": "", + "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 }, - "rocket": { - "type": "integer" - } + "team_count": 2, + "invitation_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", + "invitation_source": "member" + } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" + } + } + }, + "/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/enterprise-cloud@latest//rest/teams/members#list-team-members" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "role", + "description": "Filters members returned by their role in the team.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "member", + "maintainer", + "all" + ], + "default": "all" + } + }, + { + "name": "per_page", + "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 30 + } + }, + { + "name": "page", + "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", + "schema": { + "type": "integer", + "default": 1 + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "title": "Simple User", + "description": "A GitHub user.", + "type": "object", + "properties": { + "name": { + "type": [ + "string", + "null" + ] }, - "required": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { + "type": "integer", + "format": "int64", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VXNlcjE=" + ] + }, + "avatar_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] + }, + "gravatar_id": { + "type": [ + "string", + "null" + ], + "examples": [ + "41d064eb2195891e12d0413f63227ea7" + ] + }, + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] + }, + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] + }, + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] + }, + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] + }, + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] + }, + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] + }, + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] + }, + "events_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/events{/privacy}" + ] + }, + "received_events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/received_events" + ] + }, + "type": { + "type": "string", + "examples": [ + "User" + ] + }, + "site_admin": { + "type": "boolean" + }, + "starred_at": { + "type": "string", + "examples": [ + "\"2020-07-09T00:17:55Z\"" + ] + }, + "user_view_type": { + "type": "string", + "examples": [ + "public" + ] + } + }, + "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" + ] + } }, "examples": { "default": { - "value": { - "author": { + "value": [ + { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", @@ -286589,57 +286219,146 @@ "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", - "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 } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "members" + } + } + }, + "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team).", + "tags": [ + "teams" + ], + "operationId": "teams/get-membership-for-user-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user" + }, + "parameters": [ + { + "name": "org", + "description": "The organization name. The name is not case sensitive.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "name": "username", + "description": "The handle for the GitHub user account.", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "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", + "type": "string", + "examples": [ + "member" + ] + }, + "state": { + "description": "The state of the user's membership in the team.", + "type": "string", + "enum": [ + "active", + "pending" + ] + } + }, + "required": [ + "role", + "state", + "url" + ] + }, + "examples": { + "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" } } } } } + }, + "404": { + "description": "if user has no team membership" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" + "subcategory": "members" } }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "put": { + "summary": "Add or update team membership for a user", + "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//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]\n> 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/update-discussion-in-org", + "operationId": "teams/add-or-update-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user" }, "parameters": [ { @@ -286661,12 +286380,12 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", + "name": "username", + "description": "The handle for the GitHub user account.", "in": "path", "required": true, "schema": { - "type": "integer" + "type": "string" } } ], @@ -286677,20 +286396,22 @@ "schema": { "type": "object", "properties": { - "title": { - "type": "string", - "description": "The discussion post's title." - }, - "body": { + "role": { "type": "string", - "description": "The discussion post's body text." + "description": "The role that this user should have in the team.", + "enum": [ + "member", + "maintainer" + ], + "default": "member" } } }, "examples": { "default": { + "summary": "Add or update team membership for an organization member", "value": { - "title": "Welcome to our first team post" + "role": "maintainer" } } } @@ -286703,595 +286424,78 @@ "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Team Membership", + "description": "Team Membership", "type": "object", "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { + "url": { "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] + "format": "uri" }, - "last_edited_at": { - "type": [ - "string", - "null" + "role": { + "description": "The role of the user in the team.", + "enum": [ + "member", + "maintainer" ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { + "default": "member", "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "member" ] }, - "url": { + "state": { + "description": "The state of the user's membership in the team.", "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" + "enum": [ + "active", + "pending" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", + "role", + "state", "url" ] }, "examples": { - "default": { + "response-if-users-membership-with-team-is-now-pending": { + "summary": "Response if user's membership with team is now pending", "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", - "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 - } + "url": "https://api.github.com/teams/1/memberships/octocat", + "role": "member", + "state": "pending" } } } } } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } + "403": { + "description": "Forbidden if team synchronization is set up" }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" + "422": { + "description": "Unprocessable Entity if you attempt to add an organization to a team" } }, "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" - } - } - }, - "/orgs/{org}/teams/{team_slug}/external-groups": { - "get": { - "summary": "List a connection between an external group and a team", - "description": "Lists a connection between a team and an external group.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", - "tags": [ - "teams" - ], - "operationId": "teams/list-linked-external-idp-groups-to-team-for-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "ExternalGroups", - "description": "A list of external groups available to be connected to a team", - "type": "object", - "properties": { - "groups": { - "description": "An array of external groups available to be mapped to a team", - "type": "array", - "items": { - "type": "object", - "required": [ - "group_id", - "group_name", - "updated_at" - ], - "properties": { - "group_id": { - "description": "The internal ID of the group", - "type": "integer", - "examples": [ - 1 - ] - }, - "group_name": { - "description": "The display name of the group", - "type": "string", - "examples": [ - "group-azuread-test" - ] - }, - "updated_at": { - "description": "The time of the last update for this group", - "type": "string", - "examples": [ - "2019-06-03 22:27:15:000 -700" - ] - } - } - }, - "examples": [ - { - "group_id": 1, - "group_name": "group-azuread-test", - "updated_at": "2021-01-03 22:27:15:000 -700" - }, - { - "group_id": 2, - "group_name": "group-azuread-test2", - "updated_at": "2021-06-03 22:27:15:000 -700" - } - ] - } - } - }, - "examples": { - "default": { - "value": { - "groups": [ - { - "group_id": "123", - "group_name": "Octocat admins", - "updated_at": "2021-01-24T11:31:04-06:00" - }, - { - "group_id": "456", - "group_name": "Octocat docs members", - "updated_at": "2021-03-24T11:31:04-06:00" - } - ] - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": true, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "external-groups" + "subcategory": "members" } }, - "patch": { - "summary": "Update the connection between an external group and a team", - "description": "Creates a connection between a team and an external group. Only one external group can be linked to a team.\n\nYou can manage team membership with your identity provider using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see \"[GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", + "delete": { + "summary": "Remove team membership for a user", + "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> 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/link-external-idp-group-to-team-for-org", + "operationId": "teams/remove-membership-for-user-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#update-the-connection-between-an-external-group-and-a-team" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user" }, "parameters": [ { @@ -287311,238 +286515,10 @@ "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "group_id": { - "type": "integer", - "description": "External Group Id", - "examples": [ - 1 - ] - } - }, - "required": [ - "group_id" - ] - }, - "examples": { - "default": { - "value": { - "group_id": 123 - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "ExternalGroup", - "description": "Information about an external group's usage and its members", - "type": "object", - "required": [ - "group_id", - "group_name", - "teams", - "members" - ], - "properties": { - "group_id": { - "description": "The internal ID of the group", - "type": "integer", - "examples": [ - 1 - ] - }, - "group_name": { - "description": "The display name for the group", - "type": "string", - "examples": [ - "group-azuread-test" - ] - }, - "updated_at": { - "description": "The date when the group was last updated_at", - "type": "string", - "examples": [ - "2021-01-03 22:27:15:000 -700" - ] - }, - "teams": { - "description": "An array of teams linked to this group", - "type": "array", - "items": { - "type": "object", - "required": [ - "team_id", - "team_name" - ], - "properties": { - "team_id": { - "description": "The id for a team", - "type": "integer", - "examples": [ - 1 - ] - }, - "team_name": { - "description": "The name of the team", - "type": "string", - "examples": [ - "team-test" - ] - } - } - }, - "examples": [ - { - "team_id": 1, - "team_name": "team-test" - }, - { - "team_id": 2, - "team_name": "team-test2" - } - ] - }, - "members": { - "description": "An array of external members linked to this group", - "type": "array", - "items": { - "type": "object", - "required": [ - "member_id", - "member_login", - "member_name", - "member_email" - ], - "properties": { - "member_id": { - "description": "The internal user ID of the identity", - "type": "integer", - "examples": [ - 1 - ] - }, - "member_login": { - "description": "The handle/login for the user", - "type": "string", - "examples": [ - "mona-lisa_eocsaxrs" - ] - }, - "member_name": { - "description": "The user display name/profile name", - "type": "string", - "examples": [ - "Mona Lisa" - ] - }, - "member_email": { - "description": "An email attached to a user", - "type": "string", - "examples": [ - "mona_lisa@github.com" - ] - } - } - }, - "examples": [ - { - "member_id": 1, - "member_login": "mona-lisa_eocsaxrs", - "member_name": "Mona Lisa", - "member_email": "mona_lisa@github.com" - }, - { - "member_id": 2, - "member_login": "octo-lisa_eocsaxrs", - "member_name": "Octo Lisa", - "member_email": "octo_lisa@github.com" - } - ] - } - } - }, - "examples": { - "default": { - "value": { - "group_id": "123", - "group_name": "Octocat admins", - "updated_at": "2021-01-24T11:31:04-06:00", - "teams": [ - { - "team_id": 1, - "team_name": "team-test" - }, - { - "team_id": 2, - "team_name": "team-test2" - } - ], - "members": [ - { - "member_id": 1, - "member_login": "mona-lisa_eocsaxrs", - "member_name": "Mona Lisa", - "member_email": "mona_lisa@github.com" - }, - { - "member_id": 2, - "member_login": "octo-lisa_eocsaxrs", - "member_name": "Octo Lisa", - "member_email": "octo_lisa@github.com" - } - ] - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": true, - "enabledForGitHubApps": false, - "category": "teams", - "subcategory": "external-groups" - } - }, - "delete": { - "summary": "Remove the connection between an external group and a team", - "description": "Deletes a connection between a team and an external group.\n\nYou can manage team membership with your IdP using Enterprise Managed Users for GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.", - "tags": [ - "teams" - ], - "operationId": "teams/unlink-external-idp-group-from-team-for-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/external-groups#remove-the-connection-between-an-external-group-and-a-team" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } }, { - "name": "team_slug", - "description": "The slug of the team name.", + "name": "username", + "description": "The handle for the GitHub user account.", "in": "path", "required": true, "schema": { @@ -287553,27 +286529,30 @@ "responses": { "204": { "description": "Response" + }, + "403": { + "description": "Forbidden if team synchronization is set up" } }, "x-github": { - "githubCloudOnly": true, - "enabledForGitHubApps": false, + "githubCloudOnly": false, + "enabledForGitHubApps": true, "category": "teams", - "subcategory": "external-groups" + "subcategory": "members" } } }, - "/orgs/{org}/teams/{team_slug}/invitations": { + "/orgs/{org}/teams/{team_slug}/repos": { "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 Enterprise Cloud member, the `login` field in the return hash will be `null`.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/invitations`.", + "summary": "List team repositories", + "description": "Lists a team's repositories visible to the authenticated user.\n\n> [!NOTE]\n> 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-pending-invitations-in-org", + "operationId": "teams/list-repos-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories" }, "parameters": [ { @@ -287621,45 +286600,36 @@ "schema": { "type": "array", "items": { - "title": "Organization Invitation", - "description": "Organization Invitation", + "title": "Minimal Repository", + "description": "Minimal Repository", "type": "object", "properties": { "id": { "type": "integer", - "format": "int64" - }, - "login": { - "type": [ - "string", - "null" + "format": "int64", + "examples": [ + 1296269 ] }, - "email": { - "type": [ - "string", - "null" + "node_id": { + "type": "string", + "examples": [ + "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" ] }, - "role": { - "type": "string" - }, - "created_at": { - "type": "string" - }, - "failed_at": { - "type": [ - "string", - "null" + "name": { + "type": "string", + "examples": [ + "Hello-World" ] }, - "failed_reason": { - "type": [ - "string", - "null" + "full_name": { + "type": "string", + "examples": [ + "octocat/Hello-World" ] }, - "inviter": { + "owner": { "title": "Simple User", "description": "A GitHub user.", "type": "object", @@ -287827,1053 +286797,118 @@ "url" ] }, - "team_count": { - "type": "integer" - }, - "node_id": { - "type": "string", - "examples": [ - "\"MDIyOk9yZ2FuaXphdGlvbkludml0YXRpb24x\"" - ] + "private": { + "type": "boolean" }, - "invitation_teams_url": { + "html_url": { "type": "string", + "format": "uri", "examples": [ - "\"https://api.github.com/organizations/16/invitations/1/teams\"" + "https://github.com/octocat/Hello-World" ] }, - "invitation_source": { - "type": "string", - "examples": [ - "\"member\"" - ] - } - }, - "required": [ - "id", - "login", - "email", - "role", - "created_at", - "inviter", - "team_count", - "invitation_teams_url", - "node_id" - ] - } - }, - "examples": { - "default": { - "value": [ - { - "id": 1, - "login": "monalisa", - "node_id": "MDQ6VXNlcjE=", - "email": "octocat@github.com", - "role": "direct_member", - "created_at": "2016-11-30T06:46:10-08:00", - "failed_at": "", - "failed_reason": "", - "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_teams_url": "https://api.github.com/organizations/2/invitations/1/teams", - "invitation_source": "member" - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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/enterprise-cloud@latest//rest/teams/members#list-team-members" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "role", - "description": "Filters members returned by their role in the team.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "member", - "maintainer", - "all" - ], - "default": "all" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { + "description": { "type": [ "string", "null" + ], + "examples": [ + "This your first repo!" ] }, - "email": { - "type": [ - "string", - "null" - ] + "fork": { + "type": "boolean" }, - "login": { + "url": { "type": "string", + "format": "uri", "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 + "https://api.github.com/repos/octocat/Hello-World" ] }, - "node_id": { + "archive_url": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" + "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" ] }, - "avatar_url": { + "assignees_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/images/error/octocat_happy.gif" + "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" ] }, - "gravatar_id": { - "type": [ - "string", - "null" - ], + "blobs_url": { + "type": "string", "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" ] }, - "url": { + "branches_url": { "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" ] }, - "html_url": { + "collaborators_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" ] }, - "followers_url": { + "comments_url": { "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "http://api.github.com/repos/octocat/Hello-World/comments{/number}" ] }, - "following_url": { + "commits_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" ] }, - "gists_url": { + "compare_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" ] }, - "starred_url": { + "contents_url": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" ] }, - "subscriptions_url": { + "contributors_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "http://api.github.com/repos/octocat/Hello-World/contributors" ] }, - "organizations_url": { + "deployments_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "http://api.github.com/repos/octocat/Hello-World/deployments" ] }, - "repos_url": { + "downloads_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "http://api.github.com/repos/octocat/Hello-World/downloads" ] }, "events_url": { "type": "string", + "format": "uri", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "http://api.github.com/repos/octocat/Hello-World/events" ] }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - }, - "examples": { - "default": { - "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 - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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]\n> The response contains the `state` of the membership and the member's `role`.\n\nThe `role` for organization owners is set to `maintainer`. For more information about `maintainer` roles, see [Create a team](https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#create-a-team).", - "tags": [ - "teams" - ], - "operationId": "teams/get-membership-for-user-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } - } - } - } - }, - "404": { - "description": "if user has no team membership" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - }, - "put": { - "summary": "Add or update team membership for a user", - "description": "Adds an organization member to a team. An authenticated organization owner or team maintainer can add organization members to a team.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//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]\n> 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/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "role": { - "type": "string", - "description": "The role that this user should have in the team.", - "enum": [ - "member", - "maintainer" - ], - "default": "member" - } - } - }, - "examples": { - "default": { - "summary": "Add or update team membership for an organization member", - "value": { - "role": "maintainer" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "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", - "type": "string", - "examples": [ - "member" - ] - }, - "state": { - "description": "The state of the user's membership in the team.", - "type": "string", - "enum": [ - "active", - "pending" - ] - } - }, - "required": [ - "role", - "state", - "url" - ] - }, - "examples": { - "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" - } - } - } - } - } - }, - "403": { - "description": "Forbidden if team synchronization is set up" - }, - "422": { - "description": "Unprocessable Entity if you attempt to add an organization to a team" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - }, - "delete": { - "summary": "Remove team membership for a user", - "description": "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.\n\nTeam synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/enterprise-cloud@latest//github/getting-started-with-github/githubs-products) in the GitHub Help documentation.\n\n> [!NOTE]\n> 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 Enterprise Cloud 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 Enterprise Cloud](https://docs.github.com/enterprise-cloud@latest//articles/synchronizing-teams-between-your-identity-provider-and-github/).\"\n\n> [!NOTE]\n> 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/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "username", - "description": "The handle for the GitHub user account.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "403": { - "description": "Forbidden if team synchronization is set up" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "members" - } - } - }, - "/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]\n> 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/enterprise-cloud@latest//rest/teams/teams#list-team-repositories" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Minimal Repository", - "description": "Minimal Repository", - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1296269 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEwOlJlcG9zaXRvcnkxMjk2MjY5" - ] - }, - "name": { - "type": "string", - "examples": [ - "Hello-World" - ] - }, - "full_name": { - "type": "string", - "examples": [ - "octocat/Hello-World" - ] - }, - "owner": { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat/Hello-World" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "This your first repo!" - ] - }, - "fork": { - "type": "boolean" - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/repos/octocat/Hello-World" - ] - }, - "archive_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}" - ] - }, - "assignees_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/assignees{/user}" - ] - }, - "blobs_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}" - ] - }, - "branches_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/branches{/branch}" - ] - }, - "collaborators_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}" - ] - }, - "comments_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/comments{/number}" - ] - }, - "commits_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/commits{/sha}" - ] - }, - "compare_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}" - ] - }, - "contents_url": { - "type": "string", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contents/{+path}" - ] - }, - "contributors_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/contributors" - ] - }, - "deployments_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/deployments" - ] - }, - "downloads_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/downloads" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "http://api.github.com/repos/octocat/Hello-World/events" - ] - }, - "forks_url": { + "forks_url": { "type": "string", "format": "uri", "examples": [ @@ -694580,1752 +692615,122 @@ "type": "string" }, "documentation_url": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "search", - "subcategory": "search" - } - } - }, - "/teams/{team_id}": { - "get": { - "summary": "Get a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } - } - } - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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]\n> 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/enterprise-cloud@latest//rest/teams/teams#update-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "notification_setting": { - "type": "string", - "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ] - }, - "permission": { - "type": "string", - "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", - "enum": [ - "pull", - "push", - "admin" - ], - "default": "pull" - }, - "parent_team_id": { - "type": [ - "integer", - "null" - ], - "description": "The ID of a team to set as the parent team." - } - }, - "required": [ - "name" - ] - }, - "examples": { - "default": { - "value": { - "name": "new team name", - "description": "new team description", - "privacy": "closed", - "notification_setting": "notifications_enabled" - } - } - } - } - } - }, - "responses": { - "200": { - "description": "Response when the updated information already exists", - "content": { - "application/json": { - "schema": { - "title": "Full Team", - "description": "Groups of organization members that gives permissions on specified repositories.", - "type": "object", - "properties": { - "id": { - "description": "Unique identifier of the team", - "type": "integer", - "examples": [ - 42 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Developers" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "enum": [ - "closed", - "secret" - ], - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "enum": [ - "notifications_enabled", - "notifications_disabled" - ], - "examples": [ - "notifications_enabled" - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "push" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "parent": { - "anyOf": [ - { - "type": "null" - }, - { - "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", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VGVhbTE=" - ] - }, - "url": { - "description": "URL for the team", - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/organizations/1/team/1/members{/member}" - ] - }, - "name": { - "description": "Name of the team", - "type": "string", - "examples": [ - "Justice League" - ] - }, - "description": { - "description": "Description of the team", - "type": [ - "string", - "null" - ], - "examples": [ - "A great team." - ] - }, - "permission": { - "description": "Permission that the team will have for its repositories", - "type": "string", - "examples": [ - "admin" - ] - }, - "privacy": { - "description": "The level of privacy this team should have", - "type": "string", - "examples": [ - "closed" - ] - }, - "notification_setting": { - "description": "The notification setting the team has set", - "type": "string", - "examples": [ - "notifications_enabled" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/rails/teams/core" - ] - }, - "repositories_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/1/repos" - ] - }, - "slug": { - "type": "string", - "examples": [ - "justice-league" - ] - }, - "ldap_dn": { - "description": "Distinguished Name (DN) that team maps to within LDAP environment", - "type": "string", - "examples": [ - "uid=example,ou=users,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type" - ] - } - ] - }, - "members_count": { - "type": "integer", - "examples": [ - 3 - ] - }, - "repos_count": { - "type": "integer", - "examples": [ - 10 - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-07-14T16:53:42Z" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2017-08-17T12:37:15Z" - ] - }, - "organization": { - "title": "Team Organization", - "description": "Team Organization", - "type": "object", - "properties": { - "login": { - "type": "string", - "examples": [ - "github" - ] - }, - "id": { - "type": "integer", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDEyOk9yZ2FuaXphdGlvbjE=" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/repos" - ] - }, - "events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/orgs/github/events" - ] - }, - "hooks_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/hooks" - ] - }, - "issues_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/issues" - ] - }, - "members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/members{/member}" - ] - }, - "public_members_url": { - "type": "string", - "examples": [ - "https://api.github.com/orgs/github/public_members{/member}" - ] - }, - "avatar_url": { - "type": "string", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "description": { - "type": [ - "string", - "null" - ], - "examples": [ - "A great organization" - ] - }, - "name": { - "type": "string", - "examples": [ - "github" - ] - }, - "company": { - "type": "string", - "examples": [ - "GitHub" - ] - }, - "blog": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/blog" - ] - }, - "location": { - "type": "string", - "examples": [ - "San Francisco" - ] - }, - "email": { - "type": "string", - "format": "email", - "examples": [ - "octocat@github.com" - ] - }, - "twitter_username": { - "type": [ - "string", - "null" - ], - "examples": [ - "github" - ] - }, - "is_verified": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_organization_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "has_repository_projects": { - "type": "boolean", - "examples": [ - true - ] - }, - "public_repos": { - "type": "integer", - "examples": [ - 2 - ] - }, - "public_gists": { - "type": "integer", - "examples": [ - 1 - ] - }, - "followers": { - "type": "integer", - "examples": [ - 20 - ] - }, - "following": { - "type": "integer", - "examples": [ - 0 - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2008-01-14T04:33:35Z" - ] - }, - "type": { - "type": "string", - "examples": [ - "Organization" - ] - }, - "total_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "owned_private_repos": { - "type": "integer", - "examples": [ - 100 - ] - }, - "private_gists": { - "type": [ - "integer", - "null" - ], - "examples": [ - 81 - ] - }, - "disk_usage": { - "type": [ - "integer", - "null" - ], - "examples": [ - 10000 - ] - }, - "collaborators": { - "type": [ - "integer", - "null" - ], - "examples": [ - 8 - ] - }, - "billing_email": { - "type": [ - "string", - "null" - ], - "format": "email", - "examples": [ - "org@example.com" - ] - }, - "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", - "null" - ] - }, - "members_can_create_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "two_factor_requirement_enabled": { - "type": [ - "boolean", - "null" - ], - "examples": [ - true - ] - }, - "members_allowed_repository_creation_type": { - "type": "string", - "examples": [ - "all" - ] - }, - "members_can_create_public_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_internal_repositories": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_public_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_create_private_pages": { - "type": "boolean", - "examples": [ - true - ] - }, - "members_can_fork_private_repositories": { - "type": [ - "boolean", - "null" - ], - "examples": [ - false - ] - }, - "web_commit_signoff_required": { - "type": "boolean", - "examples": [ - false - ] - }, - "updated_at": { - "type": "string", - "format": "date-time" - }, - "archived_at": { - "type": [ - "string", - "null" - ], - "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", - "archived_at" - ] - }, - "ldap_dn": { - "type": "string", - "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", - "examples": [ - "cn=Enterprise Ops,ou=teams,dc=github,dc=com" - ] - }, - "type": { - "description": "The ownership type of the team", - "type": "string", - "enum": [ - "enterprise", - "organization" - ] - }, - "organization_id": { - "type": "integer", - "description": "Unique identifier of the organization to which this team belongs", - "examples": [ - 37 - ] - }, - "enterprise_id": { - "type": "integer", - "description": "Unique identifier of the enterprise to which this team belongs", - "examples": [ - 42 - ] - } - }, - "required": [ - "id", - "node_id", - "url", - "members_url", - "name", - "description", - "permission", - "html_url", - "repositories_url", - "slug", - "type", - "created_at", - "updated_at", - "members_count", - "repos_count", - "organization" - ] - }, - "examples": { - "default": { - "value": { - "id": 1, - "node_id": "MDQ6VGVhbTE=", - "url": "https://api.github.com/teams/1", - "html_url": "https://github.com/orgs/github/teams/justice-league", - "name": "Justice League", - "slug": "justice-league", - "description": "A great team.", - "privacy": "closed", - "notification_setting": "notifications_enabled", - "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" - } + "type": "string" } } } } } }, - "201": { + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "search", + "subcategory": "search" + } + } + }, + "/teams/{team_id}": { + "get": { + "summary": "Get a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/teams#get-a-team-by-name) endpoint.", + "tags": [ + "teams" + ], + "operationId": "teams/get-legacy", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-legacy" + }, + "parameters": [ + { + "name": "team_id", + "description": "The unique identifier of the team.", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { "description": "Response", "content": { "application/json": { @@ -697102,245 +693507,6 @@ } } } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "teams" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a team (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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/enterprise-cloud@latest//rest/teams/teams#delete-a-team-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "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", - "null" - ] - }, - { - "type": [ - "integer", - "null" - ] - }, - { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - } - ] - } - } - } - } - } - } - } - } } }, "x-github": { @@ -697352,501 +693518,17 @@ "subcategory": "teams" }, "deprecated": true - } - }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "direction", - "description": "The direction to sort the results by.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "enum": [ - "asc", - "desc" - ], - "default": "desc" - } - }, - { - "name": "per_page", - "description": "The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 30 - } - }, - { - "name": "page", - "description": "The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", - "in": "query", - "schema": { - "type": "integer", - "default": 1 - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - } - }, - "examples": { - "default": { - "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", - "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 - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "patch": { + "summary": "Update a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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]\n> With nested teams, the `privacy` for parent teams cannot be `secret`.", "tags": [ "teams" ], - "operationId": "teams/create-discussion-legacy", + "operationId": "teams/update-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team-legacy" }, "parameters": [ { @@ -697866,30 +693548,59 @@ "schema": { "type": "object", "properties": { - "title": { + "name": { "type": "string", - "description": "The discussion post's title." + "description": "The name of the team." }, - "body": { + "description": { "type": "string", - "description": "The discussion post's body text." + "description": "The description of the team." }, - "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 + "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" + ] + }, + "notification_setting": { + "type": "string", + "description": "The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: \n * `notifications_enabled` - team members receive notifications when the team is @mentioned. \n * `notifications_disabled` - no one receives notifications.", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ] + }, + "permission": { + "type": "string", + "description": "**Closing down notice**. The permission that new repositories will be added to the team with when none is specified.", + "enum": [ + "pull", + "push", + "admin" + ], + "default": "pull" + }, + "parent_team_id": { + "type": [ + "integer", + "null" + ], + "description": "The ID of a team to set as the parent team." } }, "required": [ - "title", - "body" + "name" ] }, "examples": { "default": { "value": { - "title": "Our first team post", - "body": "Hi! This is an area for us to collaborate as a team." + "name": "new team name", + "description": "new team description", + "privacy": "closed", + "notification_setting": "notifications_enabled" } } } @@ -697897,495 +693608,120 @@ } }, "responses": { - "201": { - "description": "Response", + "200": { + "description": "Response when the updated information already exists", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { - "anyOf": [ - { - "type": "null" - }, - { - "title": "Simple User", - "description": "A GitHub user.", - "type": "object", - "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, - "id": { - "type": "integer", - "format": "int64", - "examples": [ - 1 - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat" - ] - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/octocat" - ] - }, - "followers_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/followers" - ] - }, - "following_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" - ] - }, - "gists_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" - ] - }, - "starred_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" - ] - }, - "subscriptions_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/subscriptions" - ] - }, - "organizations_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/orgs" - ] - }, - "repos_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/repos" - ] - }, - "events_url": { - "type": "string", - "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" - ] - }, - "received_events_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/users/octocat/received_events" - ] - }, - "type": { - "type": "string", - "examples": [ - "User" - ] - }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", - "examples": [ - "\"2020-07-09T00:17:55Z\"" - ] - }, - "user_view_type": { - "type": "string", - "examples": [ - "public" - ] - } - }, - "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" - ] - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", + "type": "object", + "properties": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", "examples": [ - "

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

" + 42 ] }, - "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.", + "node_id": { "type": "string", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "MDQ6VGVhbTE=" ] }, - "created_at": { + "url": { + "description": "URL for the team", "type": "string", - "format": "date-time", + "format": "uri", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1" ] }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, "html_url": { "type": "string", "format": "uri", "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" + "https://github.com/orgs/rails/teams/core" ] }, - "node_id": { + "name": { + "description": "Name of the team", "type": "string", "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" + "Developers" ] }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", + "slug": { + "type": "string", "examples": [ - 42 + "justice-league" ] }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", + "description": { + "type": [ + "string", + "null" + ], "examples": [ - true + "A great team." ] }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], "examples": [ - true + "closed" ] }, - "team_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], "examples": [ - "https://api.github.com/organizations/1/team/2343027" + "notifications_enabled" ] }, - "title": { - "description": "The title of the discussion.", + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "How can we improve our workflow?" + "push" ] }, - "updated_at": { + "members_url": { "type": "string", - "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "reactions": { - "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" - ] - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, - "examples": { - "default": { - "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", - "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 - } - } - } - } - } - } - } - }, - "x-github": { - "triggersNotification": true, - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", - "type": "object", - "properties": { - "author": { + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -698393,472 +693729,751 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" } } } } } } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "name": "team_id", - "description": "The unique identifier of the team.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "title": "Welcome to our first team post" - } - } - } - } - } - }, - "responses": { - "200": { + "201": { "description": "Response", "content": { "application/json": { "schema": { - "title": "Team Discussion", - "description": "A team discussion is a persistent record of a free-form conversation within a team.", + "title": "Full Team", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "author": { + "id": { + "description": "Unique identifier of the team", + "type": "integer", + "examples": [ + 42 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDQ6VGVhbTE=" + ] + }, + "url": { + "description": "URL for the team", + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1" + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/orgs/rails/teams/core" + ] + }, + "name": { + "description": "Name of the team", + "type": "string", + "examples": [ + "Developers" + ] + }, + "slug": { + "type": "string", + "examples": [ + "justice-league" + ] + }, + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great team." + ] + }, + "privacy": { + "description": "The level of privacy this team should have", + "type": "string", + "enum": [ + "closed", + "secret" + ], + "examples": [ + "closed" + ] + }, + "notification_setting": { + "description": "The notification setting the team has set", + "type": "string", + "enum": [ + "notifications_enabled", + "notifications_disabled" + ], + "examples": [ + "notifications_enabled" + ] + }, + "permission": { + "description": "Permission that the team will have for its repositories", + "type": "string", + "examples": [ + "push" + ] + }, + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/organizations/1/team/1/members{/member}" + ] + }, + "repositories_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/organizations/1/team/1/repos" + ] + }, + "parent": { "anyOf": [ { "type": "null" }, { - "title": "Simple User", - "description": "A GitHub user.", + "title": "Team Simple", + "description": "Groups of organization members that gives permissions on specified repositories.", "type": "object", "properties": { - "name": { - "type": [ - "string", - "null" - ] - }, - "email": { - "type": [ - "string", - "null" - ] - }, - "login": { - "type": "string", - "examples": [ - "octocat" - ] - }, "id": { + "description": "Unique identifier of the team", "type": "integer", - "format": "int64", "examples": [ 1 ] @@ -698866,361 +694481,763 @@ "node_id": { "type": "string", "examples": [ - "MDQ6VXNlcjE=" - ] - }, - "avatar_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/images/error/octocat_happy.gif" - ] - }, - "gravatar_id": { - "type": [ - "string", - "null" - ], - "examples": [ - "41d064eb2195891e12d0413f63227ea7" + "MDQ6VGVhbTE=" ] }, "url": { + "description": "URL for the team", "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat" + "https://api.github.com/organizations/1/team/1" ] }, - "html_url": { + "members_url": { "type": "string", - "format": "uri", "examples": [ - "https://github.com/octocat" + "https://api.github.com/organizations/1/team/1/members{/member}" ] }, - "followers_url": { + "name": { + "description": "Name of the team", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/followers" + "Justice League" ] }, - "following_url": { - "type": "string", + "description": { + "description": "Description of the team", + "type": [ + "string", + "null" + ], "examples": [ - "https://api.github.com/users/octocat/following{/other_user}" + "A great team." ] }, - "gists_url": { + "permission": { + "description": "Permission that the team will have for its repositories", "type": "string", "examples": [ - "https://api.github.com/users/octocat/gists{/gist_id}" + "admin" ] }, - "starred_url": { + "privacy": { + "description": "The level of privacy this team should have", "type": "string", "examples": [ - "https://api.github.com/users/octocat/starred{/owner}{/repo}" + "closed" ] }, - "subscriptions_url": { + "notification_setting": { + "description": "The notification setting the team has set", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/subscriptions" + "notifications_enabled" ] }, - "organizations_url": { + "html_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/orgs" + "https://github.com/orgs/rails/teams/core" ] }, - "repos_url": { + "repositories_url": { "type": "string", "format": "uri", "examples": [ - "https://api.github.com/users/octocat/repos" + "https://api.github.com/organizations/1/team/1/repos" ] }, - "events_url": { + "slug": { "type": "string", "examples": [ - "https://api.github.com/users/octocat/events{/privacy}" + "justice-league" ] }, - "received_events_url": { + "ldap_dn": { + "description": "Distinguished Name (DN) that team maps to within LDAP environment", "type": "string", - "format": "uri", "examples": [ - "https://api.github.com/users/octocat/received_events" + "uid=example,ou=users,dc=github,dc=com" ] }, "type": { + "description": "The ownership type of the team", "type": "string", - "examples": [ - "User" + "enum": [ + "enterprise", + "organization" ] }, - "site_admin": { - "type": "boolean" - }, - "starred_at": { - "type": "string", + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", "examples": [ - "\"2020-07-09T00:17:55Z\"" + 37 ] }, - "user_view_type": { - "type": "string", + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", "examples": [ - "public" + 42 ] } }, "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" + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type" ] } ] }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", + "members_count": { + "type": "integer", "examples": [ - "

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

" + 3 ] }, - "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.", - "type": "string", + "repos_count": { + "type": "integer", "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + 10 ] }, "created_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "2017-07-14T16:53:42Z" ] }, "updated_at": { "type": "string", "format": "date-time", "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" + "2017-08-17T12:37:15Z" ] }, - "reactions": { - "title": "Reaction Rollup", + "organization": { + "title": "Team Organization", + "description": "Team Organization", "type": "object", "properties": { + "login": { + "type": "string", + "examples": [ + "github" + ] + }, + "id": { + "type": "integer", + "examples": [ + 1 + ] + }, + "node_id": { + "type": "string", + "examples": [ + "MDEyOk9yZ2FuaXphdGlvbjE=" + ] + }, "url": { "type": "string", - "format": "uri" + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github" + ] }, - "total_count": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/repos" + ] }, - "+1": { - "type": "integer" + "events_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/orgs/github/events" + ] }, - "-1": { - "type": "integer" + "hooks_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/hooks" + ] }, - "laugh": { - "type": "integer" + "issues_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/issues" + ] }, - "confused": { - "type": "integer" + "members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/members{/member}" + ] }, - "heart": { - "type": "integer" + "public_members_url": { + "type": "string", + "examples": [ + "https://api.github.com/orgs/github/public_members{/member}" + ] }, - "hooray": { - "type": "integer" + "avatar_url": { + "type": "string", + "examples": [ + "https://github.com/images/error/octocat_happy.gif" + ] }, - "eyes": { - "type": "integer" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "A great organization" + ] }, - "rocket": { - "type": "integer" + "name": { + "type": "string", + "examples": [ + "github" + ] + }, + "company": { + "type": "string", + "examples": [ + "GitHub" + ] + }, + "blog": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/blog" + ] + }, + "location": { + "type": "string", + "examples": [ + "San Francisco" + ] + }, + "email": { + "type": "string", + "format": "email", + "examples": [ + "octocat@github.com" + ] + }, + "twitter_username": { + "type": [ + "string", + "null" + ], + "examples": [ + "github" + ] + }, + "is_verified": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_organization_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "has_repository_projects": { + "type": "boolean", + "examples": [ + true + ] + }, + "public_repos": { + "type": "integer", + "examples": [ + 2 + ] + }, + "public_gists": { + "type": "integer", + "examples": [ + 1 + ] + }, + "followers": { + "type": "integer", + "examples": [ + 20 + ] + }, + "following": { + "type": "integer", + "examples": [ + 0 + ] + }, + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] + }, + "created_at": { + "type": "string", + "format": "date-time", + "examples": [ + "2008-01-14T04:33:35Z" + ] + }, + "type": { + "type": "string", + "examples": [ + "Organization" + ] + }, + "total_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "owned_private_repos": { + "type": "integer", + "examples": [ + 100 + ] + }, + "private_gists": { + "type": [ + "integer", + "null" + ], + "examples": [ + 81 + ] + }, + "disk_usage": { + "type": [ + "integer", + "null" + ], + "examples": [ + 10000 + ] + }, + "collaborators": { + "type": [ + "integer", + "null" + ], + "examples": [ + 8 + ] + }, + "billing_email": { + "type": [ + "string", + "null" + ], + "format": "email", + "examples": [ + "org@example.com" + ] + }, + "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", + "null" + ] + }, + "members_can_create_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "two_factor_requirement_enabled": { + "type": [ + "boolean", + "null" + ], + "examples": [ + true + ] + }, + "members_allowed_repository_creation_type": { + "type": "string", + "examples": [ + "all" + ] + }, + "members_can_create_public_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_internal_repositories": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_public_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_create_private_pages": { + "type": "boolean", + "examples": [ + true + ] + }, + "members_can_fork_private_repositories": { + "type": [ + "boolean", + "null" + ], + "examples": [ + false + ] + }, + "web_commit_signoff_required": { + "type": "boolean", + "examples": [ + false + ] + }, + "updated_at": { + "type": "string", + "format": "date-time" + }, + "archived_at": { + "type": [ + "string", + "null" + ], + "format": "date-time" } }, "required": [ + "login", "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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", + "archived_at" + ] + }, + "ldap_dn": { + "type": "string", + "description": "The [distinguished name](https://www.ldap.com/ldap-dns-and-rdns) (DN) of the LDAP entry to map to a team.", + "examples": [ + "cn=Enterprise Ops,ou=teams,dc=github,dc=com" + ] + }, + "type": { + "description": "The ownership type of the team", + "type": "string", + "enum": [ + "enterprise", + "organization" + ] + }, + "organization_id": { + "type": "integer", + "description": "Unique identifier of the organization to which this team belongs", + "examples": [ + 37 + ] + }, + "enterprise_id": { + "type": "integer", + "description": "Unique identifier of the enterprise to which this team belongs", + "examples": [ + 42 ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", + "id", "node_id", - "number", - "team_url", - "title", + "url", + "members_url", + "name", + "description", + "permission", + "html_url", + "repositories_url", + "slug", + "type", + "created_at", "updated_at", - "url" + "members_count", + "repos_count", + "organization" ] }, "examples": { "default": { "value": { - "author": { - "login": "octocat", + "id": 1, + "node_id": "MDQ6VGVhbTE=", + "url": "https://api.github.com/teams/1", + "html_url": "https://github.com/orgs/github/teams/justice-league", + "name": "Justice League", + "slug": "justice-league", + "description": "A great team.", + "privacy": "closed", + "notification_setting": "notifications_enabled", + "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": "MDQ6VXNlcjE=", + "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", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", + "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", - "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", - "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" + } + } + } + } + } + } + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } } } } } } } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } } }, "x-github": { @@ -699229,20 +695246,20 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true }, "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", + "summary": "Delete a team (Legacy)", + "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/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-discussion-legacy", + "operationId": "teams/delete-legacy", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team-legacy" }, "parameters": [ { @@ -699253,20 +695270,112 @@ "schema": { "type": "integer" } - }, - { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } } ], "responses": { "204": { "description": "Response" + }, + "404": { + "description": "Resource not found", + "content": { + "application/json": { + "schema": { + "title": "Basic Error", + "description": "Basic Error", + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "documentation_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "status": { + "type": "string" + } + } + } + } + } + }, + "422": { + "description": "Validation failed, or the endpoint has been spammed.", + "content": { + "application/json": { + "schema": { + "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", + "null" + ] + }, + { + "type": [ + "integer", + "null" + ] + }, + { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + } + ] + } + } + } + } + } + } + } + } } }, "x-github": { @@ -699275,7 +695384,7 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true } diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index 493f491ac..9fd75a573 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -1079,7 +1079,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/global-advisories#get-a-global-security-advisory parameters: - - &729 + - &726 name: ghsa_id description: The GHSA (GitHub Security Advisory) identifier of the advisory. in: path @@ -1808,7 +1808,7 @@ paths: application/json: schema: *3 application/scim+json: - schema: &739 + schema: &736 title: Scim Error description: Scim Error type: object @@ -9260,7 +9260,7 @@ paths: value: days: 90 maximum_allowed_days: 365 - '401': &740 + '401': &737 description: Authorization failure '404': *6 x-github: @@ -13533,7 +13533,7 @@ paths: description: The GitHub URL of the alert resource. format: uri readOnly: true - instances_url: &514 + instances_url: &511 type: string description: The REST API URL for fetching the list of instances for an alert. @@ -13569,7 +13569,7 @@ paths: format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissed_reason: &515 + dismissed_reason: &512 type: - string - 'null' @@ -13580,14 +13580,14 @@ paths: - won't fix - used in tests - - dismissed_comment: &516 + dismissed_comment: &513 type: - string - 'null' description: The dismissal comment associated with the dismissal of the alert. maxLength: 280 - rule: &517 + rule: &514 type: object properties: id: @@ -13648,7 +13648,7 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: &518 + tool: &515 type: object properties: name: *109 @@ -13659,26 +13659,26 @@ paths: description: The version of the tool used to generate the code scanning analysis. guid: *110 - most_recent_instance: &519 + most_recent_instance: &516 type: object properties: - ref: &512 + ref: &509 type: string description: |- The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, `refs/heads/` or simply ``. - analysis_key: &529 + analysis_key: &526 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. - environment: &530 + environment: &527 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. - category: &531 + category: &528 type: string description: Identifies the configuration under which the analysis was executed. Used to distinguish between multiple @@ -13692,7 +13692,7 @@ paths: properties: text: type: string - location: &532 + location: &529 type: object description: Describe a region within a file for the alert. properties: @@ -13713,7 +13713,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: &533 + items: &530 type: - string - 'null' @@ -17488,7 +17488,7 @@ paths: Filters the list of alerts based on EPSS percentages. If specified, only alerts with the provided EPSS percentages will be returned. schema: type: string - - &570 + - &567 name: has in: query description: |- @@ -17605,7 +17605,7 @@ paths: - direct - transitive - - security_advisory: &571 + security_advisory: &568 type: object description: Details for the GitHub Security Advisory. readOnly: true @@ -17841,7 +17841,7 @@ paths: dismissal. maxLength: 280 fixed_at: *134 - auto_dismissed_at: &572 + auto_dismissed_at: &569 type: - string - 'null' @@ -17849,7 +17849,7 @@ paths: ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissal_request: &573 + dismissal_request: &570 title: Dependabot alert dismissal request description: Information about an active dismissal request for this Dependabot alert. @@ -21393,7 +21393,7 @@ paths: - object rules: type: array - items: &695 + items: &692 title: Repository Rule type: object description: A repository rule. @@ -21402,7 +21402,7 @@ paths: - *165 - *166 - *167 - - &693 + - &690 title: merge_queue description: Merges must be performed via a merge queue. type: object @@ -21962,14 +21962,14 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: &707 + state: &704 description: Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. type: string enum: - open - resolved - resolution: &708 + resolution: &705 type: - string - 'null' @@ -22076,14 +22076,14 @@ paths: first_location_detected: anyOf: - type: 'null' - - &709 + - &706 description: 'Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request. ' oneOf: - - &711 + - &708 description: Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. @@ -22140,7 +22140,7 @@ paths: - blob_url - commit_sha - commit_url - - &712 + - &709 description: Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. @@ -22201,7 +22201,7 @@ paths: - page_url - commit_sha - commit_url - - &713 + - &710 description: Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. @@ -22216,7 +22216,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_title_url - - &714 + - &711 description: Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. @@ -22231,7 +22231,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/1347 required: - issue_body_url - - &715 + - &712 description: Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. @@ -22246,7 +22246,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - issue_comment_url - - &716 + - &713 description: Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. @@ -22261,7 +22261,7 @@ paths: - https://github.com/community/community/discussions/39082 required: - discussion_title_url - - &717 + - &714 description: Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. @@ -22276,7 +22276,7 @@ paths: - https://github.com/community/community/discussions/39082#discussion-4566270 required: - discussion_body_url - - &718 + - &715 description: Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. @@ -22291,7 +22291,7 @@ paths: - https://github.com/community/community/discussions/39082#discussioncomment-4158232 required: - discussion_comment_url - - &719 + - &716 description: Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. @@ -22306,7 +22306,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_title_url - - &720 + - &717 description: Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. @@ -22321,7 +22321,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846 required: - pull_request_body_url - - &721 + - &718 description: Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. @@ -22336,7 +22336,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/issues/comments/1081119451 required: - pull_request_comment_url - - &722 + - &719 description: Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. @@ -22351,7 +22351,7 @@ paths: - https://api.github.com/repos/octocat/Hello-World/pulls/2846/reviews/80 required: - pull_request_review_url - - &723 + - &720 description: Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull @@ -25693,7 +25693,7 @@ paths: properties: action: type: string - discussion: &846 + discussion: &841 title: Discussion description: A Discussion in a repository. type: object @@ -26479,7 +26479,7 @@ paths: - hooray - eyes - rocket - sub_issues_summary: &767 + sub_issues_summary: &764 title: Sub-issues Summary type: object properties: @@ -26500,7 +26500,7 @@ paths: - string - 'null' format: uri - issue_dependencies_summary: &768 + issue_dependencies_summary: &765 title: Issue Dependencies Summary type: object properties: @@ -26519,7 +26519,7 @@ paths: - total_blocking issue_field_values: type: array - items: &769 + items: &766 title: Issue Field Value description: A value assigned to an issue field type: object @@ -26632,7 +26632,7 @@ paths: action: type: string issue: *213 - comment: &630 + comment: &627 title: Issue Comment description: Comments provide a way for people to collaborate on an issue. @@ -27355,7 +27355,7 @@ paths: type: string release: allOf: - - &686 + - &683 title: Release description: A release. type: object @@ -27437,7 +27437,7 @@ paths: author: *4 assets: type: array - items: &687 + items: &684 title: Release Asset description: Data related to a release. type: object @@ -28028,7 +28028,7 @@ paths: url: type: string format: uri - user: &777 + user: &772 title: Public User description: Public User type: object @@ -31385,14 +31385,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-public-events-for-a-network-of-repositories parameters: - - &441 + - &438 name: owner description: The account owner of the repository. The name is not case sensitive. in: path required: true schema: type: string - - &442 + - &439 name: repo description: The name of the repository without the `.git` extension. The name is not case sensitive. @@ -31454,7 +31454,7 @@ paths: '404': *6 '403': *27 '304': *35 - '301': &447 + '301': &444 description: Moved permanently content: application/json: @@ -31476,7 +31476,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#list-notifications-for-the-authenticated-user parameters: - - &660 + - &657 name: all description: If `true`, show notifications marked as read. in: query @@ -31484,7 +31484,7 @@ paths: schema: type: boolean default: false - - &661 + - &658 name: participating description: If `true`, only shows notifications in which the user is directly participating or mentioned. @@ -31494,7 +31494,7 @@ paths: type: boolean default: false - *219 - - &662 + - &659 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: @@ -32038,7 +32038,7 @@ paths: - url - subscription_url examples: - default: &663 + default: &660 value: - id: '1' repository: @@ -33167,7 +33167,7 @@ paths: type: array items: *150 examples: - default: &669 + default: &666 value: - property_name: environment value: production @@ -33217,7 +33217,7 @@ paths: required: - properties examples: - default: &670 + default: &667 value: properties: - property_name: environment @@ -34108,7 +34108,7 @@ paths: type: integer repository_cache_usages: type: array - items: &454 + items: &451 title: Actions Cache Usage by repository description: GitHub Actions Cache Usage by repository. type: object @@ -36231,7 +36231,7 @@ paths: type: array items: *273 examples: - default: &780 + default: &775 value: total_count: 1 repositories: @@ -37275,7 +37275,7 @@ paths: description: Response content: application/json: - schema: &474 + schema: &471 title: ActionsPublicKey description: The public key used for setting Actions Secrets. type: object @@ -37310,7 +37310,7 @@ paths: - key_id - key examples: - default: &475 + default: &472 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -37723,7 +37723,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-organization-variables parameters: - *85 - - &459 + - &456 name: per_page description: The number of results per page (max 30). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." @@ -38963,12 +38963,12 @@ paths: required: - subject_digests examples: - default: &807 + default: &802 value: subject_digests: - sha256:abc123 - sha512:def456 - withPredicateType: &808 + withPredicateType: &803 value: subject_digests: - sha256:abc123 @@ -39027,7 +39027,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: &809 + default: &804 value: attestations_subject_digests: - sha256:abc: @@ -39376,7 +39376,7 @@ paths: initiator: type: string examples: - default: &488 + default: &485 value: attestations: - bundle: @@ -40298,7 +40298,7 @@ paths: be returned. in: query required: false - schema: &513 + schema: &510 type: string description: Severity of a code scanning alert. enum: @@ -41358,7 +41358,7 @@ paths: machine: anyOf: - type: 'null' - - &545 + - &542 type: object title: Codespace machine description: A description of the machine powering a codespace. @@ -42310,7 +42310,7 @@ paths: - updated_at - visibility examples: - default: &546 + default: &543 value: total_count: 2 secrets: @@ -42348,7 +42348,7 @@ paths: description: Response content: application/json: - schema: &547 + schema: &544 title: CodespacesPublicKey description: The public key used for setting Codespaces secrets. type: object @@ -42383,7 +42383,7 @@ paths: - key_id - key examples: - default: &548 + default: &545 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -42415,7 +42415,7 @@ paths: application/json: schema: *316 examples: - default: &550 + default: &547 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -44294,7 +44294,7 @@ paths: description: Response content: application/json: - schema: &576 + schema: &573 title: DependabotPublicKey description: The public key used for setting Dependabot Secrets. type: object @@ -44313,7 +44313,7 @@ paths: - key_id - key examples: - default: &577 + default: &574 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -44643,7 +44643,7 @@ paths: subcategory: alert-dismissal-requests parameters: - *85 - - &585 + - &582 name: reviewer description: Filter alert dismissal requests by the handle of the GitHub user who reviewed the dismissal request. @@ -44651,7 +44651,7 @@ paths: required: false schema: type: string - - &586 + - &583 name: requester description: Filter alert dismissal requests by the handle of the GitHub user who requested the dismissal. @@ -44659,7 +44659,7 @@ paths: required: false schema: type: string - - &587 + - &584 name: time_period description: |- The time period to filter by. @@ -44675,7 +44675,7 @@ paths: - week - month default: month - - &588 + - &585 name: request_status description: Filter alert dismissal requests by status. When specified, only requests with this status will be returned. @@ -44700,7 +44700,7 @@ paths: application/json: schema: type: array - items: &589 + items: &586 title: Code scanning alert dismissal request description: Alert dismisal request made by a user asking to dismiss a code scanning alert. @@ -44863,7 +44863,7 @@ paths: examples: - https://github.com/octo-org/smile/code-scanning/alerts/1 examples: - default: &590 + default: &587 value: - id: 21 number: 42 @@ -44981,7 +44981,7 @@ paths: application/json: schema: type: array - items: &591 + items: &588 title: Dependabot alert dismissal request description: Alert dismissal request made by a user asking to dismiss a Dependabot alert. @@ -45104,7 +45104,7 @@ paths: examples: - https://github.com/octo-org/smile/security/dependabot/1 examples: - default: &592 + default: &589 value: - id: 21 number: 42 @@ -45206,7 +45206,7 @@ paths: application/json: schema: type: array - items: &593 + items: &590 title: Secret scanning alert dismissal request description: A dismissal request made by a user asking to close a secret scanning alert in this repository. @@ -45333,7 +45333,7 @@ paths: examples: - https://github.com/octo-org/smile/security/secret-scanning/17 examples: - default: &594 + default: &591 value: - id: 21 number: 42 @@ -45679,7 +45679,7 @@ paths: description: Response content: application/json: - schema: &438 + schema: &435 title: ExternalGroup description: Information about an external group's usage and its members type: object @@ -45769,7 +45769,7 @@ paths: member_name: Octo Lisa member_email: octo_lisa@github.com examples: - default: &439 + default: &436 value: group_id: '123' group_name: Octocat admins @@ -45824,7 +45824,7 @@ paths: description: Response content: application/json: - schema: &436 + schema: &433 title: ExternalGroups description: A list of external groups available to be connected to a team @@ -45864,7 +45864,7 @@ paths: group_name: group-azuread-test2 updated_at: 2021-06-03 22:27:15:000 -700 examples: - default: &437 + default: &434 value: groups: - group_id: '123' @@ -47193,7 +47193,7 @@ paths: application/json: schema: *20 examples: - default: &625 + default: &622 value: id: 1 account: @@ -47421,7 +47421,7 @@ paths: required: true content: application/json: - schema: &626 + schema: &623 title: Interaction Restrictions description: Limit interactions to a specific type of user for a specified duration @@ -48289,7 +48289,7 @@ paths: application/json: schema: *363 examples: - default: &544 + default: &541 value: id: 1 name: monalisa-octocat-hello-world-g4wpq6h95q @@ -49551,7 +49551,7 @@ paths: parameters: - *85 - *369 - - &792 + - &787 name: repo_name description: repo_name parameter in: path @@ -50897,7 +50897,7 @@ paths: - nuget - container - *85 - - &793 + - &788 name: visibility description: |- The selected visibility of the packages. This parameter is optional and only filters an existing result set. @@ -50938,7 +50938,7 @@ paths: default: *374 '403': *27 '401': *23 - '400': &795 + '400': &790 description: The value of `per_page` multiplied by `page` cannot be greater than 10000. x-github: @@ -52764,7 +52764,7 @@ paths: latest_status_update: anyOf: - type: 'null' - - &879 + - &874 title: Projects v2 Status Update description: An status update belonging to a project type: object @@ -53038,7 +53038,7 @@ paths: content: oneOf: - *213 - - &559 + - &556 title: Pull Request Simple description: Pull Request Simple type: object @@ -53283,7 +53283,7 @@ paths: - review_comment - self author_association: *214 - auto_merge: &672 + auto_merge: &669 title: Auto merge description: The status of auto merging a pull request. type: @@ -53665,7 +53665,7 @@ paths: - updated_at - project_url examples: - default: &812 + default: &807 value: - id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -53842,7 +53842,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: &813 + items: &808 type: object properties: name: @@ -53878,7 +53878,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: &814 + iteration_configuration: &809 type: object description: The configuration for iteration fields. properties: @@ -53927,7 +53927,7 @@ paths: value: name: Due date data_type: date - single_select_field: &815 + single_select_field: &810 summary: Create a single select field value: name: Priority @@ -53954,7 +53954,7 @@ paths: description: raw: High priority items html: High priority items - iteration_field: &816 + iteration_field: &811 summary: Create an iteration field value: name: Sprint @@ -53980,7 +53980,7 @@ paths: application/json: schema: *394 examples: - text_field: &817 + text_field: &812 value: id: 24680 node_id: PVTF_lADOABCD2468024680 @@ -53989,7 +53989,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-05-15T08:00:00Z' updated_at: '2022-05-15T08:00:00Z' - number_field: &818 + number_field: &813 value: id: 13579 node_id: PVTF_lADOABCD1357913579 @@ -53998,7 +53998,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-01T14:30:00Z' updated_at: '2022-06-01T14:30:00Z' - date_field: &819 + date_field: &814 value: id: 98765 node_id: PVTF_lADOABCD9876598765 @@ -54007,7 +54007,7 @@ paths: project_url: https://api.github.com/projects/67890 created_at: '2022-06-10T09:15:00Z' updated_at: '2022-06-10T09:15:00Z' - single_select_field: &820 + single_select_field: &815 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -54041,7 +54041,7 @@ paths: raw: High priority items created_at: '2022-04-28T12:00:00Z' updated_at: '2022-04-28T12:00:00Z' - iteration_field: &821 + iteration_field: &816 value: id: 11223 node_id: PVTF_lADOABCD1122311223 @@ -54087,7 +54087,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/projects/fields#get-project-field-for-organization parameters: - *391 - - &822 + - &817 name: field_id description: The unique identifier of the field. in: path @@ -54102,7 +54102,7 @@ paths: application/json: schema: *394 examples: - default: &823 + default: &818 value: id: 12345 node_id: PVTF_lADOABCD1234567890 @@ -55239,7 +55239,7 @@ paths: parameters: - *391 - *85 - - &824 + - &819 name: view_number description: The number that identifies the project view. in: path @@ -56009,7 +56009,7 @@ paths: description: Response content: application/json: - schema: &446 + schema: &443 title: Full Repository description: Full Repository type: object @@ -56474,7 +56474,7 @@ paths: description: Whether anonymous git access is allowed. default: true type: boolean - code_of_conduct: &564 + code_of_conduct: &561 title: Code Of Conduct Simple description: Code of Conduct Simple type: object @@ -56588,7 +56588,7 @@ paths: - network_count - subscribers_count examples: - default: &448 + default: &445 value: id: 1296269 node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 @@ -57141,7 +57141,7 @@ paths: - *85 - *17 - *19 - - &694 + - &691 name: targets description: | A comma-separated list of rule targets to filter by. @@ -57357,7 +57357,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/rule-suites#list-organization-rule-suites parameters: - *85 - - &696 + - &693 name: ref description: The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit @@ -57369,14 +57369,14 @@ paths: x-multi-segment: true - *299 - *103 - - &697 + - &694 name: actor_name description: The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. in: query schema: type: string - - &698 + - &695 name: rule_suite_result description: The rule suite results to filter on. When specified, only suites with this result will be returned. @@ -57396,7 +57396,7 @@ paths: description: Response content: application/json: - schema: &699 + schema: &696 title: Rule Suites description: Response type: array @@ -57452,7 +57452,7 @@ paths: whether rules would pass or fail if all rules in the rule suite were `active`. examples: - default: &700 + default: &697 value: - id: 21 actor_id: 12 @@ -57496,7 +57496,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/orgs/rule-suites#get-an-organization-rule-suite parameters: - *85 - - &701 + - &698 name: rule_suite_id description: |- The unique identifier of the rule suite result. @@ -57512,7 +57512,7 @@ paths: description: Response content: application/json: - schema: &702 + schema: &699 title: Rule Suite description: Response type: object @@ -57619,7 +57619,7 @@ paths: description: The detailed failure message for the rule. Null if the rule passed. examples: - default: &703 + default: &700 value: id: 21 actor_id: 12 @@ -57951,7 +57951,7 @@ paths: - *108 - *19 - *17 - - &705 + - &702 name: before description: A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To @@ -57961,7 +57961,7 @@ paths: required: false schema: type: string - - &706 + - &703 name: after description: A cursor, as given in the [Link header](https://docs.github.com/enterprise-cloud@latest//rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To @@ -58174,7 +58174,7 @@ paths: application/json: schema: type: array - items: &727 + items: &724 description: A repository security advisory. type: object properties: @@ -58493,7 +58493,7 @@ paths: - private_fork additionalProperties: false examples: - default: &728 + default: &725 value: - ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -59504,7 +59504,7 @@ paths: description: Response content: application/json: - schema: &443 + schema: &440 title: GroupMapping description: External Groups to be mapped to a team for membership type: object @@ -59556,7 +59556,7 @@ paths: group_description: Another group of Developers working on AzureAD SAML SSO examples: - default: &444 + default: &441 value: groups: - group_id: '123' @@ -60371,464 +60371,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions - parameters: - - *85 - - *210 - - *108 - - *17 - - *19 - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: &433 - title: Team Discussion - description: A team discussion is a persistent record of a free-form - conversation within a team. - type: object - properties: - author: - anyOf: - - type: 'null' - - *4 - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned - for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted - to team members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: *215 - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url - examples: - default: &771 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - headers: - Link: *45 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion - parameters: - - *85 - - *210 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *433 - examples: - default: &434 - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion - parameters: - - *85 - - *210 - - &435 - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: *434 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion - parameters: - - *85 - - *210 - - *435 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: &772 - 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 - 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 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion - parameters: - - *85 - - *210 - - *435 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/external-groups": get: summary: List a connection between an external group and a team @@ -60850,9 +60392,9 @@ paths: description: Response content: application/json: - schema: *436 + schema: *433 examples: - default: *437 + default: *434 x-github: githubCloudOnly: true enabledForGitHubApps: true @@ -60896,9 +60438,9 @@ paths: description: Response content: application/json: - schema: *438 + schema: *435 examples: - default: *439 + default: *436 x-github: githubCloudOnly: true enabledForGitHubApps: false @@ -61039,7 +60581,7 @@ paths: description: Response content: application/json: - schema: &440 + schema: &437 title: Team Membership description: Team Membership type: object @@ -61067,7 +60609,7 @@ paths: - state - url examples: - response-if-user-is-a-team-maintainer: &773 + response-if-user-is-a-team-maintainer: &768 summary: Response if user is a team maintainer value: url: https://api.github.com/teams/1/memberships/octocat @@ -61130,9 +60672,9 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - response-if-users-membership-with-team-is-now-pending: &774 + response-if-users-membership-with-team-is-now-pending: &769 summary: Response if user's membership with team is now pending value: url: https://api.github.com/teams/1/memberships/octocat @@ -61239,14 +60781,14 @@ paths: parameters: - *85 - *210 - - *441 - - *442 + - *438 + - *439 responses: '200': description: Alternative response with repository permissions content: application/json: - schema: &775 + schema: &770 title: Team Repository description: A team's access to a repository. type: object @@ -61889,8 +61431,8 @@ paths: parameters: - *85 - *210 - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -61937,8 +61479,8 @@ paths: parameters: - *85 - *210 - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -61971,9 +61513,9 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: - default: *444 + default: *441 x-github: githubCloudOnly: true enabledForGitHubApps: false @@ -62039,7 +61581,7 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: default: value: @@ -62084,7 +61626,7 @@ paths: type: array items: *302 examples: - response-if-child-teams-exist: &776 + response-if-child-teams-exist: &771 value: - id: 2 node_id: MDQ6VGVhbTI= @@ -62238,7 +61780,7 @@ paths: resources: type: object properties: - core: &445 + core: &442 title: Rate Limit type: object properties: @@ -62255,21 +61797,21 @@ paths: - remaining - reset - used - graphql: *445 - search: *445 - code_search: *445 - source_import: *445 - integration_manifest: *445 - code_scanning_upload: *445 - actions_runner_registration: *445 - scim: *445 - dependency_snapshots: *445 - dependency_sbom: *445 - code_scanning_autofix: *445 + graphql: *442 + search: *442 + code_search: *442 + source_import: *442 + integration_manifest: *442 + code_scanning_upload: *442 + actions_runner_registration: *442 + scim: *442 + dependency_snapshots: *442 + dependency_sbom: *442 + code_scanning_autofix: *442 required: - core - search - rate: *445 + rate: *442 required: - rate - resources @@ -62374,14 +61916,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *446 + schema: *443 examples: default-response: summary: Default response @@ -62886,7 +62428,7 @@ paths: status: disabled '403': *27 '404': *6 - '301': *447 + '301': *444 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -62904,8 +62446,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#update-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -63163,10 +62705,10 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 - '307': &449 + default: *445 + '307': &446 description: Temporary Redirect content: application/json: @@ -63195,8 +62737,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#delete-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -63218,7 +62760,7 @@ paths: value: message: Organization members cannot delete repositories. documentation_url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#delete-a-repository - '307': *449 + '307': *446 '404': *6 '409': *117 x-github: @@ -63242,11 +62784,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#list-artifacts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - - &466 + - &463 name: name description: The name field of an artifact. When specified, only artifacts with this name will be returned. @@ -63269,7 +62811,7 @@ paths: type: integer artifacts: type: array - items: &450 + items: &447 title: Artifact description: An artifact type: object @@ -63364,7 +62906,7 @@ paths: - expires_at - updated_at examples: - default: &467 + default: &464 value: total_count: 2 artifacts: @@ -63425,9 +62967,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#get-an-artifact parameters: - - *441 - - *442 - - &451 + - *438 + - *439 + - &448 name: artifact_id description: The unique identifier of the artifact. in: path @@ -63439,7 +62981,7 @@ paths: description: Response content: application/json: - schema: *450 + schema: *447 examples: default: value: @@ -63477,9 +63019,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#delete-an-artifact parameters: - - *441 - - *442 - - *451 + - *438 + - *439 + - *448 responses: '204': description: Response @@ -63503,9 +63045,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#download-an-artifact parameters: - - *441 - - *442 - - *451 + - *438 + - *439 + - *448 - name: archive_format in: path required: true @@ -63519,7 +63061,7 @@ paths: 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 - '410': &629 + '410': &626 description: Gone content: application/json: @@ -63544,14 +63086,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-retention-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &452 + schema: &449 title: Actions cache retention limit for a repository description: GitHub Actions cache retention policy for a repository. type: object @@ -63585,13 +63127,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#set-github-actions-cache-retention-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *452 + schema: *449 examples: selected_actions: *42 responses: @@ -63620,14 +63162,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-storage-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &453 + schema: &450 title: Actions cache storage limit for a repository description: GitHub Actions cache storage policy for a repository. type: object @@ -63661,13 +63203,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#set-github-actions-cache-storage-limit-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *453 + schema: *450 examples: selected_actions: *44 responses: @@ -63698,14 +63240,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#get-github-actions-cache-usage-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *454 + schema: *451 examples: default: value: @@ -63731,11 +63273,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#list-github-actions-caches-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - - &455 + - &452 name: ref description: The full Git reference for narrowing down the cache. The `ref` for a branch should be formatted as `refs/heads/`. To reference @@ -63769,7 +63311,7 @@ paths: description: Response content: application/json: - schema: &456 + schema: &453 title: Repository actions caches description: Repository actions caches type: object @@ -63819,7 +63361,7 @@ paths: - total_count - actions_caches examples: - default: &457 + default: &454 value: total_count: 1 actions_caches: @@ -63851,23 +63393,23 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key parameters: - - *441 - - *442 + - *438 + - *439 - name: key description: A key for identifying the cache. in: query required: true schema: type: string - - *455 + - *452 responses: '200': description: Response content: application/json: - schema: *456 + schema: *453 examples: - default: *457 + default: *454 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63887,8 +63429,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id parameters: - - *441 - - *442 + - *438 + - *439 - name: cache_id description: The unique identifier of the GitHub Actions cache. in: path @@ -63919,9 +63461,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#get-a-job-for-a-workflow-run parameters: - - *441 - - *442 - - &458 + - *438 + - *439 + - &455 name: job_id description: The unique identifier of the job. in: path @@ -63933,7 +63475,7 @@ paths: description: Response content: application/json: - schema: &470 + schema: &467 title: Job description: Information of a job execution in a workflow run type: object @@ -64280,9 +63822,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run parameters: - - *441 - - *442 - - *458 + - *438 + - *439 + - *455 responses: '302': description: Response @@ -64310,9 +63852,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run parameters: - - *441 - - *442 - - *458 + - *438 + - *439 + - *455 requestBody: required: false content: @@ -64358,8 +63900,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Status response @@ -64409,8 +63951,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -64473,8 +64015,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-repository-organization-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -64492,7 +64034,7 @@ paths: type: integer secrets: type: array - items: &472 + items: &469 title: Actions Secret description: Set secrets for GitHub Actions. type: object @@ -64513,7 +64055,7 @@ paths: - created_at - updated_at examples: - default: &473 + default: &470 value: total_count: 2 secrets: @@ -64546,9 +64088,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-repository-organization-variables parameters: - - *441 - - *442 - - *459 + - *438 + - *439 + - *456 - *19 responses: '200': @@ -64565,7 +64107,7 @@ paths: type: integer variables: type: array - items: &476 + items: &473 title: Actions Variable type: object properties: @@ -64599,7 +64141,7 @@ paths: - created_at - updated_at examples: - default: &477 + default: &474 value: total_count: 2 variables: @@ -64632,8 +64174,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-github-actions-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64642,7 +64184,7 @@ paths: schema: type: object properties: - enabled: &460 + enabled: &457 type: boolean description: Whether GitHub Actions is enabled on the repository. allowed_actions: *58 @@ -64677,8 +64219,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-github-actions-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -64689,7 +64231,7 @@ paths: schema: type: object properties: - enabled: *460 + enabled: *457 allowed_actions: *58 sha_pinning_required: *59 required: @@ -64722,14 +64264,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &461 + schema: &458 type: object properties: access_level: @@ -64747,7 +64289,7 @@ paths: required: - access_level examples: - default: &462 + default: &459 value: access_level: organization x-github: @@ -64772,15 +64314,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *461 + schema: *458 examples: - default: *462 + default: *459 responses: '204': description: Response @@ -64804,8 +64346,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-artifact-and-log-retention-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64835,8 +64377,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-artifact-and-log-retention-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Empty response for successful settings update @@ -64870,8 +64412,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64898,8 +64440,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-fork-pr-contributor-approval-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -64933,8 +64475,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -64962,8 +64504,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-private-repo-fork-pr-workflow-settings-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -64994,8 +64536,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -65026,8 +64568,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -65059,8 +64601,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#get-default-workflow-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -65089,8 +64631,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/permissions#set-default-workflow-permissions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Success response @@ -65130,8 +64672,8 @@ paths: in: query schema: type: string - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -65175,8 +64717,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#list-runner-applications-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -65208,8 +64750,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -65283,8 +64825,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '201': description: Response @@ -65320,8 +64862,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '201': description: Response @@ -65351,8 +64893,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '200': @@ -65382,8 +64924,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '204': @@ -65410,8 +64952,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '200': *79 @@ -65436,8 +64978,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 requestBody: required: true @@ -65486,8 +65028,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 requestBody: required: true @@ -65537,8 +65079,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 responses: '200': *280 @@ -65568,8 +65110,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *73 - *281 responses: @@ -65599,9 +65141,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#list-workflow-runs-for-a-repository parameters: - - *441 - - *442 - - &480 + - *438 + - *439 + - &477 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. @@ -65609,7 +65151,7 @@ paths: required: false schema: type: string - - &481 + - &478 name: branch description: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. @@ -65617,7 +65159,7 @@ paths: required: false schema: type: string - - &482 + - &479 name: event description: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events @@ -65626,7 +65168,7 @@ paths: required: false schema: type: string - - &483 + - &480 name: status description: Returns workflow runs with the check run `status` or `conclusion` that you specify. For example, a conclusion can be `success` or a status @@ -65653,7 +65195,7 @@ paths: - pending - *17 - *19 - - &484 + - &481 name: created description: Returns workflow runs created within the given date-time range. For more information on the syntax, see "[Understanding the search syntax](https://docs.github.com/enterprise-cloud@latest//search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." @@ -65662,7 +65204,7 @@ paths: schema: type: string format: date-time - - &463 + - &460 name: exclude_pull_requests description: If `true` pull requests are omitted from the response (empty array). @@ -65671,13 +65213,13 @@ paths: schema: type: boolean default: false - - &485 + - &482 name: check_suite_id description: Returns workflow runs with the `check_suite_id` that you specify. in: query schema: type: integer - - &486 + - &483 name: head_sha description: Only returns workflow runs that are associated with the specified `head_sha`. @@ -65700,7 +65242,7 @@ paths: type: integer workflow_runs: type: array - items: &464 + items: &461 title: Workflow Run description: An invocation of a workflow type: object @@ -65878,7 +65420,7 @@ paths: head_commit: anyOf: - type: 'null' - - &508 + - &505 title: Simple Commit description: A commit. type: object @@ -65993,7 +65535,7 @@ paths: - workflow_url - pull_requests examples: - default: &487 + default: &484 value: total_count: 1 workflow_runs: @@ -66229,24 +65771,24 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-a-workflow-run parameters: - - *441 - - *442 - - &465 + - *438 + - *439 + - &462 name: run_id description: The unique identifier of the workflow run. in: path required: true schema: type: integer - - *463 + - *460 responses: '200': description: Response content: application/json: - schema: *464 + schema: *461 examples: - default: &468 + default: &465 value: id: 30433642 name: Build @@ -66487,9 +66029,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#delete-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '204': description: Response @@ -66512,9 +66054,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-the-review-history-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '200': description: Response @@ -66642,9 +66184,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#approve-a-workflow-run-for-a-fork-pull-request parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '201': description: Response @@ -66677,12 +66219,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/artifacts#list-workflow-run-artifacts parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 - *17 - *19 - - *466 + - *463 responses: '200': description: Response @@ -66698,9 +66240,9 @@ paths: type: integer artifacts: type: array - items: *450 + items: *447 examples: - default: *467 + default: *464 headers: Link: *45 x-github: @@ -66724,25 +66266,25 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-a-workflow-run-attempt parameters: - - *441 - - *442 - - *465 - - &469 + - *438 + - *439 + - *462 + - &466 name: attempt_number description: The attempt number of the workflow run. in: path required: true schema: type: integer - - *463 + - *460 responses: '200': description: Response content: application/json: - schema: *464 + schema: *461 examples: - default: *468 + default: *465 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -66765,10 +66307,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt parameters: - - *441 - - *442 - - *465 - - *469 + - *438 + - *439 + - *462 + - *466 - *17 - *19 responses: @@ -66786,9 +66328,9 @@ paths: type: integer jobs: type: array - items: *470 + items: *467 examples: - default: &471 + default: &468 value: total_count: 1 jobs: @@ -66901,10 +66443,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#download-workflow-run-attempt-logs parameters: - - *441 - - *442 - - *465 - - *469 + - *438 + - *439 + - *462 + - *466 responses: '302': description: Response @@ -66932,9 +66474,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#cancel-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '202': description: Response @@ -66967,9 +66509,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: true content: @@ -67036,9 +66578,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#force-cancel-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '202': description: Response @@ -67071,9 +66613,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-jobs#list-jobs-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 - name: filter description: Filters jobs by their `completed_at` timestamp. `latest` returns jobs from the most recent execution of the workflow run. `all` returns all @@ -67103,9 +66645,9 @@ paths: type: integer jobs: type: array - items: *470 + items: *467 examples: - default: *471 + default: *468 headers: Link: *45 x-github: @@ -67130,9 +66672,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#download-workflow-run-logs parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '302': description: Response @@ -67159,9 +66701,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#delete-workflow-run-logs parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '204': description: Response @@ -67188,9 +66730,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '200': description: Response @@ -67259,7 +66801,7 @@ paths: items: type: object properties: - type: &595 + type: &592 type: string description: The type of reviewer. enum: @@ -67345,9 +66887,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: true content: @@ -67397,7 +66939,7 @@ paths: application/json: schema: type: array - items: &580 + items: &577 title: Deployment description: A request for a specific ref(branch,sha,tag) to be deployed @@ -67509,7 +67051,7 @@ paths: - created_at - updated_at examples: - default: &581 + default: &578 value: - url: https://api.github.com/repos/octocat/example/deployments/1 id: 1 @@ -67565,9 +67107,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-a-workflow parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: false content: @@ -67612,9 +67154,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 requestBody: required: false content: @@ -67669,9 +67211,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#get-workflow-run-usage parameters: - - *441 - - *442 - - *465 + - *438 + - *439 + - *462 responses: '200': description: Response @@ -67808,8 +67350,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-repository-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -67827,9 +67369,9 @@ paths: type: integer secrets: type: array - items: *472 + items: *469 examples: - default: *473 + default: *470 headers: Link: *45 x-github: @@ -67854,16 +67396,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-public-key parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *474 + schema: *471 examples: - default: *475 + default: *472 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -67885,17 +67427,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '200': description: Response content: application/json: - schema: *472 + schema: *469 examples: - default: &608 + default: &605 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -67921,8 +67463,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#create-or-update-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 requestBody: required: true @@ -67980,8 +67522,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#delete-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '204': @@ -68007,9 +67549,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-repository-variables parameters: - - *441 - - *442 - - *459 + - *438 + - *439 + - *456 - *19 responses: '200': @@ -68026,9 +67568,9 @@ paths: type: integer variables: type: array - items: *476 + items: *473 examples: - default: *477 + default: *474 headers: Link: *45 x-github: @@ -68051,8 +67593,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#create-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -68104,17 +67646,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#get-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 responses: '200': description: Response content: application/json: - schema: *476 + schema: *473 examples: - default: &609 + default: &606 value: name: USERNAME value: octocat @@ -68140,8 +67682,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#update-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 requestBody: required: true @@ -68184,8 +67726,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#delete-a-repository-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 responses: '204': @@ -68211,8 +67753,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#list-repository-workflows parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -68230,7 +67772,7 @@ paths: type: integer workflows: type: array - items: &478 + items: &475 title: Workflow description: A GitHub Actions workflow type: object @@ -68348,9 +67890,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#get-a-workflow parameters: - - *441 - - *442 - - &479 + - *438 + - *439 + - &476 name: workflow_id in: path description: The ID of the workflow. You can also pass the workflow file name @@ -68365,7 +67907,7 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: default: value: @@ -68398,9 +67940,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#disable-a-workflow parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '204': description: Response @@ -68425,9 +67967,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#create-a-workflow-dispatch-event parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '204': description: Response @@ -68478,9 +68020,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#enable-a-workflow parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '204': description: Response @@ -68507,19 +68049,19 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflow-runs#list-workflow-runs-for-a-workflow parameters: - - *441 - - *442 + - *438 + - *439 + - *476 + - *477 + - *478 - *479 - *480 + - *17 + - *19 - *481 + - *460 - *482 - *483 - - *17 - - *19 - - *484 - - *463 - - *485 - - *486 responses: '200': description: Response @@ -68535,9 +68077,9 @@ paths: type: integer workflow_runs: type: array - items: *464 + items: *461 examples: - default: *487 + default: *484 headers: Link: *45 x-github: @@ -68570,9 +68112,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/workflows#get-workflow-usage parameters: - - *441 - - *442 - - *479 + - *438 + - *439 + - *476 responses: '200': description: Response @@ -68633,8 +68175,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-activities parameters: - - *441 - - *442 + - *438 + - *439 - *108 - *17 - *106 @@ -68802,8 +68344,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#list-assignees parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -68840,8 +68382,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#check-if-a-user-can-be-assigned parameters: - - *441 - - *442 + - *438 + - *439 - name: assignee in: path required: true @@ -68877,8 +68419,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/attestations#create-an-attestation parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -68990,8 +68532,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/attestations#list-attestations parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *106 - *107 @@ -69048,7 +68590,7 @@ paths: initiator: type: string examples: - default: *488 + default: *485 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -69068,8 +68610,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#get-all-autolinks-of-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -69077,7 +68619,7 @@ paths: application/json: schema: type: array - items: &489 + items: &486 title: Autolink reference description: An autolink reference. type: object @@ -69136,8 +68678,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#create-an-autolink-reference-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -69176,9 +68718,9 @@ paths: description: response content: application/json: - schema: *489 + schema: *486 examples: - default: &490 + default: &487 value: id: 1 key_prefix: TICKET- @@ -69209,9 +68751,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#get-an-autolink-reference-of-a-repository parameters: - - *441 - - *442 - - &491 + - *438 + - *439 + - &488 name: autolink_id description: The unique identifier of the autolink. in: path @@ -69223,9 +68765,9 @@ paths: description: Response content: application/json: - schema: *489 + schema: *486 examples: - default: *490 + default: *487 '404': *6 x-github: githubCloudOnly: false @@ -69245,9 +68787,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/autolinks#delete-an-autolink-reference-from-a-repository parameters: - - *441 - - *442 - - *491 + - *438 + - *439 + - *488 responses: '204': description: Response @@ -69271,8 +68813,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response if Dependabot is enabled @@ -69322,8 +68864,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-dependabot-security-updates parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -69344,8 +68886,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-dependabot-security-updates parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -69365,8 +68907,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#list-branches parameters: - - *441 - - *442 + - *438 + - *439 - name: protected description: Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. @@ -69404,7 +68946,7 @@ paths: - url protected: type: boolean - protection: &493 + protection: &490 title: Branch Protection description: Branch Protection type: object @@ -69447,7 +68989,7 @@ paths: required: - contexts - checks - enforce_admins: &496 + enforce_admins: &493 title: Protected Branch Admin Enforced description: Protected Branch Admin Enforced type: object @@ -69464,7 +69006,7 @@ paths: required: - url - enabled - required_pull_request_reviews: &498 + required_pull_request_reviews: &495 title: Protected Branch Pull Request Review description: Protected Branch Pull Request Review type: object @@ -69548,7 +69090,7 @@ paths: required: - dismiss_stale_reviews - require_code_owner_reviews - restrictions: &495 + restrictions: &492 title: Branch Restriction Policy description: Branch Restriction Policy type: object @@ -69841,9 +69383,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#get-a-branch parameters: - - *441 - - *442 - - &494 + - *438 + - *439 + - &491 name: branch description: The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use [the GraphQL API](https://docs.github.com/enterprise-cloud@latest//graphql). @@ -69857,14 +69399,14 @@ paths: description: Response content: application/json: - schema: &504 + schema: &501 title: Branch With Protection description: Branch With Protection type: object properties: name: type: string - commit: &555 + commit: &552 title: Commit description: Commit type: object @@ -69903,7 +69445,7 @@ paths: author: anyOf: - type: 'null' - - &492 + - &489 title: Git User description: Metaproperties for Git author/committer information. @@ -69925,7 +69467,7 @@ paths: committer: anyOf: - type: 'null' - - *492 + - *489 message: type: string examples: @@ -69949,7 +69491,7 @@ paths: required: - sha - url - verification: &615 + verification: &612 title: Verification type: object properties: @@ -70029,7 +69571,7 @@ paths: type: integer files: type: array - items: &566 + items: &563 title: Diff Entry description: Diff Entry type: object @@ -70125,7 +69667,7 @@ paths: - self protected: type: boolean - protection: *493 + protection: *490 protection_url: type: string format: uri @@ -70234,7 +69776,7 @@ paths: contexts: [] checks: [] protection_url: https://api.github.com/repos/octocat/Hello-World/branches/main/protection - '301': *447 + '301': *444 '404': *6 x-github: githubCloudOnly: false @@ -70256,15 +69798,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *493 + schema: *490 examples: default: value: @@ -70458,9 +70000,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -70720,7 +70262,7 @@ paths: url: type: string format: uri - required_status_checks: &501 + required_status_checks: &498 title: Status Check Policy description: Status Check Policy type: object @@ -70879,7 +70421,7 @@ paths: additionalProperties: false required: - enabled - restrictions: *495 + restrictions: *492 required_conversation_resolution: type: object properties: @@ -70991,9 +70533,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71018,17 +70560,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-admin-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: &497 + default: &494 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins enabled: true @@ -71050,17 +70592,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-admin-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *497 + default: *494 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -71079,9 +70621,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-admin-branch-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71106,17 +70648,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-pull-request-review-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: &499 + default: &496 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews dismissal_restrictions: @@ -71212,9 +70754,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-pull-request-review-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71312,9 +70854,9 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: *499 + default: *496 '422': *15 x-github: githubCloudOnly: false @@ -71335,9 +70877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-pull-request-review-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71364,17 +70906,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-commit-signature-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: &500 + default: &497 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures enabled: true @@ -71397,17 +70939,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#create-commit-signature-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *496 + schema: *493 examples: - default: *500 + default: *497 '404': *6 x-github: githubCloudOnly: false @@ -71427,9 +70969,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-commit-signature-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71454,17 +70996,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-status-checks-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *501 + schema: *498 examples: - default: &502 + default: &499 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks strict: true @@ -71490,9 +71032,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-status-check-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71544,9 +71086,9 @@ paths: description: Response content: application/json: - schema: *501 + schema: *498 examples: - default: *502 + default: *499 '404': *6 '422': *15 x-github: @@ -71568,9 +71110,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-status-check-protection parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71594,9 +71136,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-all-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -71630,9 +71172,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71699,9 +71241,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -71765,9 +71307,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-status-check-contexts parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: content: application/json: @@ -71833,15 +71375,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response content: application/json: - schema: *495 + schema: *492 examples: default: value: @@ -71932,9 +71474,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '204': description: Response @@ -71957,9 +71499,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -71969,7 +71511,7 @@ paths: type: array items: *5 examples: - default: &503 + default: &500 value: - id: 1 slug: octoapp @@ -72026,9 +71568,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-app-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72062,7 +71604,7 @@ paths: type: array items: *5 examples: - default: *503 + default: *500 '422': *15 x-github: githubCloudOnly: false @@ -72083,9 +71625,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-app-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72119,7 +71661,7 @@ paths: type: array items: *5 examples: - default: *503 + default: *500 '422': *15 x-github: githubCloudOnly: false @@ -72140,9 +71682,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-app-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72176,7 +71718,7 @@ paths: type: array items: *5 examples: - default: *503 + default: *500 '422': *15 x-github: githubCloudOnly: false @@ -72198,9 +71740,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -72230,9 +71772,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-team-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -72291,9 +71833,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-team-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: false content: @@ -72352,9 +71894,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-team-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: content: application/json: @@ -72413,9 +71955,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-users-with-access-to-the-protected-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 responses: '200': description: Response @@ -72449,9 +71991,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-user-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72509,9 +72051,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-user-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72569,9 +72111,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-user-access-restrictions parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72631,9 +72173,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#rename-a-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 requestBody: required: true content: @@ -72655,7 +72197,7 @@ paths: description: Response content: application/json: - schema: *504 + schema: *501 examples: default: value: @@ -72769,8 +72311,8 @@ paths: category: repos subcategory: bypass-requests parameters: - - *441 - - *442 + - *438 + - *439 - *101 - *102 - *103 @@ -72806,8 +72348,8 @@ paths: category: repos subcategory: bypass-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_request_number in: path required: true @@ -72880,8 +72422,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - *101 - *102 - *103 @@ -72921,8 +72463,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_request_number in: path required: true @@ -72992,8 +72534,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_request_number in: path required: true @@ -73064,8 +72606,8 @@ paths: category: secret-scanning subcategory: delegated-bypass parameters: - - *441 - - *442 + - *438 + - *439 - name: bypass_response_id in: path required: true @@ -73098,8 +72640,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#create-a-check-run parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -73378,7 +72920,7 @@ paths: description: Response content: application/json: - schema: &505 + schema: &502 title: CheckRun description: A check performed on the code of a given code change type: object @@ -73514,7 +73056,7 @@ paths: check. type: array items: *217 - deployment: &835 + deployment: &830 title: Deployment description: A deployment created as the result of an Actions check run from a workflow that references an environment @@ -73801,9 +73343,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#get-a-check-run parameters: - - *441 - - *442 - - &506 + - *438 + - *439 + - &503 name: check_run_id description: The unique identifier of the check run. in: path @@ -73815,9 +73357,9 @@ paths: description: Response content: application/json: - schema: *505 + schema: *502 examples: - default: &507 + default: &504 value: id: 4 head_sha: ce587453ced02b1526dfb4cb910479d431683101 @@ -73917,9 +73459,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#update-a-check-run parameters: - - *441 - - *442 - - *506 + - *438 + - *439 + - *503 requestBody: required: true content: @@ -74159,9 +73701,9 @@ paths: description: Response content: application/json: - schema: *505 + schema: *502 examples: - default: *507 + default: *504 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74181,9 +73723,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#list-check-run-annotations parameters: - - *441 - - *442 - - *506 + - *438 + - *439 + - *503 - *17 - *19 responses: @@ -74293,9 +73835,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#rerequest-a-check-run parameters: - - *441 - - *442 - - *506 + - *438 + - *439 + - *503 responses: '201': description: Response @@ -74339,8 +73881,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#create-a-check-suite parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -74362,7 +73904,7 @@ paths: description: Response when the suite already exists content: application/json: - schema: &509 + schema: &506 title: CheckSuite description: A suite of checks performed on the code of a given code change @@ -74460,7 +74002,7 @@ paths: - string - 'null' format: date-time - head_commit: *508 + head_commit: *505 latest_check_runs_count: type: integer check_runs_url: @@ -74488,7 +74030,7 @@ paths: - check_runs_url - pull_requests examples: - default: &510 + default: &507 value: id: 5 node_id: MDEwOkNoZWNrU3VpdGU1 @@ -74779,9 +74321,9 @@ paths: description: Response when the suite was created content: application/json: - schema: *509 + schema: *506 examples: - default: *510 + default: *507 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74800,8 +74342,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#update-repository-preferences-for-check-suites parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -75110,9 +74652,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#get-a-check-suite parameters: - - *441 - - *442 - - &511 + - *438 + - *439 + - &508 name: check_suite_id description: The unique identifier of the check suite. in: path @@ -75124,9 +74666,9 @@ paths: description: Response content: application/json: - schema: *509 + schema: *506 examples: - default: *510 + default: *507 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -75149,17 +74691,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#list-check-runs-in-a-check-suite parameters: - - *441 - - *442 - - *511 - - &561 + - *438 + - *439 + - *508 + - &558 name: check_name description: Returns check runs with the specified `name`. in: query required: false schema: type: string - - &562 + - &559 name: status description: Returns check runs with the specified `status`. in: query @@ -75198,9 +74740,9 @@ paths: type: integer check_runs: type: array - items: *505 + items: *502 examples: - default: &563 + default: &560 value: total_count: 1 check_runs: @@ -75302,9 +74844,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#rerequest-a-check-suite parameters: - - *441 - - *442 - - *511 + - *438 + - *439 + - *508 responses: '201': description: Response @@ -75337,21 +74879,21 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *306 - *307 - *19 - *17 - - &527 + - &524 name: ref description: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. in: query required: false - schema: *512 - - &528 + schema: *509 + - &525 name: pr description: The number of the pull request for the results you want to list. in: query @@ -75382,7 +74924,7 @@ paths: be returned. in: query required: false - schema: *513 + schema: *510 - name: assignees description: | Filter alerts by assignees. Provide a comma-separated list of user handles (e.g., `octocat` or `octocat,hubot`). @@ -75406,7 +74948,7 @@ paths: updated_at: *132 url: *129 html_url: *130 - instances_url: *514 + instances_url: *511 state: *111 fixed_at: *134 dismissed_by: @@ -75414,11 +74956,11 @@ paths: - type: 'null' - *4 dismissed_at: *133 - dismissed_reason: *515 - dismissed_comment: *516 - rule: *517 - tool: *518 - most_recent_instance: *519 + dismissed_reason: *512 + dismissed_comment: *513 + rule: *514 + tool: *515 + most_recent_instance: *516 dismissal_approved_by: anyOf: - type: 'null' @@ -75541,7 +75083,7 @@ paths: classifications: [] instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances '304': *35 - '403': &520 + '403': &517 description: Response if GitHub Advanced Security is not enabled for this repository content: @@ -75568,9 +75110,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-code-scanning-alert parameters: - - *441 - - *442 - - &521 + - *438 + - *439 + - &518 name: alert_number in: path description: The number that identifies an alert. You can find this at the @@ -75584,7 +75126,7 @@ paths: description: Response content: application/json: - schema: &522 + schema: &519 type: object properties: number: *124 @@ -75592,7 +75134,7 @@ paths: updated_at: *132 url: *129 html_url: *130 - instances_url: *514 + instances_url: *511 state: *111 fixed_at: *134 dismissed_by: @@ -75600,8 +75142,8 @@ paths: - type: 'null' - *4 dismissed_at: *133 - dismissed_reason: *515 - dismissed_comment: *516 + dismissed_reason: *512 + dismissed_comment: *513 rule: type: object properties: @@ -75663,8 +75205,8 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: *518 - most_recent_instance: *519 + tool: *515 + most_recent_instance: *516 dismissal_approved_by: anyOf: - type: 'null' @@ -75760,7 +75302,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '304': *35 - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -75780,9 +75322,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#update-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 requestBody: required: true content: @@ -75797,8 +75339,8 @@ paths: enum: - open - dismissed - dismissed_reason: *515 - dismissed_comment: *516 + dismissed_reason: *512 + dismissed_comment: *513 create_request: type: boolean description: If `true`, attempt to create an alert dismissal request. @@ -75826,7 +75368,7 @@ paths: description: Response content: application/json: - schema: *522 + schema: *519 examples: default: value: @@ -75902,7 +75444,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '400': *14 - '403': &526 + '403': &523 description: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository content: @@ -75929,15 +75471,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 responses: '200': description: Response content: application/json: - schema: &523 + schema: &520 type: object properties: status: @@ -75964,13 +75506,13 @@ paths: - description - started_at examples: - default: &524 + default: &521 value: status: success description: This fixes an XSS vulnerability by escaping the user input. started_at: '2024-02-14T12:29:18Z' - '400': &525 + '400': &522 description: Bad Request content: application/json: @@ -75981,7 +75523,7 @@ paths: message: The alert_number is not valid documentation_url: https://docs.github.com/rest/code-scanning/code-scanning#get-the-status-of-an-autofix-for-a-code-scanning-alert status: '400' - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76006,29 +75548,29 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#create-an-autofix-for-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 responses: '200': description: OK content: application/json: - schema: *523 + schema: *520 examples: - default: *524 + default: *521 '202': description: Accepted content: application/json: - schema: *523 + schema: *520 examples: default: value: status: pending description: started_at: '2024-02-14T12:29:18Z' - '400': *525 + '400': *522 '403': description: Response if the repository is archived, if GitHub Advanced Security is not enabled for this repository or if rate limit is exceeded @@ -76060,9 +75602,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#commit-an-autofix-for-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 requestBody: required: false content: @@ -76108,8 +75650,8 @@ paths: value: target_ref: refs/heads/main sha: 178f4f6090b3fccad4a65b3e83d076a622d59652 - '400': *525 - '403': *526 + '400': *522 + '403': *523 '404': *6 '422': description: Unprocessable Entity @@ -76133,13 +75675,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 - *19 - *17 - - *527 - - *528 + - *524 + - *525 responses: '200': description: Response @@ -76150,10 +75692,10 @@ paths: items: type: object properties: - ref: *512 - analysis_key: *529 - environment: *530 - category: *531 + ref: *509 + analysis_key: *526 + environment: *527 + category: *528 state: type: - string @@ -76170,7 +75712,7 @@ paths: properties: text: type: string - location: *532 + location: *529 html_url: type: string classifications: @@ -76178,7 +75720,7 @@ paths: description: |- Classifications that have been applied to the file that triggered the alert. For example identifying it as documentation, or a generated file. - items: *533 + items: *530 examples: default: value: @@ -76217,7 +75759,7 @@ paths: end_column: 50 classifications: - source - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76251,25 +75793,25 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *306 - *307 - *19 - *17 - - *528 + - *525 - name: ref in: query description: The Git reference for the analyses you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. required: false - schema: *512 + schema: *509 - name: sarif_id in: query description: Filter analyses belonging to the same SARIF upload. required: false - schema: &534 + schema: &531 type: string description: An identifier for the upload. examples: @@ -76291,23 +75833,23 @@ paths: application/json: schema: type: array - items: &535 + items: &532 type: object properties: - ref: *512 - commit_sha: &543 + ref: *509 + commit_sha: &540 description: The SHA of the commit to which the analysis you are uploading relates. type: string minLength: 40 maxLength: 40 pattern: "^[0-9a-fA-F]+$" - analysis_key: *529 + analysis_key: *526 environment: type: string description: Identifies the variable values associated with the environment in which this analysis was performed. - category: *531 + category: *528 error: type: string examples: @@ -76332,8 +75874,8 @@ paths: description: The REST API URL of the analysis resource. format: uri readOnly: true - sarif_id: *534 - tool: *518 + sarif_id: *531 + tool: *515 deletable: type: boolean warning: @@ -76395,7 +75937,7 @@ paths: version: 1.2.0 deletable: true warning: '' - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76431,8 +75973,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -76445,7 +75987,7 @@ paths: description: Response content: application/json: - schema: *535 + schema: *532 examples: response: summary: application/json response @@ -76499,7 +76041,7 @@ paths: properties: - github/alertNumber: 2 - github/alertUrl: https://api.github.com/repos/monalisa/monalisa/code-scanning/alerts/2 - '403': *520 + '403': *517 '404': *6 '422': description: Response if analysis could not be processed @@ -76586,8 +76128,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -76643,7 +76185,7 @@ paths: next_analysis_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41 confirm_delete_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses/41?confirm_delete '400': *14 - '403': *526 + '403': *523 '404': *6 '503': *190 x-github: @@ -76665,8 +76207,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#list-codeql-databases-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -76674,7 +76216,7 @@ paths: application/json: schema: type: array - items: &536 + items: &533 title: CodeQL Database description: A CodeQL database. type: object @@ -76786,7 +76328,7 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/ruby commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76815,8 +76357,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-codeql-database-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: language in: path description: The language of the CodeQL database. @@ -76828,7 +76370,7 @@ paths: description: Response content: application/json: - schema: *536 + schema: *533 examples: default: value: @@ -76860,9 +76402,9 @@ paths: updated_at: '2022-09-12T12:14:32Z' url: https://api.github.com/repos/octocat/Hello-World/code-scanning/codeql/databases/java commit_oid: 1927de39fefa25a9d0e64e3f540ff824a72f538c - '302': &568 + '302': &565 description: Found - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -76884,8 +76426,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#delete-a-codeql-database parameters: - - *441 - - *442 + - *438 + - *439 - name: language in: path description: The language of the CodeQL database. @@ -76895,7 +76437,7 @@ paths: responses: '204': description: Response - '403': *526 + '403': *523 '404': *6 '503': *190 x-github: @@ -76923,8 +76465,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#create-a-codeql-variant-analysis parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -76933,7 +76475,7 @@ paths: type: object additionalProperties: false properties: - language: &537 + language: &534 type: string description: The language targeted by the CodeQL query enum: @@ -77013,7 +76555,7 @@ paths: description: Variant analysis submitted for processing content: application/json: - schema: &541 + schema: &538 title: Variant Analysis description: A run of a CodeQL query against one or more repositories. type: object @@ -77023,7 +76565,7 @@ paths: description: The ID of the variant analysis. controller_repo: *118 actor: *4 - query_language: *537 + query_language: *534 query_pack_url: type: string description: The download url for the query pack. @@ -77071,7 +76613,7 @@ paths: items: type: object properties: - repository: &538 + repository: &535 title: Repository Identifier description: Repository Identifier type: object @@ -77113,7 +76655,7 @@ paths: - private - stargazers_count - updated_at - analysis_status: &542 + analysis_status: &539 type: string description: The new status of the CodeQL variant analysis repository task. @@ -77145,7 +76687,7 @@ paths: from processing. This information is only available to the user that initiated the variant analysis. properties: - access_mismatch_repos: &539 + access_mismatch_repos: &536 type: object properties: repository_count: @@ -77160,7 +76702,7 @@ paths: This list may not include all repositories that were skipped. This is only available when the repository was found and the user has access to it. - items: *538 + items: *535 required: - repository_count - repositories @@ -77183,8 +76725,8 @@ paths: required: - repository_count - repository_full_names - no_codeql_db_repos: *539 - over_limit_repos: *539 + no_codeql_db_repos: *536 + over_limit_repos: *536 required: - access_mismatch_repos - not_found_repos @@ -77200,7 +76742,7 @@ paths: examples: repositories_parameter: summary: Response for a successful variant analysis submission - value: &540 + value: &537 summary: Default response value: id: 1 @@ -77346,10 +76888,10 @@ paths: private: false repository_owners: summary: Response for a successful variant analysis submission - value: *540 + value: *537 repository_lists: summary: Response for a successful variant analysis submission - value: *540 + value: *537 '404': *6 '422': description: Unable to process variant analysis submission @@ -77377,8 +76919,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-the-summary-of-a-codeql-variant-analysis parameters: - - *441 - - *442 + - *438 + - *439 - name: codeql_variant_analysis_id in: path description: The unique identifier of the variant analysis. @@ -77390,9 +76932,9 @@ paths: description: Response content: application/json: - schema: *541 + schema: *538 examples: - default: *540 + default: *537 '404': *6 '503': *190 x-github: @@ -77415,7 +76957,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-the-analysis-status-of-a-repository-in-a-codeql-variant-analysis parameters: - - *441 + - *438 - name: repo in: path description: The name of the controller repository. @@ -77450,7 +76992,7 @@ paths: type: object properties: repository: *118 - analysis_status: *542 + analysis_status: *539 artifact_size_in_bytes: type: integer description: The size of the artifact. This is only available @@ -77575,8 +77117,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -77669,7 +77211,7 @@ paths: threat_model: remote updated_at: '2023-01-19T11:21:34Z' schedule: weekly - '403': *520 + '403': *517 '404': *6 '503': *190 x-github: @@ -77690,8 +77232,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -77785,7 +77327,7 @@ paths: value: run_id: 42 run_url: https://api.github.com/repos/octoorg/octocat/actions/runs/42 - '403': *526 + '403': *523 '404': *6 '409': description: Response if there is already a validation run in progress with @@ -77856,8 +77398,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -77865,7 +77407,7 @@ paths: schema: type: object properties: - commit_sha: *543 + commit_sha: *540 ref: type: string description: |- @@ -77925,7 +77467,7 @@ paths: schema: type: object properties: - id: *534 + id: *531 url: type: string description: The REST API URL for checking the status of the upload. @@ -77939,7 +77481,7 @@ paths: url: https://api.github.com/repos/octocat/hello-world/code-scanning/sarifs/47177e22-5596-11eb-80a1-c1e54ef945c6 '400': description: Bad Request if the sarif field is invalid - '403': *526 + '403': *523 '404': *6 '413': description: Payload Too Large if the sarif field is too large @@ -77962,8 +77504,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-scanning/code-scanning#get-information-about-a-sarif-upload parameters: - - *441 - - *442 + - *438 + - *439 - name: sarif_id description: The SARIF ID obtained after uploading. in: path @@ -78011,7 +77553,7 @@ paths: value: processing_status: complete analyses_url: https://api.github.com/repos/octocat/hello-world/code-scanning/analyses?sarif_id=47177e22-5596-11eb-80a1-c1e54ef945c6 - '403': *520 + '403': *517 '404': description: Not Found if the sarif id does not match any upload '503': *190 @@ -78036,8 +77578,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#get-the-code-security-configuration-associated-with-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -78118,8 +77660,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-codeowners-errors parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: 'A branch, tag or commit name used to determine which version of the CODEOWNERS file to use. Default: the repository''s default branch @@ -78247,8 +77789,8 @@ paths: parameters: - *17 - *19 - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -78562,8 +78104,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#create-a-codespace-in-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -78629,7 +78171,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -78637,7 +78179,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '400': *14 '401': *23 '403': *27 @@ -78666,8 +78208,8 @@ paths: parameters: - *17 - *19 - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -78731,8 +78273,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/machines#list-available-machine-types-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: location description: The location to check for available machines. Assigned by IP if not provided. @@ -78769,9 +78311,9 @@ paths: type: integer machines: type: array - items: *545 + items: *542 examples: - default: &783 + default: &778 value: total_count: 2 machines: @@ -78811,8 +78353,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#get-default-attributes-for-a-codespace parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: The branch or commit to check for a default devcontainer path. If not specified, the default branch will be checked. @@ -78899,8 +78441,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#check-if-permissions-defined-by-a-devcontainer-have-been-accepted-by-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: The git reference that points to the location of the devcontainer configuration to use for the permission check. The value of `ref` will typically @@ -78969,8 +78511,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#list-repository-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -78988,7 +78530,7 @@ paths: type: integer secrets: type: array - items: &549 + items: &546 title: Codespaces Secret description: Set repository secrets for GitHub Codespaces. type: object @@ -79009,7 +78551,7 @@ paths: - created_at - updated_at examples: - default: *546 + default: *543 headers: Link: *45 x-github: @@ -79032,16 +78574,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-public-key parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *547 + schema: *544 examples: - default: *548 + default: *545 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -79061,17 +78603,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#get-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '200': description: Response content: application/json: - schema: *549 + schema: *546 examples: - default: *550 + default: *547 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -79091,8 +78633,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#create-or-update-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 requestBody: required: true @@ -79145,8 +78687,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/repository-secrets#delete-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '204': @@ -79175,8 +78717,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#list-repository-collaborators parameters: - - *441 - - *442 + - *438 + - *439 - name: affiliation description: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` @@ -79214,7 +78756,7 @@ paths: application/json: schema: type: array - items: &551 + items: &548 title: Collaborator description: Collaborator type: object @@ -79407,8 +78949,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator parameters: - - *441 - - *442 + - *438 + - *439 - *137 responses: '204': @@ -79455,8 +78997,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#add-a-repository-collaborator parameters: - - *441 - - *442 + - *438 + - *439 - *137 requestBody: required: false @@ -79483,7 +79025,7 @@ paths: description: Response when a new invitation is created content: application/json: - schema: &628 + schema: &625 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -79711,8 +79253,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#remove-a-repository-collaborator parameters: - - *441 - - *442 + - *438 + - *439 - *137 responses: '204': @@ -79744,8 +79286,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/collaborators#get-repository-permissions-for-a-user parameters: - - *441 - - *442 + - *438 + - *439 - *137 responses: '200': @@ -79766,7 +79308,7 @@ paths: user: anyOf: - type: 'null' - - *551 + - *548 required: - permission - role_name @@ -79820,8 +79362,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#list-commit-comments-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -79831,7 +79373,7 @@ paths: application/json: schema: type: array - items: &552 + items: &549 title: Commit Comment description: Commit Comment type: object @@ -79889,7 +79431,7 @@ paths: - created_at - updated_at examples: - default: &557 + default: &554 value: - html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -79948,17 +79490,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#get-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '200': description: Response content: application/json: - schema: *552 + schema: *549 examples: - default: &558 + default: &555 value: html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -80015,8 +79557,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#update-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -80039,7 +79581,7 @@ paths: description: Response content: application/json: - schema: *552 + schema: *549 examples: default: value: @@ -80090,8 +79632,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#delete-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '204': @@ -80113,8 +79655,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). @@ -80141,7 +79683,7 @@ paths: application/json: schema: type: array - items: &553 + items: &550 title: Reaction description: Reactions to conversations provide a way to help people express their feelings more simply and effectively. @@ -80185,7 +79727,7 @@ paths: - content - created_at examples: - default: &632 + default: &629 value: - id: 1 node_id: MDg6UmVhY3Rpb24x @@ -80230,8 +79772,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-commit-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -80264,9 +79806,9 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: &554 + default: &551 value: id: 1 node_id: MDg6UmVhY3Rpb24x @@ -80295,9 +79837,9 @@ paths: description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -80319,10 +79861,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-a-commit-comment-reaction parameters: - - *441 - - *442 + - *438 + - *439 - *228 - - &633 + - &630 name: reaction_id description: The unique identifier of the reaction. in: path @@ -80377,8 +79919,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-commits parameters: - - *441 - - *442 + - *438 + - *439 - name: sha description: 'SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`).' @@ -80434,9 +79976,9 @@ paths: application/json: schema: type: array - items: *555 + items: *552 examples: - default: &679 + default: &676 value: - url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -80530,9 +80072,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-branches-for-head-commit parameters: - - *441 - - *442 - - &556 + - *438 + - *439 + - &553 name: commit_sha description: The SHA of the commit. in: path @@ -80604,9 +80146,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#list-commit-comments parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 - *17 - *19 responses: @@ -80616,9 +80158,9 @@ paths: application/json: schema: type: array - items: *552 + items: *549 examples: - default: *557 + default: *554 headers: Link: *45 x-github: @@ -80646,9 +80188,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/comments#create-a-commit-comment parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 requestBody: required: true content: @@ -80683,9 +80225,9 @@ paths: description: Response content: application/json: - schema: *552 + schema: *549 examples: - default: *558 + default: *555 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -80713,9 +80255,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#list-pull-requests-associated-with-a-commit parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 - *17 - *19 responses: @@ -80725,9 +80267,9 @@ paths: application/json: schema: type: array - items: *559 + items: *556 examples: - default: &671 + default: &668 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -81264,11 +80806,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#get-a-commit parameters: - - *441 - - *442 + - *438 + - *439 - *19 - *17 - - &560 + - &557 name: ref description: The commit reference. Can be a commit SHA, branch name (`heads/BRANCH_NAME`), or tag name (`tags/TAG_NAME`). For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" @@ -81283,9 +80825,9 @@ paths: description: Response content: application/json: - schema: *555 + schema: *552 examples: - default: &657 + default: &654 value: url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -81398,11 +80940,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/runs#list-check-runs-for-a-git-reference parameters: - - *441 - - *442 - - *560 - - *561 - - *562 + - *438 + - *439 + - *557 + - *558 + - *559 - name: filter description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. @@ -81436,9 +80978,9 @@ paths: type: integer check_runs: type: array - items: *505 + items: *502 examples: - default: *563 + default: *560 headers: Link: *45 x-github: @@ -81463,9 +81005,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/checks/suites#list-check-suites-for-a-git-reference parameters: - - *441 - - *442 - - *560 + - *438 + - *439 + - *557 - name: app_id description: Filters check suites by GitHub App `id`. in: query @@ -81473,7 +81015,7 @@ paths: schema: type: integer example: 1 - - *561 + - *558 - *17 - *19 responses: @@ -81491,7 +81033,7 @@ paths: type: integer check_suites: type: array - items: *509 + items: *506 examples: default: value: @@ -81691,9 +81233,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses#get-the-combined-status-for-a-specific-reference parameters: - - *441 - - *442 - - *560 + - *438 + - *439 + - *557 - *17 - *19 responses: @@ -81895,9 +81437,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses#list-commit-statuses-for-a-reference parameters: - - *441 - - *442 - - *560 + - *438 + - *439 + - *557 - *17 - *19 responses: @@ -81907,7 +81449,7 @@ paths: application/json: schema: type: array - items: &732 + items: &729 title: Status description: The status of a commit. type: object @@ -81988,7 +81530,7 @@ paths: site_admin: false headers: Link: *45 - '301': *447 + '301': *444 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -82016,8 +81558,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/community#get-community-profile-metrics parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -82050,11 +81592,11 @@ paths: code_of_conduct: anyOf: - type: 'null' - - *564 + - *561 code_of_conduct_file: anyOf: - type: 'null' - - &565 + - &562 title: Community Health File type: object properties: @@ -82074,19 +81616,19 @@ paths: contributing: anyOf: - type: 'null' - - *565 + - *562 readme: anyOf: - type: 'null' - - *565 + - *562 issue_template: anyOf: - type: 'null' - - *565 + - *562 pull_request_template: anyOf: - type: 'null' - - *565 + - *562 required: - code_of_conduct - code_of_conduct_file @@ -82215,8 +81757,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/commits#compare-two-commits parameters: - - *441 - - *442 + - *438 + - *439 - *19 - *17 - name: basehead @@ -82264,8 +81806,8 @@ paths: format: uri examples: - https://github.com/octocat/Hello-World/compare/master...topic.patch - base_commit: *555 - merge_base_commit: *555 + base_commit: *552 + merge_base_commit: *552 status: type: string enum: @@ -82289,10 +81831,10 @@ paths: - 6 commits: type: array - items: *555 + items: *552 files: type: array - items: *566 + items: *563 required: - url - html_url @@ -82578,8 +82120,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#get-repository-content parameters: - - *441 - - *442 + - *438 + - *439 - name: path description: path parameter in: path @@ -82732,7 +82274,7 @@ paths: - type - url examples: - response-if-content-is-a-file: &567 + response-if-content-is-a-file: &564 summary: Response if content is a file value: type: file @@ -82869,7 +82411,7 @@ paths: - size - type - url - - &684 + - &681 title: Content File description: Content File type: object @@ -83087,7 +82629,7 @@ paths: - url - submodule_git_url examples: - response-if-content-is-a-file: *567 + response-if-content-is-a-file: *564 response-if-content-is-a-directory: summary: Response if content is a directory and the application/json media type is requested @@ -83156,7 +82698,7 @@ paths: html: https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9 '404': *6 '403': *27 - '302': *568 + '302': *565 '304': *35 x-github: githubCloudOnly: false @@ -83179,8 +82721,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#create-or-update-file-contents parameters: - - *441 - - *442 + - *438 + - *439 - name: path description: path parameter in: path @@ -83275,7 +82817,7 @@ paths: description: Response content: application/json: - schema: &569 + schema: &566 title: File Commit description: File Commit type: object @@ -83431,7 +82973,7 @@ paths: description: Response content: application/json: - schema: *569 + schema: *566 examples: example-for-creating-a-file: value: @@ -83485,7 +83027,7 @@ paths: schema: oneOf: - *3 - - &610 + - &607 description: Repository rule violation was detected type: object properties: @@ -83506,7 +83048,7 @@ paths: items: type: object properties: - placeholder_id: &724 + placeholder_id: &721 description: The ID of the push protection bypass placeholder. This value is returned on any push protected routes. @@ -83538,8 +83080,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#delete-a-file parameters: - - *441 - - *442 + - *438 + - *439 - name: path description: path parameter in: path @@ -83600,7 +83142,7 @@ paths: description: Response content: application/json: - schema: *569 + schema: *566 examples: default: value: @@ -83655,8 +83197,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-contributors parameters: - - *441 - - *442 + - *438 + - *439 - name: anon description: Set to `1` or `true` to include anonymous contributors in results. in: query @@ -83780,8 +83322,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/alerts#list-dependabot-alerts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *321 - *322 - *323 @@ -83793,7 +83335,7 @@ paths: schema: type: string - *325 - - *570 + - *567 - *326 - *327 - *108 @@ -83814,7 +83356,7 @@ paths: application/json: schema: type: array - items: &574 + items: &571 type: object description: A Dependabot alert. properties: @@ -83864,7 +83406,7 @@ paths: - direct - transitive - - security_advisory: *571 + security_advisory: *568 security_vulnerability: *128 url: *129 html_url: *130 @@ -83895,8 +83437,8 @@ paths: dismissal. maxLength: 280 fixed_at: *134 - auto_dismissed_at: *572 - dismissal_request: *573 + auto_dismissed_at: *569 + dismissal_request: *570 required: - number - state @@ -84126,9 +83668,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/alerts#get-a-dependabot-alert parameters: - - *441 - - *442 - - &575 + - *438 + - *439 + - &572 name: alert_number in: path description: |- @@ -84143,7 +83685,7 @@ paths: description: Response content: application/json: - schema: *574 + schema: *571 examples: default: value: @@ -84256,9 +83798,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/alerts#update-a-dependabot-alert parameters: - - *441 - - *442 - - *575 + - *438 + - *439 + - *572 requestBody: required: true content: @@ -84303,7 +83845,7 @@ paths: description: Response content: application/json: - schema: *574 + schema: *571 examples: default: value: @@ -84432,8 +83974,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#list-repository-secrets parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -84451,7 +83993,7 @@ paths: type: integer secrets: type: array - items: &578 + items: &575 title: Dependabot Secret description: Set secrets for Dependabot. type: object @@ -84505,16 +84047,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-public-key parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *576 + schema: *573 examples: - default: *577 + default: *574 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -84534,15 +84076,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#get-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '200': description: Response content: application/json: - schema: *578 + schema: *575 examples: default: value: @@ -84568,8 +84110,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#create-or-update-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 requestBody: required: true @@ -84622,8 +84164,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependabot/secrets#delete-a-repository-secret parameters: - - *441 - - *442 + - *438 + - *439 - *283 responses: '204': @@ -84646,8 +84188,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph/dependency-review#get-a-diff-of-the-dependencies-between-commits parameters: - - *441 - - *442 + - *438 + - *439 - name: basehead description: The base and head Git revisions to compare. The Git revisions will be resolved to commit SHAs. Named revisions will be resolved to their @@ -84821,8 +84363,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph/sboms#export-a-software-bill-of-materials-sbom-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -85082,8 +84624,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -85166,7 +84708,7 @@ paths: - version - url additionalProperties: false - metadata: &579 + metadata: &576 title: metadata description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -85205,7 +84747,7 @@ paths: examples: - "/src/build/package-lock.json" additionalProperties: false - metadata: *579 + metadata: *576 resolved: type: object description: A collection of resolved package dependencies. @@ -85219,7 +84761,7 @@ paths: pattern: "^pkg" examples: - pkg:/npm/%40actions/http-client@1.0.11 - metadata: *579 + metadata: *576 relationship: type: string description: A notation of whether a dependency is requested @@ -85352,8 +84894,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#list-deployments parameters: - - *441 - - *442 + - *438 + - *439 - name: sha description: The SHA recorded at creation time. in: query @@ -85394,9 +84936,9 @@ paths: application/json: schema: type: array - items: *580 + items: *577 examples: - default: *581 + default: *578 headers: Link: *45 x-github: @@ -85462,8 +85004,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#create-a-deployment parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -85545,7 +85087,7 @@ paths: description: Response content: application/json: - schema: *580 + schema: *577 examples: simple-example: summary: Simple example @@ -85618,9 +85160,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#get-a-deployment parameters: - - *441 - - *442 - - &582 + - *438 + - *439 + - &579 name: deployment_id description: deployment_id parameter in: path @@ -85632,7 +85174,7 @@ paths: description: Response content: application/json: - schema: *580 + schema: *577 examples: default: value: @@ -85697,9 +85239,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/deployments#delete-a-deployment parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 responses: '204': description: Response @@ -85721,9 +85263,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#list-deployment-statuses parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 - *17 - *19 responses: @@ -85733,7 +85275,7 @@ paths: application/json: schema: type: array - items: &583 + items: &580 title: Deployment Status description: The status of a deployment. type: object @@ -85897,9 +85439,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#create-a-deployment-status parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 requestBody: required: true content: @@ -85974,9 +85516,9 @@ paths: description: Response content: application/json: - schema: *583 + schema: *580 examples: - default: &584 + default: &581 value: url: https://api.github.com/repos/octocat/example/deployments/42/statuses/1 id: 1 @@ -86032,9 +85574,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/statuses#get-a-deployment-status parameters: - - *441 - - *442 - - *582 + - *438 + - *439 + - *579 - name: status_id in: path required: true @@ -86045,9 +85587,9 @@ paths: description: Response content: application/json: - schema: *583 + schema: *580 examples: - default: *584 + default: *581 '404': *6 x-github: githubCloudOnly: false @@ -86074,12 +85616,12 @@ paths: category: code-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 + - *582 + - *583 + - *584 - *585 - - *586 - - *587 - - *588 - *17 - *19 responses: @@ -86089,9 +85631,9 @@ paths: application/json: schema: type: array - items: *589 + items: *586 examples: - default: *590 + default: *587 '404': *6 '403': *27 '500': *38 @@ -86115,8 +85657,8 @@ paths: category: code-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86128,7 +85670,7 @@ paths: description: A single dismissal request. content: application/json: - schema: *589 + schema: *586 examples: default: value: @@ -86184,8 +85726,8 @@ paths: category: code-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86244,12 +85786,12 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 + - *582 + - *583 + - *584 - *585 - - *586 - - *587 - - *588 - *17 - *19 responses: @@ -86259,9 +85801,9 @@ paths: application/json: schema: type: array - items: *591 + items: *588 examples: - default: *592 + default: *589 '404': *6 '403': *27 '500': *38 @@ -86285,8 +85827,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86298,7 +85840,7 @@ paths: description: A single dismissal request. content: application/json: - schema: *591 + schema: *588 examples: default: value: @@ -86349,8 +85891,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86388,7 +85930,7 @@ paths: description: The created dismissal request. content: application/json: - schema: *591 + schema: *588 examples: default: value: @@ -86439,8 +85981,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86511,8 +86053,8 @@ paths: category: dependabot subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86545,8 +86087,8 @@ paths: category: secret-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - *101 - *102 - *103 @@ -86560,9 +86102,9 @@ paths: application/json: schema: type: array - items: *593 + items: *590 examples: - default: *594 + default: *591 '404': *6 '403': *27 '500': *38 @@ -86587,8 +86129,8 @@ paths: category: secret-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86600,7 +86142,7 @@ paths: description: A single dismissal request. content: application/json: - schema: *593 + schema: *590 examples: default: value: @@ -86658,8 +86200,8 @@ paths: category: secret-scanning subcategory: alert-dismissal-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: alert_number in: path required: true @@ -86728,8 +86270,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#create-a-repository-dispatch-event parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -86786,8 +86328,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#list-environments parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -86805,7 +86347,7 @@ paths: - 5 environments: type: array - items: &596 + items: &593 title: Environment description: Details of a deployment environment type: object @@ -86867,7 +86409,7 @@ paths: type: string examples: - wait_timer - wait_timer: &598 + wait_timer: &595 type: integer description: The amount of time to delay a job after the job is initially triggered. The time (in minutes) @@ -86909,7 +86451,7 @@ paths: items: type: object properties: - type: *595 + type: *592 reviewer: anyOf: - *4 @@ -86936,7 +86478,7 @@ paths: - id - node_id - type - deployment_branch_policy: &599 + deployment_branch_policy: &596 type: - object - 'null' @@ -87053,9 +86595,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#get-an-environment parameters: - - *441 - - *442 - - &597 + - *438 + - *439 + - &594 name: environment_name in: path required: true @@ -87068,9 +86610,9 @@ paths: description: Response content: application/json: - schema: *596 + schema: *593 examples: - default: &600 + default: &597 value: id: 161088068 node_id: MDExOkVudmlyb25tZW50MTYxMDg4MDY4 @@ -87154,9 +86696,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#create-or-update-an-environment parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 requestBody: required: false content: @@ -87166,7 +86708,7 @@ paths: - object - 'null' properties: - wait_timer: *598 + wait_timer: *595 prevent_self_review: type: boolean description: Whether or not a user who created the job is prevented @@ -87185,14 +86727,14 @@ paths: items: type: object properties: - type: *595 + type: *592 id: type: integer description: The id of the user or team who can review the deployment examples: - 4532992 - deployment_branch_policy: *599 + deployment_branch_policy: *596 additionalProperties: false examples: default: @@ -87212,9 +86754,9 @@ paths: description: Response content: application/json: - schema: *596 + schema: *593 examples: - default: *600 + default: *597 '422': description: Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` @@ -87238,9 +86780,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/environments#delete-an-environment parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 responses: '204': description: Default response @@ -87265,9 +86807,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#list-deployment-branch-policies parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *17 - *19 responses: @@ -87286,7 +86828,7 @@ paths: - 2 branch_policies: type: array - items: &601 + items: &598 title: Deployment branch policy description: Details of a deployment branch or tag policy. type: object @@ -87347,9 +86889,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#create-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 requestBody: required: true content: @@ -87397,9 +86939,9 @@ paths: description: Response content: application/json: - schema: *601 + schema: *598 examples: - example-wildcard: &602 + example-wildcard: &599 value: id: 364662 node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI= @@ -87441,10 +86983,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#get-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 - - &603 + - *438 + - *439 + - *594 + - &600 name: branch_policy_id in: path required: true @@ -87456,9 +86998,9 @@ paths: description: Response content: application/json: - schema: *601 + schema: *598 examples: - default: *602 + default: *599 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87477,10 +87019,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#update-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 - - *603 + - *438 + - *439 + - *594 + - *600 requestBody: required: true content: @@ -87509,9 +87051,9 @@ paths: description: Response content: application/json: - schema: *601 + schema: *598 examples: - default: *602 + default: *599 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87530,10 +87072,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/branch-policies#delete-a-deployment-branch-policy parameters: - - *441 - - *442 - - *597 - - *603 + - *438 + - *439 + - *594 + - *600 responses: '204': description: Response @@ -87558,9 +87100,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#get-all-deployment-protection-rules-for-an-environment parameters: - - *597 - - *442 - - *441 + - *594 + - *439 + - *438 responses: '200': description: List of deployment protection rules @@ -87577,7 +87119,7 @@ paths: - 10 custom_deployment_protection_rules: type: array - items: &604 + items: &601 title: Deployment protection rule description: Deployment protection rule type: object @@ -87599,7 +87141,7 @@ paths: for the environment. examples: - true - app: &605 + app: &602 title: Custom deployment protection rule app description: A GitHub App that is providing a custom deployment protection rule. @@ -87702,9 +87244,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#create-a-custom-deployment-protection-rule-on-an-environment parameters: - - *597 - - *442 - - *441 + - *594 + - *439 + - *438 requestBody: content: application/json: @@ -87725,9 +87267,9 @@ paths: description: The enabled custom deployment protection rule content: application/json: - schema: *604 + schema: *601 examples: - default: &606 + default: &603 value: id: 3 node_id: IEH37kRlcGxveW1lbnRTdGF0ddiv @@ -87762,9 +87304,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#list-custom-deployment-rule-integrations-available-for-an-environment parameters: - - *597 - - *442 - - *441 + - *594 + - *439 + - *438 - *19 - *17 responses: @@ -87784,7 +87326,7 @@ paths: - 35 available_custom_deployment_protection_rule_integrations: type: array - items: *605 + items: *602 examples: default: value: @@ -87819,10 +87361,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#get-a-custom-deployment-protection-rule parameters: - - *441 - - *442 - - *597 - - &607 + - *438 + - *439 + - *594 + - &604 name: protection_rule_id description: The unique identifier of the protection rule. in: path @@ -87834,9 +87376,9 @@ paths: description: Response content: application/json: - schema: *604 + schema: *601 examples: - default: *606 + default: *603 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87857,10 +87399,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deployments/protection-rules#disable-a-custom-protection-rule-for-an-environment parameters: - - *597 - - *442 - - *441 - - *607 + - *594 + - *439 + - *438 + - *604 responses: '204': description: Response @@ -87886,9 +87428,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#list-environment-secrets parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *17 - *19 responses: @@ -87906,9 +87448,9 @@ paths: type: integer secrets: type: array - items: *472 + items: *469 examples: - default: *473 + default: *470 headers: Link: *45 x-github: @@ -87933,17 +87475,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-public-key parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 responses: '200': description: Response content: application/json: - schema: *474 + schema: *471 examples: - default: *475 + default: *472 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87965,18 +87507,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#get-an-environment-secret parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *283 responses: '200': description: Response content: application/json: - schema: *472 + schema: *469 examples: - default: *608 + default: *605 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -87998,9 +87540,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#create-or-update-an-environment-secret parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *283 requestBody: required: true @@ -88058,9 +87600,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/secrets#delete-an-environment-secret parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *283 responses: '204': @@ -88086,10 +87628,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#list-environment-variables parameters: - - *441 - - *442 - - *597 - - *459 + - *438 + - *439 + - *594 + - *456 - *19 responses: '200': @@ -88106,9 +87648,9 @@ paths: type: integer variables: type: array - items: *476 + items: *473 examples: - default: *477 + default: *474 headers: Link: *45 x-github: @@ -88131,9 +87673,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#create-an-environment-variable parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 requestBody: required: true content: @@ -88185,18 +87727,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#get-an-environment-variable parameters: - - *441 - - *442 - - *597 + - *438 + - *439 + - *594 - *286 responses: '200': description: Response content: application/json: - schema: *476 + schema: *473 examples: - default: *609 + default: *606 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -88217,10 +87759,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#update-an-environment-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 - - *597 + - *594 requestBody: required: true content: @@ -88262,10 +87804,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/actions/variables#delete-an-environment-variable parameters: - - *441 - - *442 + - *438 + - *439 - *286 - - *597 + - *594 responses: '204': description: Response @@ -88287,8 +87829,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/events#list-repository-events parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -88356,8 +87898,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/forks#list-forks parameters: - - *441 - - *442 + - *438 + - *439 - name: sort description: The sort order. `stargazers` will sort by star count. in: query @@ -88516,8 +88058,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/forks#create-a-fork parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -88550,9 +88092,9 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 '400': *14 '422': *15 '403': *27 @@ -88573,8 +88115,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/blobs#create-a-blob parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -88634,7 +88176,7 @@ paths: schema: oneOf: - *248 - - *610 + - *607 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -88659,8 +88201,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/blobs#get-a-blob parameters: - - *441 - - *442 + - *438 + - *439 - name: file_sha in: path required: true @@ -88760,8 +88302,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/commits#create-a-commit parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -88870,7 +88412,7 @@ paths: description: Response content: application/json: - schema: &611 + schema: &608 title: Git Commit description: Low-level Git commit operations within a repository type: object @@ -89097,15 +88639,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/commits#get-a-commit-object parameters: - - *441 - - *442 - - *556 + - *438 + - *439 + - *553 responses: '200': description: Response content: application/json: - schema: *611 + schema: *608 examples: default: value: @@ -89161,9 +88703,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#list-matching-references parameters: - - *441 - - *442 - - &612 + - *438 + - *439 + - &609 name: ref description: The Git reference. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -89180,7 +88722,7 @@ paths: application/json: schema: type: array - items: &613 + items: &610 title: Git Reference description: Git references within a repository type: object @@ -89256,17 +88798,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference parameters: - - *441 - - *442 - - *612 + - *438 + - *439 + - *609 responses: '200': description: Response content: application/json: - schema: *613 + schema: *610 examples: - default: &614 + default: &611 value: ref: refs/heads/featureA node_id: MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ== @@ -89295,8 +88837,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#create-a-reference parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -89325,9 +88867,9 @@ paths: description: Response content: application/json: - schema: *613 + schema: *610 examples: - default: *614 + default: *611 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA @@ -89353,9 +88895,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#update-a-reference parameters: - - *441 - - *442 - - *612 + - *438 + - *439 + - *609 requestBody: required: true content: @@ -89384,9 +88926,9 @@ paths: description: Response content: application/json: - schema: *613 + schema: *610 examples: - default: *614 + default: *611 '422': *15 '409': *117 x-github: @@ -89404,9 +88946,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/refs#delete-a-reference parameters: - - *441 - - *442 - - *612 + - *438 + - *439 + - *609 responses: '204': description: Response @@ -89461,8 +89003,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/tags#create-a-tag-object parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -89529,7 +89071,7 @@ paths: description: Response content: application/json: - schema: &616 + schema: &613 title: Git Tag description: Metadata for a Git tag type: object @@ -89585,7 +89127,7 @@ paths: - sha - type - url - verification: *615 + verification: *612 required: - sha - url @@ -89595,7 +89137,7 @@ paths: - tag - message examples: - default: &617 + default: &614 value: node_id: MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw== tag: v0.0.1 @@ -89668,8 +89210,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/tags#get-a-tag parameters: - - *441 - - *442 + - *438 + - *439 - name: tag_sha in: path required: true @@ -89680,9 +89222,9 @@ paths: description: Response content: application/json: - schema: *616 + schema: *613 examples: - default: *617 + default: *614 '404': *6 '409': *117 x-github: @@ -89706,8 +89248,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/trees#create-a-tree parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -89781,7 +89323,7 @@ paths: description: Response content: application/json: - schema: &618 + schema: &615 title: Git Tree description: The hierarchy between files in a Git repository. type: object @@ -89883,8 +89425,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/git/trees#get-a-tree parameters: - - *441 - - *442 + - *438 + - *439 - name: tree_sha description: The SHA1 value or ref (branch or tag) name of the tree. in: path @@ -89907,7 +89449,7 @@ paths: description: Response content: application/json: - schema: *618 + schema: *615 examples: default-response: summary: Default response @@ -89966,8 +89508,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#list-repository-webhooks parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -89977,7 +89519,7 @@ paths: application/json: schema: type: array - items: &619 + items: &616 title: Webhook description: Webhooks for repositories. type: object @@ -90040,7 +89582,7 @@ paths: format: uri examples: - https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries - last_response: &871 + last_response: &866 title: Hook Response type: object properties: @@ -90117,8 +89659,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#create-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -90171,9 +89713,9 @@ paths: description: Response content: application/json: - schema: *619 + schema: *616 examples: - default: &620 + default: &617 value: type: Repository id: 12345678 @@ -90221,17 +89763,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#get-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '200': description: Response content: application/json: - schema: *619 + schema: *616 examples: - default: *620 + default: *617 '404': *6 x-github: githubCloudOnly: false @@ -90251,8 +89793,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#update-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 requestBody: required: true @@ -90298,9 +89840,9 @@ paths: description: Response content: application/json: - schema: *619 + schema: *616 examples: - default: *620 + default: *617 '422': *15 '404': *6 x-github: @@ -90321,8 +89863,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#delete-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '204': @@ -90347,8 +89889,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#get-a-webhook-configuration-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '200': @@ -90376,8 +89918,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#update-a-webhook-configuration-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *335 requestBody: required: false @@ -90422,8 +89964,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#list-deliveries-for-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 - *17 - *336 @@ -90455,8 +89997,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#get-a-delivery-for-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 - *16 responses: @@ -90485,8 +90027,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 - *16 responses: @@ -90510,8 +90052,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#ping-a-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '204': @@ -90537,8 +90079,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/webhooks#test-the-push-repository-webhook parameters: - - *441 - - *442 + - *438 + - *439 - *335 responses: '204': @@ -90562,8 +90104,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-immutable-releases-are-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response if immutable releases are enabled @@ -90611,8 +90153,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-immutable-releases parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '409': *117 @@ -90632,8 +90174,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-immutable-releases parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '409': *117 @@ -90690,14 +90232,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#get-an-import-status parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &621 + schema: &618 title: Import description: A repository import from an external source. type: object @@ -90804,7 +90346,7 @@ paths: - html_url - authors_url examples: - default: &624 + default: &621 value: vcs: subversion use_lfs: true @@ -90820,7 +90362,7 @@ paths: authors_url: https://api.github.com/repos/octocat/socm/import/authors repository_url: https://api.github.com/repos/octocat/socm '404': *6 - '503': &622 + '503': &619 description: Unavailable due to service under maintenance. content: application/json: @@ -90849,8 +90391,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#start-an-import parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -90898,7 +90440,7 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: default: value: @@ -90923,7 +90465,7 @@ paths: type: string '422': *15 '404': *6 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -90951,8 +90493,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-an-import parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -91004,7 +90546,7 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: example-1: summary: Example 1 @@ -91052,7 +90594,7 @@ paths: 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 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91075,12 +90617,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#cancel-an-import parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91106,9 +90648,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#get-commit-authors parameters: - - *441 - - *442 - - &804 + - *438 + - *439 + - &799 name: since description: A user ID. Only return users with an ID greater than this ID. in: query @@ -91122,7 +90664,7 @@ paths: application/json: schema: type: array - items: &623 + items: &620 title: Porter Author description: Porter Author type: object @@ -91176,7 +90718,7 @@ paths: url: https://api.github.com/repos/octocat/socm/import/authors/2268559 import_url: https://api.github.com/repos/octocat/socm/import '404': *6 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91201,8 +90743,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#map-a-commit-author parameters: - - *441 - - *442 + - *438 + - *439 - name: author_id in: path required: true @@ -91232,7 +90774,7 @@ paths: description: Response content: application/json: - schema: *623 + schema: *620 examples: default: value: @@ -91245,7 +90787,7 @@ paths: import_url: https://api.github.com/repos/octocat/socm/import '422': *15 '404': *6 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91269,8 +90811,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#get-large-files parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -91311,7 +90853,7 @@ paths: path: foo/bar/3 oid: c20ad4d76fe97759aa27a0c99bff6710 size: 12582912 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91339,8 +90881,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/source-imports#update-git-lfs-preference parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -91367,11 +90909,11 @@ paths: description: Response content: application/json: - schema: *621 + schema: *618 examples: - default: *624 + default: *621 '422': *15 - '503': *622 + '503': *619 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -91394,8 +90936,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/apps/apps#get-a-repository-installation-for-the-authenticated-app parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -91403,8 +90945,8 @@ paths: application/json: schema: *20 examples: - default: *625 - '301': *447 + default: *622 + '301': *444 '404': *6 x-github: githubCloudOnly: false @@ -91424,8 +90966,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/interactions/repos#get-interaction-restrictions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -91438,7 +90980,7 @@ paths: properties: {} additionalProperties: false examples: - default: &627 + default: &624 value: limit: collaborators_only origin: repository @@ -91463,13 +91005,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/interactions/repos#set-interaction-restrictions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: application/json: - schema: *626 + schema: *623 examples: default: summary: Example request body @@ -91483,7 +91025,7 @@ paths: application/json: schema: *353 examples: - default: *627 + default: *624 '409': description: Response x-github: @@ -91505,8 +91047,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/interactions/repos#remove-interaction-restrictions-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -91529,8 +91071,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations#list-repository-invitations parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -91540,9 +91082,9 @@ paths: application/json: schema: type: array - items: *628 + items: *625 examples: - default: &797 + default: &792 value: - id: 1 repository: @@ -91673,8 +91215,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations#update-a-repository-invitation parameters: - - *441 - - *442 + - *438 + - *439 - *357 requestBody: required: false @@ -91704,7 +91246,7 @@ paths: description: Response content: application/json: - schema: *628 + schema: *625 examples: default: value: @@ -91835,8 +91377,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/collaborators/invitations#delete-a-repository-invitation parameters: - - *441 - - *442 + - *438 + - *439 - *357 responses: '204': @@ -91868,8 +91410,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#list-repository-issues parameters: - - *441 - - *442 + - *438 + - *439 - 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 @@ -91942,7 +91484,7 @@ paths: type: array items: *213 examples: - default: &638 + default: &635 value: - id: 1 node_id: MDU6SXNzdWUx @@ -92090,7 +91632,7 @@ paths: state_reason: completed headers: Link: *45 - '301': *447 + '301': *444 '422': *15 '404': *6 x-github: @@ -92119,8 +91661,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#create-an-issue parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -92212,7 +91754,7 @@ paths: application/json: schema: *213 examples: - default: &635 + default: &632 value: id: 1 node_id: MDU6SXNzdWUx @@ -92368,7 +91910,7 @@ paths: '422': *15 '503': *190 '404': *6 - '410': *629 + '410': *626 x-github: triggersNotification: true githubCloudOnly: false @@ -92396,8 +91938,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#list-issue-comments-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *236 - name: direction description: Either `asc` or `desc`. Ignored without the `sort` parameter. @@ -92418,9 +91960,9 @@ paths: application/json: schema: type: array - items: *630 + items: *627 examples: - default: &637 + default: &634 value: - id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -92478,17 +92020,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '200': description: Response content: application/json: - schema: *630 + schema: *627 examples: - default: &631 + default: &628 value: id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -92542,8 +92084,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#update-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -92566,9 +92108,9 @@ paths: description: Response content: application/json: - schema: *630 + schema: *627 examples: - default: *631 + default: *628 '422': *15 x-github: githubCloudOnly: false @@ -92586,8 +92128,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#delete-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '204': @@ -92608,8 +92150,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). @@ -92636,9 +92178,9 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 @@ -92659,8 +92201,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-an-issue-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -92693,16 +92235,16 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -92724,10 +92266,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-an-issue-comment-reaction parameters: - - *441 - - *442 + - *438 + - *439 - *228 - - *633 + - *630 responses: '204': description: Response @@ -92747,8 +92289,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/events#list-issue-events-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -92758,7 +92300,7 @@ paths: application/json: schema: type: array - items: &634 + items: &631 title: Issue Event description: Issue Event type: object @@ -93097,8 +92639,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/events#get-an-issue-event parameters: - - *441 - - *442 + - *438 + - *439 - name: event_id in: path required: true @@ -93109,7 +92651,7 @@ paths: description: Response content: application/json: - schema: *634 + schema: *631 examples: default: value: @@ -93301,7 +92843,7 @@ paths: author_association: COLLABORATOR state_reason: completed '404': *6 - '410': *629 + '410': *626 '403': *27 x-github: githubCloudOnly: false @@ -93335,9 +92877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue parameters: - - *441 - - *442 - - &636 + - *438 + - *439 + - &633 name: issue_number description: The number that identifies the issue. in: path @@ -93351,10 +92893,10 @@ paths: application/json: schema: *213 examples: - default: *635 - '301': *447 + default: *632 + '301': *444 '404': *6 - '410': *629 + '410': *626 '304': *35 x-github: githubCloudOnly: false @@ -93379,9 +92921,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#update-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -93502,13 +93044,13 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 '422': *15 '503': *190 '403': *27 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93526,9 +93068,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#add-assignees-to-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -93556,7 +93098,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93572,9 +93114,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#remove-assignees-from-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: content: application/json: @@ -93601,7 +93143,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93623,9 +93165,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/assignees#check-if-a-user-can-be-assigned-to-a-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: assignee in: path required: true @@ -93665,9 +93207,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#list-issue-comments parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *219 - *17 - *19 @@ -93678,13 +93220,13 @@ paths: application/json: schema: type: array - items: *630 + items: *627 examples: - default: *637 + default: *634 headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93713,9 +93255,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#create-an-issue-comment parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -93737,16 +93279,16 @@ paths: description: Response content: application/json: - schema: *630 + schema: *627 examples: - default: *631 + default: *628 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1 schema: type: string '403': *27 - '410': *629 + '410': *626 '422': *15 '404': *6 x-github: @@ -93774,9 +93316,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocked-by parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -93788,12 +93330,12 @@ paths: type: array items: *213 examples: - default: *638 + default: *635 headers: Link: *45 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93821,9 +93363,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#add-a-dependency-an-issue-is-blocked-by parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -93847,15 +93389,15 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/dependencies/blocked_by schema: type: string - '301': *447 + '301': *444 '403': *27 - '410': *629 + '410': *626 '422': *15 '404': *6 x-github: @@ -93886,9 +93428,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#remove-dependency-an-issue-is-blocked-by parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: issue_id in: path description: The id of the blocking issue to remove as a dependency @@ -93902,13 +93444,13 @@ paths: application/json: schema: *213 examples: - default: *635 - '301': *447 + default: *632 + '301': *444 '400': *14 '401': *23 '403': *27 '404': *6 - '410': *629 + '410': *626 x-github: triggersNotification: true githubCloudOnly: false @@ -93934,9 +93476,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issue-dependencies#list-dependencies-an-issue-is-blocking parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -93948,12 +93490,12 @@ paths: type: array items: *213 examples: - default: *638 + default: *635 headers: Link: *45 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -93970,9 +93512,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/events#list-issue-events parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -93986,7 +93528,7 @@ paths: title: Issue Event for Issue description: Issue Event for Issue anyOf: - - &640 + - &637 title: Labeled Issue Event description: Labeled Issue Event type: object @@ -94035,7 +93577,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &641 + - &638 title: Unlabeled Issue Event description: Unlabeled Issue Event type: object @@ -94163,7 +93705,7 @@ paths: - performed_via_github_app - assignee - assigner - - &642 + - &639 title: Milestoned Issue Event description: Milestoned Issue Event type: object @@ -94209,7 +93751,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &643 + - &640 title: Demilestoned Issue Event description: Demilestoned Issue Event type: object @@ -94255,7 +93797,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &644 + - &641 title: Renamed Issue Event description: Renamed Issue Event type: object @@ -94304,7 +93846,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &645 + - &642 title: Review Requested Issue Event description: Review Requested Issue Event type: object @@ -94346,7 +93888,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &646 + - &643 title: Review Request Removed Issue Event description: Review Request Removed Issue Event type: object @@ -94388,7 +93930,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &647 + - &644 title: Review Dismissed Issue Event description: Review Dismissed Issue Event type: object @@ -94444,7 +93986,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &648 + - &645 title: Locked Issue Event description: Locked Issue Event type: object @@ -94489,7 +94031,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &649 + - &646 title: Added to Project Issue Event description: Added to Project Issue Event type: object @@ -94550,7 +94092,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &650 + - &647 title: Moved Column in Project Issue Event description: Moved Column in Project Issue Event type: object @@ -94611,7 +94153,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &651 + - &648 title: Removed from Project Issue Event description: Removed from Project Issue Event type: object @@ -94672,7 +94214,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &652 + - &649 title: Converted Note to Issue Issue Event description: Converted Note to Issue Issue Event type: object @@ -94765,7 +94307,7 @@ paths: color: red headers: Link: *45 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -94782,9 +94324,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#list-labels-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -94796,7 +94338,7 @@ paths: type: array items: *212 examples: - default: &639 + default: &636 value: - id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -94814,9 +94356,9 @@ paths: default: false headers: Link: *45 - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -94833,9 +94375,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#add-labels-to-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -94896,10 +94438,10 @@ paths: type: array items: *212 examples: - default: *639 - '301': *447 + default: *636 + '301': *444 '404': *6 - '410': *629 + '410': *626 '422': *15 x-github: githubCloudOnly: false @@ -94916,9 +94458,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#set-labels-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -94980,10 +94522,10 @@ paths: type: array items: *212 examples: - default: *639 - '301': *447 + default: *636 + '301': *444 '404': *6 - '410': *629 + '410': *626 '422': *15 x-github: githubCloudOnly: false @@ -95000,15 +94542,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#remove-all-labels-from-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 responses: '204': description: Response - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95027,9 +94569,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#remove-a-label-from-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: name in: path required: true @@ -95053,9 +94595,9 @@ paths: description: Something isn't working color: f29513 default: true - '301': *447 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95075,9 +94617,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#lock-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: false content: @@ -95106,7 +94648,7 @@ paths: '204': description: Response '403': *27 - '410': *629 + '410': *626 '404': *6 '422': *15 x-github: @@ -95124,9 +94666,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#unlock-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 responses: '204': description: Response @@ -95156,9 +94698,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#get-parent-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 responses: '200': description: Response @@ -95166,10 +94708,10 @@ paths: application/json: schema: *213 examples: - default: *635 - '301': *447 + default: *632 + '301': *444 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95186,9 +94728,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. @@ -95214,13 +94756,13 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95238,9 +94780,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95272,16 +94814,16 @@ paths: description: Response content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Response content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -95303,10 +94845,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-an-issue-reaction parameters: - - *441 - - *442 - - *636 + - *438 + - *439 - *633 + - *630 responses: '204': description: Response @@ -95335,9 +94877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#remove-sub-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95361,7 +94903,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/1/sub-issue @@ -95394,9 +94936,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -95408,11 +94950,11 @@ paths: type: array items: *213 examples: - default: *638 + default: *635 headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -95440,9 +94982,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#add-sub-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95471,14 +95013,14 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/sub-issues/1 schema: type: string '403': *27 - '410': *629 + '410': *626 '422': *15 '404': *6 x-github: @@ -95498,9 +95040,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#reprioritize-sub-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 requestBody: required: true content: @@ -95533,7 +95075,7 @@ paths: application/json: schema: *213 examples: - default: *635 + default: *632 '403': *27 '404': *6 '422': *7 @@ -95555,9 +95097,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/timeline#list-timeline-events-for-an-issue parameters: - - *441 - - *442 - - *636 + - *438 + - *439 + - *633 - *17 - *19 responses: @@ -95572,6 +95114,9 @@ paths: description: Timeline Event type: object anyOf: + - *637 + - *638 + - *639 - *640 - *641 - *642 @@ -95582,9 +95127,6 @@ paths: - *647 - *648 - *649 - - *650 - - *651 - - *652 - title: Timeline Comment Event description: Timeline Comment Event type: object @@ -95913,7 +95455,7 @@ paths: type: string comments: type: array - items: &673 + items: &670 title: Pull Request Review Comment description: Pull Request Review Comments are comments on a portion of the Pull Request's diff. @@ -96154,7 +95696,7 @@ paths: type: string comments: type: array - items: *552 + items: *549 - title: Timeline Assigned Issue Event description: Timeline Assigned Issue Event type: object @@ -96429,7 +95971,7 @@ paths: headers: Link: *45 '404': *6 - '410': *629 + '410': *626 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -96446,8 +95988,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#list-deploy-keys parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -96457,7 +95999,7 @@ paths: application/json: schema: type: array - items: &653 + items: &650 title: Deploy Key description: An SSH key granting access to a single repository. type: object @@ -96525,8 +96067,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#create-a-deploy-key parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -96562,9 +96104,9 @@ paths: description: Response content: application/json: - schema: *653 + schema: *650 examples: - default: &654 + default: &651 value: id: 1 key: ssh-rsa AAA... @@ -96598,9 +96140,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key parameters: - - *441 - - *442 - - &655 + - *438 + - *439 + - &652 name: key_id description: The unique identifier of the key. in: path @@ -96612,9 +96154,9 @@ paths: description: Response content: application/json: - schema: *653 + schema: *650 examples: - default: *654 + default: *651 '404': *6 x-github: githubCloudOnly: false @@ -96632,9 +96174,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#delete-a-deploy-key parameters: - - *441 - - *442 - - *655 + - *438 + - *439 + - *652 responses: '204': description: Response @@ -96654,8 +96196,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#list-labels-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -96667,7 +96209,7 @@ paths: type: array items: *212 examples: - default: *639 + default: *636 headers: Link: *45 '404': *6 @@ -96688,8 +96230,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#create-a-label parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -96727,7 +96269,7 @@ paths: application/json: schema: *212 examples: - default: &656 + default: &653 value: id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -96759,8 +96301,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#get-a-label parameters: - - *441 - - *442 + - *438 + - *439 - name: name in: path required: true @@ -96773,7 +96315,7 @@ paths: application/json: schema: *212 examples: - default: *656 + default: *653 '404': *6 x-github: githubCloudOnly: false @@ -96790,8 +96332,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#update-a-label parameters: - - *441 - - *442 + - *438 + - *439 - name: name in: path required: true @@ -96856,8 +96398,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#delete-a-label parameters: - - *441 - - *442 + - *438 + - *439 - name: name in: path required: true @@ -96883,8 +96425,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-languages parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -96920,8 +96462,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/lfs#enable-git-lfs-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '202': *37 '403': @@ -96949,8 +96491,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/lfs#disable-git-lfs-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -96976,9 +96518,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/licenses/licenses#get-the-license-for-a-repository parameters: - - *441 - - *442 - - *527 + - *438 + - *439 + - *524 responses: '200': description: Response @@ -97125,8 +96667,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97191,8 +96733,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#merge-a-branch parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97226,9 +96768,9 @@ paths: description: Successful Response (The resulting merge commit) content: application/json: - schema: *555 + schema: *552 examples: - default: *657 + default: *654 '204': description: Response when already merged '404': @@ -97253,8 +96795,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#list-milestones parameters: - - *441 - - *442 + - *438 + - *439 - name: state description: The state of the milestone. Either `open`, `closed`, or `all`. in: query @@ -97351,8 +96893,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#create-a-milestone parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97394,7 +96936,7 @@ paths: application/json: schema: *392 examples: - default: &658 + default: &655 value: url: https://api.github.com/repos/octocat/Hello-World/milestones/1 html_url: https://github.com/octocat/Hello-World/milestones/v1.0 @@ -97453,9 +96995,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#get-a-milestone parameters: - - *441 - - *442 - - &659 + - *438 + - *439 + - &656 name: milestone_number description: The number that identifies the milestone. in: path @@ -97469,7 +97011,7 @@ paths: application/json: schema: *392 examples: - default: *658 + default: *655 '404': *6 x-github: githubCloudOnly: false @@ -97486,9 +97028,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#update-a-milestone parameters: - - *441 - - *442 - - *659 + - *438 + - *439 + - *656 requestBody: required: false content: @@ -97528,7 +97070,7 @@ paths: application/json: schema: *392 examples: - default: *658 + default: *655 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -97544,9 +97086,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/milestones#delete-a-milestone parameters: - - *441 - - *442 - - *659 + - *438 + - *439 + - *656 responses: '204': description: Response @@ -97567,9 +97109,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/issues/labels#list-labels-for-issues-in-a-milestone parameters: - - *441 - - *442 - - *659 + - *438 + - *439 + - *656 - *17 - *19 responses: @@ -97581,7 +97123,7 @@ paths: type: array items: *212 examples: - default: *639 + default: *636 headers: Link: *45 x-github: @@ -97600,12 +97142,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#list-repository-notifications-for-the-authenticated-user parameters: - - *441 - - *442 - - *660 - - *661 + - *438 + - *439 + - *657 + - *658 - *219 - - *662 + - *659 - *17 - *19 responses: @@ -97617,7 +97159,7 @@ paths: type: array items: *239 examples: - default: *663 + default: *660 headers: Link: *45 x-github: @@ -97641,8 +97183,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/notifications#mark-repository-notifications-as-read parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -97700,14 +97242,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: &664 + schema: &661 title: GitHub Pages description: The configuration for GitHub Pages for a repository. type: object @@ -97851,7 +97393,7 @@ paths: - custom_404 - public examples: - default: &665 + default: &662 value: url: https://api.github.com/repos/github/developer.github.com/pages status: built @@ -97892,8 +97434,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#create-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -97948,9 +97490,9 @@ paths: description: Response content: application/json: - schema: *664 + schema: *661 examples: - default: *665 + default: *662 '422': *15 '409': *117 x-github: @@ -97973,8 +97515,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#update-information-about-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -98082,8 +97624,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#delete-a-apiname-pages-site parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -98109,8 +97651,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#list-apiname-pages-builds parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -98120,7 +97662,7 @@ paths: application/json: schema: type: array - items: &666 + items: &663 title: Page Build description: Page Build type: object @@ -98212,8 +97754,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#request-a-apiname-pages-build parameters: - - *441 - - *442 + - *438 + - *439 responses: '201': description: Response @@ -98260,16 +97802,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-latest-pages-build parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *666 + schema: *663 examples: - default: &667 + default: &664 value: url: https://api.github.com/repos/github/developer.github.com/pages/builds/5472601 status: built @@ -98317,8 +97859,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-apiname-pages-build parameters: - - *441 - - *442 + - *438 + - *439 - name: build_id in: path required: true @@ -98329,9 +97871,9 @@ paths: description: Response content: application/json: - schema: *666 + schema: *663 examples: - default: *667 + default: *664 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -98351,8 +97893,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#create-a-github-pages-deployment parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -98460,9 +98002,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-the-status-of-a-github-pages-deployment parameters: - - *441 - - *442 - - &668 + - *438 + - *439 + - &665 name: pages_deployment_id description: The ID of the Pages deployment. You can also give the commit SHA of the deployment. @@ -98520,9 +98062,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#cancel-a-github-pages-deployment parameters: - - *441 - - *442 - - *668 + - *438 + - *439 + - *665 responses: '204': *149 '404': *6 @@ -98549,8 +98091,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-a-dns-health-check-for-github-pages parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -98845,8 +98387,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Private vulnerability reporting status @@ -98883,8 +98425,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-private-vulnerability-reporting-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '422': *14 @@ -98905,8 +98447,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-private-vulnerability-reporting-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': *149 '422': *14 @@ -98928,8 +98470,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/custom-properties#get-all-custom-property-values-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -98939,7 +98481,7 @@ paths: type: array items: *150 examples: - default: *669 + default: *666 '403': *27 '404': *6 x-github: @@ -98961,8 +98503,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -98978,7 +98520,7 @@ paths: required: - properties examples: - default: *670 + default: *667 responses: '204': description: No Content when custom property values are successfully created @@ -99016,8 +98558,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests parameters: - - *441 - - *442 + - *438 + - *439 - name: state description: Either `open`, `closed`, or `all` to filter by state. in: query @@ -99077,9 +98619,9 @@ paths: application/json: schema: type: array - items: *559 + items: *556 examples: - default: *671 + default: *668 headers: Link: *45 '304': *35 @@ -99111,8 +98653,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#create-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -99179,7 +98721,7 @@ paths: description: Response content: application/json: - schema: &675 + schema: &672 type: object title: Pull Request description: Pull requests let you tell others about changes you've @@ -99419,7 +98961,7 @@ paths: - review_comment - self author_association: *214 - auto_merge: *672 + auto_merge: *669 draft: description: Indicates whether or not the pull request is a draft. type: boolean @@ -99521,7 +99063,7 @@ paths: - merged_by - review_comments examples: - default: &676 + default: &673 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -100048,8 +99590,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#list-review-comments-in-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: sort in: query required: false @@ -100078,9 +99620,9 @@ paths: application/json: schema: type: array - items: *673 + items: *670 examples: - default: &678 + default: &675 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -100157,17 +99699,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '200': description: Response content: application/json: - schema: *673 + schema: *670 examples: - default: &674 + default: &671 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -100242,8 +99784,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#update-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -100266,9 +99808,9 @@ paths: description: Response content: application/json: - schema: *673 + schema: *670 examples: - default: *674 + default: *671 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -100284,8 +99826,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#delete-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 + - *438 + - *439 - *228 responses: '204': @@ -100307,8 +99849,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-pull-request-review-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). @@ -100335,9 +99877,9 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 @@ -100358,8 +99900,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment parameters: - - *441 - - *442 + - *438 + - *439 - *228 requestBody: required: true @@ -100392,16 +99934,16 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -100423,10 +99965,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-a-pull-request-comment-reaction parameters: - - *441 - - *442 + - *438 + - *439 - *228 - - *633 + - *630 responses: '204': description: Response @@ -100469,9 +100011,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#get-a-pull-request parameters: - - *441 - - *442 - - &677 + - *438 + - *439 + - &674 name: pull_number description: The number that identifies the pull request. in: path @@ -100484,9 +100026,9 @@ paths: to fetch diff and patch formats. content: application/json: - schema: *675 + schema: *672 examples: - default: *676 + default: *673 '304': *35 '404': *6 '406': @@ -100521,9 +100063,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#update-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -100565,9 +100107,9 @@ paths: description: Response content: application/json: - schema: *675 + schema: *672 examples: - default: *676 + default: *673 '422': *15 '403': *27 x-github: @@ -100589,9 +100131,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/codespaces/codespaces#create-a-codespace-from-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: true content: @@ -100654,7 +100196,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -100662,7 +100204,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '401': *23 '403': *27 '404': *6 @@ -100692,9 +100234,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#list-review-comments-on-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *236 - name: direction description: The direction to sort results. Ignored without `sort` parameter. @@ -100715,9 +100257,9 @@ paths: application/json: schema: type: array - items: *673 + items: *670 examples: - default: *678 + default: *675 headers: Link: *45 x-github: @@ -100750,9 +100292,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#create-a-review-comment-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: true content: @@ -100858,7 +100400,7 @@ paths: description: Response content: application/json: - schema: *673 + schema: *670 examples: example-for-a-multi-line-comment: value: @@ -100946,9 +100488,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#create-a-reply-for-a-review-comment parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *228 requestBody: required: true @@ -100971,7 +100513,7 @@ paths: description: Response content: application/json: - schema: *673 + schema: *670 examples: default: value: @@ -101057,9 +100599,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-commits-on-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *17 - *19 responses: @@ -101069,9 +100611,9 @@ paths: application/json: schema: type: array - items: *555 + items: *552 examples: - default: *679 + default: *676 headers: Link: *45 x-github: @@ -101101,9 +100643,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#list-pull-requests-files parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *17 - *19 responses: @@ -101113,7 +100655,7 @@ paths: application/json: schema: type: array - items: *566 + items: *563 examples: default: value: @@ -101151,9 +100693,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#check-if-a-pull-request-has-been-merged parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 responses: '204': description: Response if pull request has been merged @@ -101176,9 +100718,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#merge-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -101290,9 +100832,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/review-requests#get-all-requested-reviewers-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 responses: '200': description: Response @@ -101367,9 +100909,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/review-requests#request-reviewers-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -101406,7 +100948,7 @@ paths: description: Response content: application/json: - schema: *559 + schema: *556 examples: default: value: @@ -101942,9 +101484,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: true content: @@ -101978,7 +101520,7 @@ paths: description: Response content: application/json: - schema: *559 + schema: *556 examples: default: value: @@ -102483,9 +102025,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#list-reviews-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 - *17 - *19 responses: @@ -102495,7 +102037,7 @@ paths: application/json: schema: type: array - items: &680 + items: &677 title: Pull Request Review description: Pull Request Reviews are reviews on pull requests. type: object @@ -102651,9 +102193,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#create-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -102743,9 +102285,9 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: &682 + default: &679 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -102808,10 +102350,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#get-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - &681 + - *438 + - *439 + - *674 + - &678 name: review_id description: The unique identifier of the review. in: path @@ -102823,9 +102365,9 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: &683 + default: &680 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -102884,10 +102426,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#update-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 requestBody: required: true content: @@ -102910,7 +102452,7 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: default: value: @@ -102972,18 +102514,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#delete-a-pending-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 responses: '200': description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: *682 + default: *679 '422': *7 '404': *6 x-github: @@ -103010,10 +102552,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#list-comments-for-a-pull-request-review parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 - *17 - *19 responses: @@ -103271,10 +102813,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#dismiss-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 requestBody: required: true content: @@ -103303,7 +102845,7 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: default: value: @@ -103366,10 +102908,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/reviews#submit-a-review-for-a-pull-request parameters: - - *441 - - *442 - - *677 - - *681 + - *438 + - *439 + - *674 + - *678 requestBody: required: true content: @@ -103404,9 +102946,9 @@ paths: description: Response content: application/json: - schema: *680 + schema: *677 examples: - default: *683 + default: *680 '404': *6 '422': *7 '403': *27 @@ -103428,9 +102970,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/pulls/pulls#update-a-pull-request-branch parameters: - - *441 - - *442 - - *677 + - *438 + - *439 + - *674 requestBody: required: false content: @@ -103494,8 +103036,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#get-a-repository-readme parameters: - - *441 - - *442 + - *438 + - *439 - name: ref description: 'The name of the commit/branch/tag. Default: the repository’s default branch.' @@ -103508,9 +103050,9 @@ paths: description: Response content: application/json: - schema: *684 + schema: *681 examples: - default: &685 + default: &682 value: type: file encoding: base64 @@ -103552,8 +103094,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#get-a-repository-readme-for-a-directory parameters: - - *441 - - *442 + - *438 + - *439 - name: dir description: The alternate path to look for a README file in: path @@ -103573,9 +103115,9 @@ paths: description: Response content: application/json: - schema: *684 + schema: *681 examples: - default: *685 + default: *682 '404': *6 '422': *15 x-github: @@ -103597,8 +103139,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#list-releases parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -103608,7 +103150,7 @@ paths: application/json: schema: type: array - items: *686 + items: *683 examples: default: value: @@ -103702,8 +103244,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#create-a-release parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -103779,9 +103321,9 @@ paths: description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: &690 + default: &687 value: url: https://api.github.com/repos/octocat/Hello-World/releases/1 html_url: https://github.com/octocat/Hello-World/releases/v1.0.0 @@ -103886,9 +103428,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#get-a-release-asset parameters: - - *441 - - *442 - - &688 + - *438 + - *439 + - &685 name: asset_id description: The unique identifier of the asset. in: path @@ -103900,9 +103442,9 @@ paths: description: Response content: application/json: - schema: *687 + schema: *684 examples: - default: &689 + default: &686 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 @@ -103937,7 +103479,7 @@ paths: type: User site_admin: false '404': *6 - '302': *568 + '302': *565 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -103953,9 +103495,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#update-a-release-asset parameters: - - *441 - - *442 - - *688 + - *438 + - *439 + - *685 requestBody: required: false content: @@ -103984,9 +103526,9 @@ paths: description: Response content: application/json: - schema: *687 + schema: *684 examples: - default: *689 + default: *686 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -104002,9 +103544,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#delete-a-release-asset parameters: - - *441 - - *442 - - *688 + - *438 + - *439 + - *685 responses: '204': description: Response @@ -104028,8 +103570,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#generate-release-notes-content-for-a-release parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -104115,16 +103657,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#get-the-latest-release parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -104141,8 +103683,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#get-a-release-by-tag-name parameters: - - *441 - - *442 + - *438 + - *439 - name: tag description: tag parameter in: path @@ -104155,9 +103697,9 @@ paths: description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 '404': *6 x-github: githubCloudOnly: false @@ -104179,9 +103721,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#get-a-release parameters: - - *441 - - *442 - - &691 + - *438 + - *439 + - &688 name: release_id description: The unique identifier of the release. in: path @@ -104195,9 +103737,9 @@ paths: For more information, see "[Getting started with the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."' content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 '401': description: Unauthorized x-github: @@ -104215,9 +103757,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#update-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 requestBody: required: false content: @@ -104281,9 +103823,9 @@ paths: description: Response content: application/json: - schema: *686 + schema: *683 examples: - default: *690 + default: *687 '404': description: Not Found if the discussion category name is invalid content: @@ -104304,9 +103846,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/releases#delete-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 responses: '204': description: Response @@ -104326,9 +103868,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/releases/assets#list-release-assets parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 - *17 - *19 responses: @@ -104338,7 +103880,7 @@ paths: application/json: schema: type: array - items: *687 + items: *684 examples: default: value: @@ -104420,9 +103962,9 @@ paths: description: The URL origin (protocol + host name + port) is included in `upload_url` returned in the response of the "Create a release" endpoint parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 - name: name in: query required: true @@ -104448,7 +103990,7 @@ paths: description: Response for successful upload content: application/json: - schema: *687 + schema: *684 examples: response-for-successful-upload: value: @@ -104503,9 +104045,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#list-reactions-for-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. @@ -104529,9 +104071,9 @@ paths: application/json: schema: type: array - items: *553 + items: *550 examples: - default: *632 + default: *629 headers: Link: *45 '404': *6 @@ -104552,9 +104094,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#create-reaction-for-a-release parameters: - - *441 - - *442 - - *691 + - *438 + - *439 + - *688 requestBody: required: true content: @@ -104584,16 +104126,16 @@ paths: description: Reaction exists content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '201': description: Reaction created content: application/json: - schema: *553 + schema: *550 examples: - default: *554 + default: *551 '422': *15 x-github: githubCloudOnly: false @@ -104615,10 +104157,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-a-release-reaction parameters: - - *441 - - *442 - - *691 - - *633 + - *438 + - *439 + - *688 + - *630 responses: '204': description: Response @@ -104642,9 +104184,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-rules-for-a-branch parameters: - - *441 - - *442 - - *494 + - *438 + - *439 + - *491 - *17 - *19 responses: @@ -104661,7 +104203,7 @@ paths: oneOf: - allOf: - *164 - - &692 + - &689 title: repository ruleset data for rule description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -104682,67 +104224,67 @@ paths: description: The ID of the ruleset that includes this rule. - allOf: - *165 - - *692 + - *689 - allOf: - *166 - - *692 + - *689 - allOf: - *167 - - *692 + - *689 - allOf: - - *693 - - *692 + - *690 + - *689 - allOf: - *168 - - *692 + - *689 - allOf: - *169 - - *692 + - *689 - allOf: - *170 - - *692 + - *689 - allOf: - *171 - - *692 + - *689 - allOf: - *172 - - *692 + - *689 - allOf: - *173 - - *692 + - *689 - allOf: - *174 - - *692 + - *689 - allOf: - *175 - - *692 + - *689 - allOf: - *176 - - *692 + - *689 - allOf: - *177 - - *692 + - *689 - allOf: - *178 - - *692 + - *689 - allOf: - *179 - - *692 + - *689 - allOf: - *180 - - *692 + - *689 - allOf: - *181 - - *692 + - *689 - allOf: - *182 - - *692 + - *689 - allOf: - *183 - - *692 + - *689 - allOf: - *184 - - *692 + - *689 examples: default: value: @@ -104781,8 +104323,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - name: includes_parents @@ -104793,7 +104335,7 @@ paths: schema: type: boolean default: true - - *694 + - *691 responses: '200': description: Response @@ -104848,8 +104390,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 requestBody: description: Request body required: true @@ -104878,7 +104420,7 @@ paths: rules: type: array description: An array of rules within the ruleset. - items: *695 + items: *692 required: - name - enforcement @@ -104911,7 +104453,7 @@ paths: application/json: schema: *185 examples: - default: &704 + default: &701 value: id: 42 name: super cool ruleset @@ -104958,12 +104500,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rule-suites#list-repository-rule-suites parameters: - - *441 - - *442 - - *696 + - *438 + - *439 + - *693 - *103 - - *697 - - *698 + - *694 + - *695 - *17 - *19 responses: @@ -104971,9 +104513,9 @@ paths: description: Response content: application/json: - schema: *699 + schema: *696 examples: - default: *700 + default: *697 '404': *6 '500': *38 x-github: @@ -104994,17 +104536,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rule-suites#get-a-repository-rule-suite parameters: - - *441 - - *442 - - *701 + - *438 + - *439 + - *698 responses: '200': description: Response content: application/json: - schema: *702 + schema: *699 examples: - default: *703 + default: *700 '404': *6 '500': *38 x-github: @@ -105032,8 +104574,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105055,7 +104597,7 @@ paths: application/json: schema: *185 examples: - default: *704 + default: *701 '404': *6 '500': *38 put: @@ -105073,8 +104615,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105108,7 +104650,7 @@ paths: rules: description: An array of rules within the ruleset. type: array - items: *695 + items: *692 examples: default: value: @@ -105138,7 +104680,7 @@ paths: application/json: schema: *185 examples: - default: *704 + default: *701 '404': *6 '500': *38 delete: @@ -105156,8 +104698,8 @@ paths: category: repos subcategory: rules parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105180,8 +104722,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-repository-ruleset-history parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 - name: ruleset_id @@ -105218,8 +104760,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/rules#get-repository-ruleset-version parameters: - - *441 - - *442 + - *438 + - *439 - name: ruleset_id description: The ID of the ruleset. in: path @@ -105292,8 +104834,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - *410 - *411 - *412 @@ -105302,8 +104844,8 @@ paths: - *108 - *19 - *17 - - *705 - - *706 + - *702 + - *703 - *415 - *416 - *417 @@ -105315,7 +104857,7 @@ paths: application/json: schema: type: array - items: &710 + items: &707 type: object properties: number: *124 @@ -105331,8 +104873,8 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: *707 - resolution: *708 + state: *704 + resolution: *705 resolved_at: type: - string @@ -105426,7 +104968,7 @@ paths: first_location_detected: anyOf: - type: 'null' - - *709 + - *706 has_more_locations: type: boolean description: A boolean value representing whether or not the @@ -105571,16 +105113,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#get-a-secret-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 - *418 responses: '200': description: Response content: application/json: - schema: *710 + schema: *707 examples: default: value: @@ -105634,9 +105176,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 requestBody: required: true content: @@ -105644,8 +105186,8 @@ paths: schema: type: object properties: - state: *707 - resolution: *708 + state: *704 + resolution: *705 resolution_comment: description: An optional comment when closing or reopening an alert. Cannot be updated or deleted. @@ -105681,7 +105223,7 @@ paths: description: Response content: application/json: - schema: *710 + schema: *707 examples: default: value: @@ -105776,9 +105318,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#list-locations-for-a-secret-scanning-alert parameters: - - *441 - - *442 - - *521 + - *438 + - *439 + - *518 - *19 - *17 responses: @@ -105789,7 +105331,7 @@ paths: schema: type: array description: List of locations where the secret was detected - items: &891 + items: &886 type: object properties: type: @@ -105816,6 +105358,9 @@ paths: - commit details: oneOf: + - *708 + - *709 + - *710 - *711 - *712 - *713 @@ -105826,9 +105371,6 @@ paths: - *718 - *719 - *720 - - *721 - - *722 - - *723 examples: default: value: @@ -105914,8 +105456,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#create-a-push-protection-bypass parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -105923,14 +105465,14 @@ paths: schema: type: object properties: - reason: &725 + reason: &722 description: The reason for bypassing push protection. type: string enum: - false_positive - used_in_tests - will_fix_later - placeholder_id: *724 + placeholder_id: *721 required: - reason - placeholder_id @@ -105947,7 +105489,7 @@ paths: schema: type: object properties: - reason: *725 + reason: *722 expire_at: type: - string @@ -105994,8 +105536,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/secret-scanning/secret-scanning#get-secret-scanning-scan-history-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '404': description: Repository does not have GitHub Advanced Security or secret @@ -106010,7 +105552,7 @@ paths: properties: incremental_scans: type: array - items: &726 + items: &723 description: Information on a single scan performed by secret scanning on the repository type: object @@ -106038,15 +105580,15 @@ paths: the scan is pending pattern_update_scans: type: array - items: *726 + items: *723 backfill_scans: type: array - items: *726 + items: *723 custom_pattern_backfill_scans: type: array items: allOf: - - *726 + - *723 - type: object properties: pattern_name: @@ -106116,8 +105658,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#list-repository-security-advisories parameters: - - *441 - - *442 + - *438 + - *439 - *108 - name: sort description: The property to sort the results by. @@ -106161,9 +105703,9 @@ paths: application/json: schema: type: array - items: *727 + items: *724 examples: - default: *728 + default: *725 '400': *14 '404': *6 x-github: @@ -106186,8 +105728,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#create-a-repository-security-advisory parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -106357,9 +105899,9 @@ paths: description: Response content: application/json: - schema: *727 + schema: *724 examples: - default: &730 + default: &727 value: ghsa_id: GHSA-abcd-1234-efgh cve_id: CVE-2050-00000 @@ -106592,8 +106134,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#privately-report-a-security-vulnerability parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -106706,7 +106248,7 @@ paths: description: Response content: application/json: - schema: *727 + schema: *724 examples: default: value: @@ -106853,17 +106395,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#get-a-repository-security-advisory parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 responses: '200': description: Response content: application/json: - schema: *727 + schema: *724 examples: - default: *730 + default: *727 '403': *27 '404': *6 x-github: @@ -106887,9 +106429,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#update-a-repository-security-advisory parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 requestBody: required: true content: @@ -107060,10 +106602,10 @@ paths: description: Response content: application/json: - schema: *727 + schema: *724 examples: - default: *730 - add_credit: *730 + default: *727 + add_credit: *727 '403': *27 '404': *6 '422': @@ -107101,9 +106643,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#request-a-cve-for-a-repository-security-advisory parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 responses: '202': *37 '400': *14 @@ -107130,17 +106672,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/security-advisories/repository-advisories#create-a-temporary-private-fork parameters: - - *441 - - *442 - - *729 + - *438 + - *439 + - *726 responses: '202': description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 '400': *14 '422': *15 '403': *27 @@ -107166,8 +106708,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#list-stargazers parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -107263,8 +106805,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-weekly-commit-activity parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Returns a weekly aggregate of the number of additions and deletions @@ -107273,7 +106815,7 @@ paths: application/json: schema: type: array - items: &731 + items: &728 title: Code Frequency Stat description: Code Frequency Stat type: array @@ -107306,8 +106848,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-last-year-of-commit-activity parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -107385,8 +106927,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-all-contributor-commit-activity parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -107480,8 +107022,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-weekly-commit-count parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: The array order is oldest week (index 0) to most recent week. @@ -107635,8 +107177,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/statistics#get-the-hourly-commit-count-for-each-day parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: For example, `[2, 14, 25]` indicates that there were 25 total @@ -107646,7 +107188,7 @@ paths: application/json: schema: type: array - items: *731 + items: *728 examples: default: value: @@ -107679,8 +107221,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/commits/statuses#create-a-commit-status parameters: - - *441 - - *442 + - *438 + - *439 - name: sha in: path required: true @@ -107736,7 +107278,7 @@ paths: description: Response content: application/json: - schema: *732 + schema: *729 examples: default: value: @@ -107790,8 +107332,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#list-watchers parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -107823,14 +107365,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#get-a-repository-subscription parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: if you subscribe to the repository content: application/json: - schema: &733 + schema: &730 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -107903,8 +107445,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#set-a-repository-subscription parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: false content: @@ -107930,7 +107472,7 @@ paths: description: Response content: application/json: - schema: *733 + schema: *730 examples: default: value: @@ -107957,8 +107499,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/watching#delete-a-repository-subscription parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -107978,8 +107520,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-tags parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -108061,8 +107603,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -108070,7 +107612,7 @@ paths: application/json: schema: type: array - items: &734 + items: &731 title: Tag protection description: Tag protection type: object @@ -108127,8 +107669,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -108151,7 +107693,7 @@ paths: description: Response content: application/json: - schema: *734 + schema: *731 examples: default: value: @@ -108182,8 +107724,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/tags#closing-down---delete-a-tag-protection-state-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 - name: tag_protection_id description: The unique identifier of the tag protection. in: path @@ -108220,8 +107762,8 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#download-a-repository-archive-tar operationId: repos/download-tarball-archive parameters: - - *441 - - *442 + - *438 + - *439 - name: ref in: path required: true @@ -108257,8 +107799,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#list-repository-teams parameters: - - *441 - - *442 + - *438 + - *439 - *17 - *19 responses: @@ -108290,8 +107832,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-all-repository-topics parameters: - - *441 - - *442 + - *438 + - *439 - *19 - *17 responses: @@ -108299,7 +107841,7 @@ paths: description: Response content: application/json: - schema: &735 + schema: &732 title: Topic description: A topic aggregates entities that are related to a subject. type: object @@ -108311,7 +107853,7 @@ paths: required: - names examples: - default: &736 + default: &733 value: names: - octocat @@ -108334,8 +107876,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#replace-all-repository-topics parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -108366,9 +107908,9 @@ paths: description: Response content: application/json: - schema: *735 + schema: *732 examples: - default: *736 + default: *733 '404': *6 '422': *7 x-github: @@ -108389,9 +107931,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-repository-clones parameters: - - *441 - - *442 - - &737 + - *438 + - *439 + - &734 name: per description: The time frame to display results for. in: query @@ -108422,7 +107964,7 @@ paths: - 128 clones: type: array - items: &738 + items: &735 title: Traffic type: object properties: @@ -108509,8 +108051,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-top-referral-paths parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -108604,8 +108146,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-top-referral-sources parameters: - - *441 - - *442 + - *438 + - *439 responses: '200': description: Response @@ -108668,9 +108210,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/metrics/traffic#get-page-views parameters: - - *441 - - *442 - - *737 + - *438 + - *439 + - *734 responses: '200': description: Response @@ -108691,7 +108233,7 @@ paths: - 3782 views: type: array - items: *738 + items: *735 required: - uniques - count @@ -108768,8 +108310,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#transfer-a-repository parameters: - - *441 - - *442 + - *438 + - *439 requestBody: required: true content: @@ -109043,8 +108585,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response if repository is enabled with vulnerability alerts @@ -109067,8 +108609,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#enable-vulnerability-alerts parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -109090,8 +108632,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#disable-vulnerability-alerts parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -109117,8 +108659,8 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/repos/contents#download-a-repository-archive-zip operationId: repos/download-zipball-archive parameters: - - *441 - - *442 + - *438 + - *439 - name: ref in: path required: true @@ -109210,9 +108752,9 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -109363,7 +108905,7 @@ paths: value: Engineering externalId: value: 8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159 - - &746 + - &743 name: excludedAttributes description: Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time. @@ -109373,7 +108915,7 @@ paths: type: string examples: - members - - &751 + - &748 name: startIndex description: 'Used for pagination: the starting index of the first result to return when paginating through values.' @@ -109385,7 +108927,7 @@ paths: format: int32 examples: - 1 - - &752 + - &749 name: count description: 'Used for pagination: the number of results to return per page.' in: query @@ -109429,7 +108971,7 @@ paths: Resources: type: array description: Information about each provisioned group. - items: &741 + items: &738 allOf: - type: object required: @@ -109511,7 +109053,7 @@ paths: - value: 0db508eb-91e2-46e4-809c-30dcbda0c685 "$+ref": https://api.github.localhost/scim/v2/Users/0db508eb-91e2-46e4-809c-30dcbda0c685 displayName: User 2 - meta: &753 + meta: &750 type: object description: The metadata associated with the creation/updates to the user. @@ -109576,30 +109118,30 @@ paths: location: https://api.github.localhost/scim/v2/Groups/24b28bbb-5fc4-4686-a153-a020debb1155 startIndex: 1 itemsPerPage: 20 - '400': &742 + '400': &739 description: Bad request content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '401': *740 - '403': &743 + schema: *736 + '401': *737 + '403': &740 description: Permission denied - '429': &744 + '429': &741 description: Too many requests content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '500': &745 + schema: *736 + '500': &742 description: Internal server error content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 + schema: *736 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109623,7 +109165,7 @@ paths: required: true content: application/json: - schema: &749 + schema: &746 type: object required: - schemas @@ -109687,9 +109229,9 @@ paths: description: Group has been created content: application/scim+json: - schema: *741 + schema: *738 examples: - group: &747 + group: &744 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:Group @@ -109708,13 +109250,13 @@ paths: created: '2012-03-27T19:59:26.000Z' lastModified: '2018-03-27T19:59:26.000Z' location: https://api.github.localhost/scim/v2/Groups/24b28bbb-5fc4-4686-a153-a020debb1155 - '400': *742 - '401': *740 - '403': *743 - '409': &750 + '400': *739 + '401': *737 + '403': *740 + '409': &747 description: Duplicate record detected - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109731,7 +109273,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#get-scim-provisioning-information-for-an-enterprise-group parameters: - - &748 + - &745 name: scim_group_id description: A unique identifier of the SCIM group. in: path @@ -109740,22 +109282,22 @@ paths: type: string examples: - 7fce0092-d52e-4f76-b727-3955bd72c939 - - *746 + - *743 - *39 responses: '200': description: Success, a group was found content: application/scim+json: - schema: *741 + schema: *738 examples: - default: *747 - '400': *742 - '401': *740 - '403': *743 + default: *744 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109774,13 +109316,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#set-scim-information-for-a-provisioned-enterprise-group parameters: - - *748 + - *745 - *39 requestBody: required: true content: application/json: - schema: *749 + schema: *746 examples: group: summary: Group @@ -109806,17 +109348,17 @@ paths: description: Group was updated content: application/scim+json: - schema: *741 + schema: *738 examples: - group: *747 - groupWithMembers: *747 - '400': *742 - '401': *740 - '403': *743 + group: *744 + groupWithMembers: *744 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109840,13 +109382,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#update-an-attribute-for-a-scim-enterprise-group parameters: - - *748 + - *745 - *39 requestBody: required: true content: application/json: - schema: &760 + schema: &757 type: object required: - Operations @@ -109906,17 +109448,17 @@ paths: description: Success, group was updated content: application/scim+json: - schema: *741 + schema: *738 examples: - updateGroup: *747 - addMembers: *747 - '400': *742 - '401': *740 - '403': *743 + updateGroup: *744 + addMembers: *744 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109932,17 +109474,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#delete-a-scim-group-from-an-enterprise parameters: - - *748 + - *745 - *39 responses: '204': description: Group was deleted, no content - '400': *742 - '401': *740 - '403': *743 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -109976,8 +109518,8 @@ paths: value: userName eq 'E012345' externalId: value: externalId eq 'E012345' - - *751 - - *752 + - *748 + - *749 - *39 responses: '200': @@ -110011,7 +109553,7 @@ paths: Resources: type: array description: Information about each provisioned account. - items: &755 + items: &752 allOf: - type: object required: @@ -110103,7 +109645,7 @@ paths: address. examples: - true - roles: &754 + roles: &751 type: array description: The roles assigned to the user. items: @@ -110162,7 +109704,7 @@ paths: type: string description: Provisioned SCIM groups that the user is a member of. - meta: *753 + meta: *750 startIndex: type: integer description: A starting index for the returned page @@ -110201,11 +109743,11 @@ paths: primary: false startIndex: 1 itemsPerPage: 20 - '400': *742 - '401': *740 - '403': *743 - '429': *744 - '500': *745 + '400': *739 + '401': *737 + '403': *740 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110229,7 +109771,7 @@ paths: required: true content: application/json: - schema: &758 + schema: &755 type: object required: - schemas @@ -110322,9 +109864,9 @@ paths: description: Whether this email address is the primary address. examples: - true - roles: *754 + roles: *751 examples: - user: &759 + user: &756 summary: User value: schemas: @@ -110371,9 +109913,9 @@ paths: description: User has been created content: application/scim+json: - schema: *755 + schema: *752 examples: - user: &756 + user: &753 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:User @@ -110399,13 +109941,13 @@ paths: created: '2012-03-27T19:59:26.000Z' lastModified: '2018-03-27T19:59:26.000Z' location: https://api.github.localhost/scim/v2/Users/7fce0092-d52e-4f76-b727-3955bd72c939 - enterpriseOwner: *756 - '400': *742 - '401': *740 - '403': *743 - '409': *750 - '429': *744 - '500': *745 + enterpriseOwner: *753 + '400': *739 + '401': *737 + '403': *740 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110422,7 +109964,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#get-scim-provisioning-information-for-an-enterprise-user parameters: - - &757 + - &754 name: scim_user_id description: The unique identifier of the SCIM user. in: path @@ -110435,15 +109977,15 @@ paths: description: Success, a user was found content: application/scim+json: - schema: *755 + schema: *752 examples: - default: *756 - '400': *742 - '401': *740 - '403': *743 + default: *753 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110465,30 +110007,30 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#set-scim-information-for-a-provisioned-enterprise-user parameters: - - *757 + - *754 - *39 requestBody: required: true content: application/json: - schema: *758 + schema: *755 examples: - user: *759 + user: *756 responses: '200': description: User was updated content: application/scim+json: - schema: *755 + schema: *752 examples: - user: *756 - '400': *742 - '401': *740 - '403': *743 + user: *753 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110523,13 +110065,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#update-an-attribute-for-a-scim-enterprise-user parameters: - - *757 + - *754 - *39 requestBody: required: true content: application/json: - schema: *760 + schema: *757 examples: userMultiValuedProperties: summary: Multi Valued Property @@ -110569,18 +110111,18 @@ paths: description: Success, user was updated content: application/scim+json: - schema: *755 + schema: *752 examples: - userMultiValuedProperties: *756 - userSingleValuedProperties: *756 - disableUser: *756 - '400': *742 - '401': *740 - '403': *743 + userMultiValuedProperties: *753 + userSingleValuedProperties: *753 + disableUser: *753 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '409': *750 - '429': *744 - '500': *745 + '409': *747 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110600,17 +110142,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/enterprise-admin/scim#delete-a-scim-user-from-an-enterprise parameters: - - *757 + - *754 - *39 responses: '204': description: User was deleted, no content - '400': *742 - '401': *740 - '403': *743 + '400': *739 + '401': *737 + '403': *740 '404': *6 - '429': *744 - '500': *745 + '429': *741 + '500': *742 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -110701,7 +110243,7 @@ paths: - 1 Resources: type: array - items: &761 + items: &758 title: SCIM /Users description: SCIM /Users provisioning endpoints type: object @@ -110948,22 +110490,22 @@ paths: lastModified: '2017-03-09T16:11:13-05:00' location: https://api.github.com/scim/v2/organizations/octo-org/Users/77563764-eb6-24-0598234-958243 '304': *35 - '404': &762 + '404': &759 description: Resource not found content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '403': &763 + schema: *736 + '403': &760 description: Forbidden content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '400': *742 - '429': *744 + schema: *736 + '400': *739 + '429': *741 x-github: githubCloudOnly: true enabledForGitHubApps: true @@ -110989,9 +110531,9 @@ paths: description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: &764 + default: &761 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:User @@ -111014,17 +110556,17 @@ paths: lastModified: '2017-03-09T16:11:13-05:00' location: https://api.github.com/scim/v2/organizations/octo-org/Users/edefdfedf-050c-11e7-8d32 '304': *35 - '404': *762 - '403': *763 - '500': *745 + '404': *759 + '403': *760 + '500': *742 '409': description: Conflict content: application/json: - schema: *739 + schema: *736 application/scim+json: - schema: *739 - '400': *742 + schema: *736 + '400': *739 requestBody: required: true content: @@ -111124,17 +110666,17 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#get-scim-provisioning-information-for-a-user parameters: - *85 - - *757 + - *754 responses: '200': description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: *764 - '404': *762 - '403': *763 + default: *761 + '404': *759 + '403': *760 '304': *35 x-github: githubCloudOnly: true @@ -111158,18 +110700,18 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#update-a-provisioned-organization-membership parameters: - *85 - - *757 + - *754 responses: '200': description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: *764 + default: *761 '304': *35 - '404': *762 - '403': *763 + '404': *759 + '403': *760 requestBody: required: true content: @@ -111284,19 +110826,19 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#update-an-attribute-for-a-scim-user parameters: - *85 - - *757 + - *754 responses: '200': description: Response content: application/scim+json: - schema: *761 + schema: *758 examples: - default: *764 + default: *761 '304': *35 - '404': *762 - '403': *763 - '400': *742 + '404': *759 + '403': *760 + '400': *739 '429': description: Response content: @@ -111392,12 +110934,12 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/scim/scim#delete-a-scim-user-from-an-organization parameters: - *85 - - *757 + - *754 responses: '204': description: Response - '404': *762 - '403': *763 + '404': *759 + '403': *760 '304': *35 x-github: githubCloudOnly: true @@ -111531,7 +111073,7 @@ paths: examples: - 73..77 - 77..78 - text_matches: &765 + text_matches: &762 title: Search Result Text Matches type: array items: @@ -111695,7 +111237,7 @@ paths: enum: - author-date - committer-date - - &766 + - &763 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 @@ -111764,7 +111306,7 @@ paths: committer: anyOf: - type: 'null' - - *492 + - *489 comment_count: type: integer message: @@ -111783,7 +111325,7 @@ paths: url: type: string format: uri - verification: *615 + verification: *612 required: - author - committer @@ -111798,7 +111340,7 @@ paths: committer: anyOf: - type: 'null' - - *492 + - *489 parents: type: array items: @@ -111815,7 +111357,7 @@ paths: type: number node_id: type: string - text_matches: *765 + text_matches: *762 required: - sha - node_id @@ -112008,7 +111550,7 @@ paths: - interactions - created - updated - - *766 + - *763 - *17 - *19 - name: advanced_search @@ -112105,11 +111647,11 @@ paths: type: - string - 'null' - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: type: string state_reason: @@ -112137,7 +111679,7 @@ paths: - string - 'null' format: date-time - text_matches: *765 + text_matches: *762 pull_request: type: object properties: @@ -112360,7 +111902,7 @@ paths: enum: - created - updated - - *766 + - *763 - *17 - *19 responses: @@ -112405,7 +111947,7 @@ paths: - 'null' score: type: number - text_matches: *765 + text_matches: *762 required: - id - node_id @@ -112491,7 +112033,7 @@ paths: - forks - help-wanted-issues - updated - - *766 + - *763 - *17 - *19 responses: @@ -112728,7 +112270,7 @@ paths: - admin - pull - push - text_matches: *765 + text_matches: *762 temp_clone_token: type: string allow_merge_commit: @@ -113037,7 +112579,7 @@ paths: - string - 'null' format: uri - text_matches: *765 + text_matches: *762 related: type: - array @@ -113232,7 +112774,7 @@ paths: - followers - repositories - joined - - *766 + - *763 - *17 - *19 responses: @@ -113342,7 +112884,7 @@ paths: type: - boolean - 'null' - text_matches: *765 + text_matches: *762 blog: type: - string @@ -113424,7 +112966,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#get-a-team-legacy parameters: - - &770 + - &767 name: team_id description: The unique identifier of the team. in: path @@ -113465,7 +113007,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#update-a-team-legacy parameters: - - *770 + - *767 requestBody: required: true content: @@ -113566,7 +113108,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#delete-a-team-legacy parameters: - - *770 + - *767 responses: '204': description: Response @@ -113580,226 +113122,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions-legacy - parameters: - - *770 - - *108 - - *17 - - *19 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: *433 - examples: - default: *771 - headers: - Link: *45 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy - parameters: - - *770 - requestBody: - required: true - 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 - examples: - default: - value: - 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: *433 - examples: - default: *434 - x-github: - triggersNotification: true - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion-legacy - parameters: - - *770 - - *435 - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: *434 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy - parameters: - - *770 - - *435 - requestBody: - required: false - 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. - examples: - default: - value: - title: Welcome to our first team post - responses: - '200': - description: Response - content: - application/json: - schema: *433 - examples: - default: *772 - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy - parameters: - - *770 - - *435 - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -113815,7 +113137,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-pending-team-invitations-legacy parameters: - - *770 + - *767 - *17 - *19 responses: @@ -113853,7 +113175,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#list-team-members-legacy parameters: - - *770 + - *767 - name: role description: Filters members returned by their role in the team. in: query @@ -113904,7 +113226,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-member-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -113941,7 +113263,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-team-member-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -113981,7 +113303,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-member-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -114018,16 +113340,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#get-team-membership-for-a-user-legacy parameters: - - *770 + - *767 - *137 responses: '200': description: Response content: application/json: - schema: *440 + schema: *437 examples: - response-if-user-is-a-team-maintainer: *773 + response-if-user-is-a-team-maintainer: *768 '404': *6 x-github: githubCloudOnly: false @@ -114060,7 +113382,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#add-or-update-team-membership-for-a-user-legacy parameters: - - *770 + - *767 - *137 requestBody: required: false @@ -114086,9 +113408,9 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - response-if-users-membership-with-team-is-now-pending: *774 + response-if-users-membership-with-team-is-now-pending: *769 '403': description: Forbidden if team synchronization is set up '422': @@ -114122,7 +113444,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/members#remove-team-membership-for-a-user-legacy parameters: - - *770 + - *767 - *137 responses: '204': @@ -114150,7 +113472,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-team-repositories-legacy parameters: - - *770 + - *767 - *17 - *19 responses: @@ -114192,15 +113514,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#check-team-permissions-for-a-repository-legacy parameters: - - *770 - - *441 - - *442 + - *767 + - *438 + - *439 responses: '200': description: Alternative response with extra repository information content: application/json: - schema: *775 + schema: *770 examples: alternative-response-with-extra-repository-information: value: @@ -114351,9 +113673,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#add-or-update-team-repository-permissions-legacy parameters: - - *770 - - *441 - - *442 + - *767 + - *438 + - *439 requestBody: required: false content: @@ -114403,9 +113725,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#remove-a-repository-from-a-team-legacy parameters: - - *770 - - *441 - - *442 + - *767 + - *438 + - *439 responses: '204': description: Response @@ -114434,15 +113756,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#list-idp-groups-for-a-team-legacy parameters: - - *770 + - *767 responses: '200': description: Response content: application/json: - schema: *443 + schema: *440 examples: - default: *444 + default: *441 '403': *27 '404': *6 x-github: @@ -114469,7 +113791,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/team-sync#create-or-update-idp-group-connections-legacy parameters: - - *770 + - *767 requestBody: required: true content: @@ -114530,7 +113852,7 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: default: value: @@ -114561,7 +113883,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/teams/teams#list-child-teams-legacy parameters: - - *770 + - *767 - *17 - *19 responses: @@ -114573,7 +113895,7 @@ paths: type: array items: *302 examples: - response-if-child-teams-exist: *776 + response-if-child-teams-exist: *771 headers: Link: *45 '404': *6 @@ -114606,7 +113928,7 @@ paths: application/json: schema: oneOf: - - &778 + - &773 title: Private User description: Private User type: object @@ -114856,7 +114178,7 @@ paths: - private_gists - total_private_repos - two_factor_authentication - - *777 + - *772 examples: response-with-public-and-private-profile-information: summary: Response with public and private profile information @@ -115016,7 +114338,7 @@ paths: description: Response content: application/json: - schema: *778 + schema: *773 examples: default: value: @@ -115362,7 +114684,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '202': description: Response when the codespace creation partially failed but is being retried in the background @@ -115370,7 +114692,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '401': *23 '403': *27 '404': *6 @@ -115414,7 +114736,7 @@ paths: type: integer secrets: type: array - items: &779 + items: &774 title: Codespaces Secret description: Secrets for a GitHub Codespace. type: object @@ -115456,7 +114778,7 @@ paths: - visibility - selected_repositories_url examples: - default: *546 + default: *543 headers: Link: *45 x-github: @@ -115534,7 +114856,7 @@ paths: description: Response content: application/json: - schema: *779 + schema: *774 examples: default: value: @@ -115680,7 +115002,7 @@ paths: type: array items: *273 examples: - default: *780 + default: *775 '401': *23 '403': *27 '404': *6 @@ -115832,7 +115154,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '304': *35 '500': *38 '401': *23 @@ -115890,7 +115212,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '401': *23 '403': *27 '404': *6 @@ -115947,7 +115269,7 @@ paths: description: Response content: application/json: - schema: &781 + schema: &776 type: object title: Fetches information about an export of a codespace. description: An export of a codespace. Also, latest export details @@ -116000,7 +115322,7 @@ paths: examples: - https://github.com/octocat/hello-world/tree/:branch examples: - default: &782 + default: &777 value: state: succeeded completed_at: '2022-01-01T14:59:22Z' @@ -116045,9 +115367,9 @@ paths: description: Response content: application/json: - schema: *781 + schema: *776 examples: - default: *782 + default: *777 '404': *6 x-github: githubCloudOnly: false @@ -116084,9 +115406,9 @@ paths: type: integer machines: type: array - items: *545 + items: *542 examples: - default: *783 + default: *778 '304': *35 '500': *38 '401': *23 @@ -116171,11 +115493,11 @@ paths: - 26a7c758-7299-4a73-b978-5a92a7ae98a0 owner: *4 billable_owner: *4 - repository: *446 + repository: *443 machine: anyOf: - type: 'null' - - *545 + - *542 devcontainer_path: description: Path to devcontainer.json from repo root used to create Codespace. @@ -116980,7 +116302,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '304': *35 '500': *38 '400': *14 @@ -117020,7 +116342,7 @@ paths: application/json: schema: *363 examples: - default: *544 + default: *541 '500': *38 '401': *23 '403': *27 @@ -117052,7 +116374,7 @@ paths: type: array items: *373 examples: - default: &794 + default: &789 value: - id: 197 name: hello_docker @@ -117153,7 +116475,7 @@ paths: application/json: schema: type: array - items: &784 + items: &779 title: Email description: Email type: object @@ -117223,9 +116545,9 @@ paths: application/json: schema: type: array - items: *784 + items: *779 examples: - default: &796 + default: &791 value: - email: octocat@github.com verified: true @@ -117302,7 +116624,7 @@ paths: application/json: schema: type: array - items: *784 + items: *779 examples: default: value: @@ -117560,7 +116882,7 @@ paths: application/json: schema: type: array - items: &785 + items: &780 title: GPG Key description: A unique encryption key type: object @@ -117705,7 +117027,7 @@ paths: - subkeys - revoked examples: - default: &810 + default: &805 value: - id: 3 name: Octocat's GPG Key @@ -117790,9 +117112,9 @@ paths: description: Response content: application/json: - schema: *785 + schema: *780 examples: - default: &786 + default: &781 value: id: 3 name: Octocat's GPG Key @@ -117849,7 +117171,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user parameters: - - &787 + - &782 name: gpg_key_id description: The unique identifier of the GPG key. in: path @@ -117861,9 +117183,9 @@ paths: description: Response content: application/json: - schema: *785 + schema: *780 examples: - default: *786 + default: *781 '404': *6 '304': *35 '403': *27 @@ -117886,7 +117208,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user parameters: - - *787 + - *782 responses: '204': description: Response @@ -118191,7 +117513,7 @@ paths: required: true content: application/json: - schema: *626 + schema: *623 examples: default: value: @@ -118341,7 +117663,7 @@ paths: application/json: schema: type: array - items: &788 + items: &783 title: Key description: Key type: object @@ -118444,9 +117766,9 @@ paths: description: Response content: application/json: - schema: *788 + schema: *783 examples: - default: &789 + default: &784 value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 @@ -118479,15 +117801,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user parameters: - - *655 + - *652 responses: '200': description: Response content: application/json: - schema: *788 + schema: *783 examples: - default: *789 + default: *784 '404': *6 '304': *35 '403': *27 @@ -118510,7 +117832,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user parameters: - - *655 + - *652 responses: '204': description: Response @@ -118543,7 +117865,7 @@ paths: application/json: schema: type: array - items: &790 + items: &785 title: User Marketplace Purchase description: User Marketplace Purchase type: object @@ -118622,7 +117944,7 @@ paths: - account - plan examples: - default: &791 + default: &786 value: - billing_cycle: monthly next_billing_date: '2017-11-11T00:00:00Z' @@ -118684,9 +118006,9 @@ paths: application/json: schema: type: array - items: *790 + items: *785 examples: - default: *791 + default: *786 headers: Link: *45 '304': *35 @@ -119704,7 +119026,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/migrations/users#unlock-a-user-repository parameters: - *369 - - *792 + - *787 responses: '204': description: Response @@ -119819,7 +119141,7 @@ paths: - docker - nuget - container - - *793 + - *788 - *19 - *17 responses: @@ -119831,8 +119153,8 @@ paths: type: array items: *373 examples: - default: *794 - '400': *795 + default: *789 + '400': *790 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -119861,7 +119183,7 @@ paths: application/json: schema: *373 examples: - default: &811 + default: &806 value: id: 40201 name: octo-name @@ -120223,9 +119545,9 @@ paths: application/json: schema: type: array - items: *784 + items: *779 examples: - default: *796 + default: *791 headers: Link: *45 '304': *35 @@ -120338,7 +119660,7 @@ paths: type: array items: *76 examples: - default: &803 + default: &798 summary: Default response value: - id: 1296269 @@ -120656,9 +119978,9 @@ paths: description: Response content: application/json: - schema: *446 + schema: *443 examples: - default: *448 + default: *445 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -120696,9 +120018,9 @@ paths: application/json: schema: type: array - items: *628 + items: *625 examples: - default: *797 + default: *792 headers: Link: *45 '304': *35 @@ -120777,7 +120099,7 @@ paths: application/json: schema: type: array - items: &798 + items: &793 title: Social account description: Social media account type: object @@ -120794,7 +120116,7 @@ paths: - provider - url examples: - default: &799 + default: &794 value: - provider: twitter url: https://twitter.com/github @@ -120857,9 +120179,9 @@ paths: application/json: schema: type: array - items: *798 + items: *793 examples: - default: *799 + default: *794 '422': *15 '304': *35 '404': *6 @@ -120947,7 +120269,7 @@ paths: application/json: schema: type: array - items: &800 + items: &795 title: SSH Signing Key description: A public SSH key used to sign Git commits type: object @@ -120967,7 +120289,7 @@ paths: - title - created_at examples: - default: &825 + default: &820 value: - id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -121032,9 +120354,9 @@ paths: description: Response content: application/json: - schema: *800 + schema: *795 examples: - default: &801 + default: &796 value: id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -121064,7 +120386,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user parameters: - - &802 + - &797 name: ssh_signing_key_id description: The unique identifier of the SSH signing key. in: path @@ -121076,9 +120398,9 @@ paths: description: Response content: application/json: - schema: *800 + schema: *795 examples: - default: *801 + default: *796 '404': *6 '304': *35 '403': *27 @@ -121101,7 +120423,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user parameters: - - *802 + - *797 responses: '204': description: Response @@ -121130,7 +120452,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#list-repositories-starred-by-the-authenticated-user parameters: - - &826 + - &821 name: sort description: The property to sort the results by. `created` means when the repository was starred. `updated` means when the repository was last pushed @@ -121155,11 +120477,11 @@ paths: type: array items: *76 examples: - default-response: *803 + default-response: *798 application/vnd.github.v3.star+json: schema: type: array - items: &827 + items: &822 title: Starred Repository description: Starred Repository type: object @@ -121315,8 +120637,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response if this repository is starred by you @@ -121344,8 +120666,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#star-a-repository-for-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -121369,8 +120691,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#unstar-a-repository-for-the-authenticated-user parameters: - - *441 - - *442 + - *438 + - *439 responses: '204': description: Response @@ -121528,10 +120850,10 @@ paths: application/json: schema: oneOf: - - *778 - - *777 + - *773 + - *772 examples: - default-response: &805 + default-response: &800 summary: Default response value: login: octocat @@ -121566,7 +120888,7 @@ paths: following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' - response-with-git-hub-plan-information: &806 + response-with-git-hub-plan-information: &801 summary: Response with GitHub plan information value: login: octocat @@ -121688,7 +121010,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-cloud@latest//rest/users/users#list-users parameters: - - *804 + - *799 - *17 responses: '200': @@ -121737,11 +121059,11 @@ paths: application/json: schema: oneOf: - - *778 - - *777 + - *773 + - *772 examples: - default-response: *805 - response-with-git-hub-plan-information: *806 + default-response: *800 + response-with-git-hub-plan-information: *801 '404': *6 x-github: githubCloudOnly: false @@ -121791,8 +121113,8 @@ paths: required: - subject_digests examples: - default: *807 - withPredicateType: *808 + default: *802 + withPredicateType: *803 responses: '200': description: Response @@ -121846,7 +121168,7 @@ paths: description: The cursor to the previous page. description: Information about the current page. examples: - default: *809 + default: *804 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -122051,7 +121373,7 @@ paths: initiator: type: string examples: - default: *488 + default: *485 '201': description: Response content: @@ -122092,7 +121414,7 @@ paths: type: array items: *373 examples: - default: *794 + default: *789 '403': *27 '401': *23 x-github: @@ -122476,9 +121798,9 @@ paths: application/json: schema: type: array - items: *785 + items: *780 examples: - default: *810 + default: *805 headers: Link: *45 x-github: @@ -122582,7 +121904,7 @@ paths: application/json: schema: *20 examples: - default: *625 + default: *622 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -122707,7 +122029,7 @@ paths: - docker - nuget - container - - *793 + - *788 - *137 - *19 - *17 @@ -122720,10 +122042,10 @@ paths: type: array items: *373 examples: - default: *794 + default: *789 '403': *27 '401': *23 - '400': *795 + '400': *790 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -122753,7 +122075,7 @@ paths: application/json: schema: *373 examples: - default: *811 + default: *806 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -123102,7 +122424,7 @@ paths: type: array items: *394 examples: - default: *812 + default: *807 headers: Link: *45 '304': *35 @@ -123162,7 +122484,7 @@ paths: description: The options available for single select fields. At least one option must be provided when creating a single select field. - items: *813 + items: *808 required: - name - data_type @@ -123178,7 +122500,7 @@ paths: description: The field's data type. enum: - iteration - iteration_configuration: *814 + iteration_configuration: *809 required: - name - data_type @@ -123200,8 +122522,8 @@ paths: value: name: Due date data_type: date - single_select_field: *815 - iteration_field: *816 + single_select_field: *810 + iteration_field: *811 responses: '201': description: Response @@ -123209,11 +122531,11 @@ paths: application/json: schema: *394 examples: - text_field: *817 - number_field: *818 - date_field: *819 - single_select_field: *820 - iteration_field: *821 + text_field: *812 + number_field: *813 + date_field: *814 + single_select_field: *815 + iteration_field: *816 '304': *35 '403': *27 '401': *23 @@ -123235,7 +122557,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/projects/fields#get-project-field-for-user parameters: - *391 - - *822 + - *817 - *137 responses: '200': @@ -123244,7 +122566,7 @@ paths: application/json: schema: *394 examples: - default: *823 + default: *818 headers: Link: *45 '304': *35 @@ -123601,7 +122923,7 @@ paths: parameters: - *391 - *137 - - *824 + - *819 - name: fields description: |- Limit results to specific fields, by their IDs. If not specified, the @@ -123880,9 +123202,9 @@ paths: application/json: schema: type: array - items: *798 + items: *793 examples: - default: *799 + default: *794 headers: Link: *45 x-github: @@ -123912,9 +123234,9 @@ paths: application/json: schema: type: array - items: *800 + items: *795 examples: - default: *825 + default: *820 headers: Link: *45 x-github: @@ -123939,7 +123261,7 @@ paths: url: https://docs.github.com/enterprise-cloud@latest//rest/activity/starring#list-repositories-starred-by-a-user parameters: - *137 - - *826 + - *821 - *108 - *17 - *19 @@ -123951,11 +123273,11 @@ paths: schema: anyOf: - type: array - items: *827 + items: *822 - type: array items: *76 examples: - default-response: *803 + default-response: *798 headers: Link: *45 x-github: @@ -124115,7 +123437,7 @@ webhooks: type: string enum: - disabled - enterprise: &828 + enterprise: &823 title: Enterprise description: |- An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -124184,7 +123506,7 @@ webhooks: - created_at - updated_at - avatar_url - installation: &829 + installation: &824 title: Simple Installation description: |- The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured @@ -124205,7 +123527,7 @@ webhooks: required: - id - node_id - organization: &830 + organization: &825 title: Organization Simple description: |- A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -124278,7 +123600,7 @@ webhooks: - public_members_url - avatar_url - description - repository: &831 + repository: &826 title: Repository description: |- The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -125191,10 +124513,10 @@ webhooks: type: string enum: - enabled - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -125270,11 +124592,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - rule: &832 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + rule: &827 title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-cloud@latest//github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) @@ -125497,11 +124819,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - rule: *832 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + rule: *827 sender: *4 required: - action @@ -125689,11 +125011,11 @@ webhooks: - everyone required: - from - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - rule: *832 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + rule: *827 sender: *4 required: - action @@ -125766,7 +125088,7 @@ webhooks: required: true content: application/json: - schema: &852 + schema: &847 title: Exemption request cancellation event type: object properties: @@ -125774,11 +125096,11 @@ webhooks: type: string enum: - cancelled - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: &833 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: &828 title: Exemption Request description: A request from a user to be exempted from a set of rules. @@ -126052,7 +125374,7 @@ webhooks: - array - 'null' description: The responses to the exemption request. - items: &834 + items: &829 title: Exemption response description: A response to an exemption request by a delegated bypasser. @@ -126164,7 +125486,7 @@ webhooks: required: true content: application/json: - schema: &853 + schema: &848 title: Exemption request completed event type: object properties: @@ -126172,11 +125494,11 @@ webhooks: type: string enum: - completed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 sender: *4 required: - action @@ -126248,7 +125570,7 @@ webhooks: required: true content: application/json: - schema: &850 + schema: &845 title: Exemption request created event type: object properties: @@ -126256,11 +125578,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 sender: *4 required: - action @@ -126332,7 +125654,7 @@ webhooks: required: true content: application/json: - schema: &854 + schema: &849 title: Exemption response dismissed event type: object properties: @@ -126340,12 +125662,12 @@ webhooks: type: string enum: - response_dismissed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 - exemption_response: *834 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 + exemption_response: *829 sender: *4 required: - action @@ -126419,7 +125741,7 @@ webhooks: required: true content: application/json: - schema: &851 + schema: &846 title: Exemption response submitted event type: object properties: @@ -126427,12 +125749,12 @@ webhooks: type: string enum: - response_submitted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - exemption_request: *833 - exemption_response: *834 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + exemption_request: *828 + exemption_response: *829 sender: *4 required: - action @@ -126516,7 +125838,7 @@ webhooks: type: string enum: - completed - check_run: &836 + check_run: &831 title: CheckRun description: A check performed on the code of a given code change type: object @@ -126626,7 +125948,7 @@ webhooks: - examples: - neutral - deployment: *835 + deployment: *830 details_url: type: string examples: @@ -126724,10 +126046,10 @@ webhooks: - output - app - pull_requests - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 sender: *4 required: - check_run @@ -127120,11 +126442,11 @@ webhooks: type: string enum: - created - check_run: *836 - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + check_run: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 sender: *4 required: - check_run @@ -127520,11 +126842,11 @@ webhooks: type: string enum: - requested_action - check_run: *836 - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + check_run: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 requested_action: description: The action requested by the user. type: object @@ -127929,11 +127251,11 @@ webhooks: type: string enum: - rerequested - check_run: *836 - installation: *829 - enterprise: *828 - organization: *830 - repository: *831 + check_run: *831 + installation: *824 + enterprise: *823 + organization: *825 + repository: *826 sender: *4 required: - check_run @@ -128925,10 +128247,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -129637,10 +128959,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -130343,10 +129665,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -130515,7 +129837,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -130667,20 +129989,20 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: &837 + commit_oid: &832 description: The commit SHA of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - enterprise: *828 - installation: *829 - organization: *830 - ref: &838 + enterprise: *823 + installation: *824 + organization: *825 + ref: &833 description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event was triggered by the `sender` and this value will be empty. type: string - repository: *831 + repository: *826 sender: *4 required: - action @@ -130847,7 +130169,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -131088,12 +130410,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -131191,7 +130513,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -131376,12 +130698,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -131550,7 +130872,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -131727,12 +131049,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -131833,7 +131155,7 @@ webhooks: type: - object - 'null' - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -132022,9 +131344,9 @@ webhooks: type: - string - 'null' - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 ref: description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event @@ -132032,7 +131354,7 @@ webhooks: type: - string - 'null' - repository: *831 + repository: *826 sender: *4 required: - action @@ -132131,7 +131453,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -132278,12 +131600,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *837 - enterprise: *828 - installation: *829 - organization: *830 - ref: *838 - repository: *831 + commit_oid: *832 + enterprise: *823 + installation: *824 + organization: *825 + ref: *833 + repository: *826 sender: *4 required: - action @@ -132452,7 +131774,7 @@ webhooks: required: - login - id - dismissed_comment: *516 + dismissed_comment: *513 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -132604,10 +131926,10 @@ webhooks: - dismissed_reason - rule - tool - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -132867,10 +132189,10 @@ webhooks: - updated_at - author_association - body - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -132951,18 +132273,18 @@ webhooks: type: - string - 'null' - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 master_branch: description: The name of the repository's default branch (usually `main`). type: string - organization: *830 - pusher_type: &839 + organization: *825 + pusher_type: &834 description: The pusher type for the event. Can be either `user` or a deploy key. type: string - ref: &840 + ref: &835 description: The [`git ref`](https://docs.github.com/enterprise-cloud@latest//rest/git/refs#get-a-reference) resource. type: string @@ -132972,7 +132294,7 @@ webhooks: enum: - tag - branch - repository: *831 + repository: *826 sender: *4 required: - ref @@ -133055,9 +132377,9 @@ webhooks: enum: - created definition: *151 - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133142,9 +132464,9 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133222,9 +132544,9 @@ webhooks: enum: - promote_to_enterprise definition: *151 - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133302,9 +132624,9 @@ webhooks: enum: - updated definition: *151 - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -133381,10 +132703,10 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - repository: *831 - organization: *830 + enterprise: *823 + installation: *824 + repository: *826 + organization: *825 sender: *4 new_property_values: type: array @@ -133469,18 +132791,18 @@ webhooks: title: delete event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - pusher_type: *839 - ref: *840 + enterprise: *823 + installation: *824 + organization: *825 + pusher_type: *834 + ref: *835 ref_type: description: The type of Git ref object deleted in the repository. type: string enum: - tag - branch - repository: *831 + repository: *826 sender: *4 required: - ref @@ -133564,11 +132886,11 @@ webhooks: type: string enum: - auto_dismissed - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133652,11 +132974,11 @@ webhooks: type: string enum: - auto_reopened - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133740,11 +133062,11 @@ webhooks: type: string enum: - created - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133826,11 +133148,11 @@ webhooks: type: string enum: - dismissed - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133912,11 +133234,11 @@ webhooks: type: string enum: - fixed - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -133999,11 +133321,11 @@ webhooks: type: string enum: - reintroduced - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -134085,11 +133407,11 @@ webhooks: type: string enum: - reopened - alert: *574 - installation: *829 - organization: *830 - enterprise: *828 - repository: *831 + alert: *571 + installation: *824 + organization: *825 + enterprise: *823 + repository: *826 sender: *4 required: - action @@ -134166,9 +133488,9 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - key: &841 + enterprise: *823 + installation: *824 + key: &836 description: The [`deploy key`](https://docs.github.com/enterprise-cloud@latest//rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. type: object @@ -134206,8 +133528,8 @@ webhooks: - verified - created_at - read_only - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -134284,11 +133606,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - key: *841 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + key: *836 + organization: *825 + repository: *826 sender: *4 required: - action @@ -134860,12 +134182,12 @@ webhooks: - updated_at - statuses_url - repository_url - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: &845 + workflow: &840 title: Workflow type: - object @@ -135603,13 +134925,13 @@ webhooks: description: The URL to review the deployment protection rule. type: string format: uri - deployment: *580 + deployment: *577 pull_requests: type: array - items: *675 - repository: *831 - organization: *830 - installation: *829 + items: *672 + repository: *826 + organization: *825 + installation: *824 sender: *4 responses: '200': @@ -135680,7 +135002,7 @@ webhooks: type: string enum: - approved - approver: &842 + approver: &837 type: object properties: avatar_url: @@ -135723,11 +135045,11 @@ webhooks: type: string comment: type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - reviewers: &843 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + reviewers: &838 type: array items: type: object @@ -135808,7 +135130,7 @@ webhooks: sender: *4 since: type: string - workflow_job_run: &844 + workflow_job_run: &839 type: object properties: conclusion: @@ -136554,18 +135876,18 @@ webhooks: type: string enum: - rejected - approver: *842 + approver: *837 comment: type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - reviewers: *843 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + reviewers: *838 sender: *4 since: type: string - workflow_job_run: *844 + workflow_job_run: *839 workflow_job_runs: type: array items: @@ -137282,13 +136604,13 @@ webhooks: type: string enum: - requested - enterprise: *828 + enterprise: *823 environment: type: string - installation: *829 - organization: *830 - repository: *831 - requestor: &855 + installation: *824 + organization: *825 + repository: *826 + requestor: &850 title: User type: - object @@ -139231,12 +138553,12 @@ webhooks: - updated_at - deployment_url - repository_url - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Deployment Workflow Run type: @@ -139927,7 +139249,7 @@ webhooks: type: string enum: - answered - answer: &848 + answer: &843 type: object properties: author_association: @@ -140087,11 +139409,11 @@ webhooks: - created_at - updated_at - body - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140218,11 +139540,11 @@ webhooks: - from required: - category - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140305,11 +139627,11 @@ webhooks: type: string enum: - closed - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140391,7 +139713,7 @@ webhooks: type: string enum: - created - comment: &847 + comment: &842 type: object properties: author_association: @@ -140551,11 +139873,11 @@ webhooks: - updated_at - body - reactions - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140638,12 +139960,12 @@ webhooks: type: string enum: - deleted - comment: *847 - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + comment: *842 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140738,12 +140060,12 @@ webhooks: - from required: - body - comment: *847 - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + comment: *842 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140827,11 +140149,11 @@ webhooks: type: string enum: - created - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -140913,11 +140235,11 @@ webhooks: type: string enum: - deleted - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141017,11 +140339,11 @@ webhooks: type: string required: - from - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141103,10 +140425,10 @@ webhooks: type: string enum: - labeled - discussion: *846 - enterprise: *828 - installation: *829 - label: &849 + discussion: *841 + enterprise: *823 + installation: *824 + label: &844 title: Label type: object properties: @@ -141139,8 +140461,8 @@ webhooks: - color - default - description - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141223,11 +140545,11 @@ webhooks: type: string enum: - locked - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141309,11 +140631,11 @@ webhooks: type: string enum: - pinned - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141395,11 +140717,11 @@ webhooks: type: string enum: - reopened - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141484,16 +140806,16 @@ webhooks: changes: type: object properties: - new_discussion: *846 - new_repository: *831 + new_discussion: *841 + new_repository: *826 required: - new_discussion - new_repository - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141576,10 +140898,10 @@ webhooks: type: string enum: - unanswered - discussion: *846 - old_answer: *848 - organization: *830 - repository: *831 + discussion: *841 + old_answer: *843 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141661,12 +140983,12 @@ webhooks: type: string enum: - unlabeled - discussion: *846 - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141749,11 +141071,11 @@ webhooks: type: string enum: - unlocked - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141835,11 +141157,11 @@ webhooks: type: string enum: - unpinned - discussion: *846 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + discussion: *841 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -141908,7 +141230,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -141971,7 +141293,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142034,7 +141356,7 @@ webhooks: required: true content: application/json: - schema: *852 + schema: *847 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142097,7 +141419,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142160,7 +141482,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142226,7 +141548,7 @@ webhooks: required: true content: application/json: - schema: *852 + schema: *847 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142292,7 +141614,7 @@ webhooks: required: true content: application/json: - schema: *853 + schema: *848 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142358,7 +141680,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142424,7 +141746,7 @@ webhooks: required: true content: application/json: - schema: *854 + schema: *849 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142490,7 +141812,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142555,7 +141877,7 @@ webhooks: required: true content: application/json: - schema: *852 + schema: *847 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142620,7 +141942,7 @@ webhooks: required: true content: application/json: - schema: *853 + schema: *848 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142685,7 +142007,7 @@ webhooks: required: true content: application/json: - schema: *850 + schema: *845 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142750,7 +142072,7 @@ webhooks: required: true content: application/json: - schema: *854 + schema: *849 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142816,7 +142138,7 @@ webhooks: required: true content: application/json: - schema: *851 + schema: *846 responses: '200': description: Return a 200 status to indicate that the data was received @@ -142883,7 +142205,7 @@ webhooks: description: A user forks a repository. type: object properties: - enterprise: *828 + enterprise: *823 forkee: description: The created [`repository`](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#get-a-repository) resource. @@ -143561,9 +142883,9 @@ webhooks: type: integer watchers_count: type: integer - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - forkee @@ -143709,9 +143031,9 @@ webhooks: title: gollum event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pages: description: The pages that were updated. type: array @@ -143749,7 +143071,7 @@ webhooks: - action - sha - html_url - repository: *831 + repository: *826 sender: *4 required: - pages @@ -143825,10 +143147,10 @@ webhooks: type: string enum: - created - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: &856 + organization: *825 + repositories: &851 description: An array of repository objects that the installation can access. type: array @@ -143854,8 +143176,8 @@ webhooks: - name - full_name - private - repository: *831 - requester: *855 + repository: *826 + requester: *850 sender: *4 required: - action @@ -143930,11 +143252,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144011,11 +143333,11 @@ webhooks: type: string enum: - new_permissions_accepted - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144092,10 +143414,10 @@ webhooks: type: string enum: - added - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories_added: &857 + organization: *825 + repositories_added: &852 description: An array of repository objects, which were added to the installation. type: array @@ -144141,15 +143463,15 @@ webhooks: private: description: Whether the repository is private or public. type: boolean - repository: *831 - repository_selection: &858 + repository: *826 + repository_selection: &853 description: Describe whether all repositories have been selected or there's a selection involved type: string enum: - all - selected - requester: *855 + requester: *850 sender: *4 required: - action @@ -144228,10 +143550,10 @@ webhooks: type: string enum: - removed - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories_added: *857 + organization: *825 + repositories_added: *852 repositories_removed: description: An array of repository objects, which were removed from the installation. @@ -144258,9 +143580,9 @@ webhooks: - name - full_name - private - repository: *831 - repository_selection: *858 - requester: *855 + repository: *826 + repository_selection: *853 + requester: *850 sender: *4 required: - action @@ -144339,11 +143661,11 @@ webhooks: type: string enum: - suspend - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144526,10 +143848,10 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 target_type: type: string @@ -144608,11 +143930,11 @@ webhooks: type: string enum: - unsuspend - enterprise: *828 + enterprise: *823 installation: *20 - organization: *830 - repositories: *856 - repository: *831 + organization: *825 + repositories: *851 + repository: *826 requester: type: - 'null' @@ -144860,8 +144182,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. @@ -145678,8 +145000,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 state: description: State of the issue; either 'open' or 'closed' type: string @@ -146040,8 +145362,8 @@ webhooks: - state - locked - assignee - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -146121,7 +145443,7 @@ webhooks: type: string enum: - deleted - comment: &859 + comment: &854 title: issue comment description: The [comment](https://docs.github.com/enterprise-cloud@latest//rest/issues/comments#get-an-issue-comment) itself. @@ -146288,8 +145610,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. @@ -147102,8 +146424,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 state: description: State of the issue; either 'open' or 'closed' type: string @@ -147466,8 +146788,8 @@ webhooks: - state - locked - assignee - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -147547,7 +146869,7 @@ webhooks: type: string enum: - edited - changes: &883 + changes: &878 description: The changes to the comment. type: object properties: @@ -147559,9 +146881,9 @@ webhooks: type: string required: - from - comment: *859 - enterprise: *828 - installation: *829 + comment: *854 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) the comment belongs to. @@ -148377,8 +147699,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 state: description: State of the issue; either 'open' or 'closed' type: string @@ -148739,8 +148061,8 @@ webhooks: - state - locked - assignee - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -148830,9 +148152,9 @@ webhooks: type: number blocking_issue: *213 blocking_issue_repo: *76 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -148921,9 +148243,9 @@ webhooks: type: number blocking_issue: *213 blocking_issue_repo: *76 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -149011,9 +148333,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -149102,9 +148424,9 @@ webhooks: description: The ID of the blocking issue. type: number blocking_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -149184,10 +148506,10 @@ webhooks: type: string enum: - assigned - assignee: *855 - enterprise: *828 - installation: *829 - issue: &862 + assignee: *850 + enterprise: *823 + installation: *824 + issue: &857 title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself. @@ -149999,11 +149321,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -150123,8 +149445,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -150204,8 +149526,8 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself. @@ -151022,11 +150344,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -151289,8 +150611,8 @@ webhooks: required: - state - closed_at - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -151369,8 +150691,8 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -152178,11 +151500,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -152301,8 +151623,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -152381,8 +151703,8 @@ webhooks: type: string enum: - demilestoned - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -153213,11 +152535,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -153315,7 +152637,7 @@ webhooks: format: uri user_view_type: type: string - milestone: &860 + milestone: &855 title: Milestone description: A collection of related issues and pull requests. type: object @@ -153458,8 +152780,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -153558,8 +152880,8 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -154371,11 +153693,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -154495,9 +153817,9 @@ webhooks: - active_lock_reason - body - reactions - label: *849 - organization: *830 - repository: *831 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -154577,8 +153899,8 @@ webhooks: type: string enum: - labeled - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -155389,11 +154711,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -155513,9 +154835,9 @@ webhooks: - active_lock_reason - body - reactions - label: *849 - organization: *830 - repository: *831 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -155595,8 +154917,8 @@ webhooks: type: string enum: - locked - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -156432,11 +155754,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -156533,8 +155855,8 @@ webhooks: format: uri user_view_type: type: string - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -156613,8 +155935,8 @@ webhooks: type: string enum: - milestoned - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -157444,11 +156766,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -157545,9 +156867,9 @@ webhooks: format: uri user_view_type: type: string - milestone: *860 - organization: *830 - repository: *831 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -158439,11 +157761,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -159020,8 +158342,8 @@ webhooks: required: - old_issue - old_repository - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -159833,11 +159155,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -159956,8 +159278,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -160037,9 +159359,9 @@ webhooks: type: string enum: - pinned - enterprise: *828 - installation: *829 - issue: &861 + enterprise: *823 + installation: *824 + issue: &856 title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) itself. @@ -160845,11 +160167,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -160968,8 +160290,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -161048,8 +160370,8 @@ webhooks: type: string enum: - reopened - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -161883,11 +161205,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -161985,8 +161307,8 @@ webhooks: user_view_type: type: string type: *358 - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -162875,11 +162197,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -163478,11 +162800,11 @@ webhooks: required: - new_issue - new_repository - enterprise: *828 - installation: *829 - issue: *861 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *856 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163562,12 +162884,12 @@ webhooks: type: string enum: - typed - enterprise: *828 - installation: *829 - issue: *862 + enterprise: *823 + installation: *824 + issue: *857 type: *358 - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163648,7 +162970,7 @@ webhooks: type: string enum: - unassigned - assignee: &886 + assignee: &881 title: User type: - object @@ -163720,11 +163042,11 @@ webhooks: required: - login - id - enterprise: *828 - installation: *829 - issue: *862 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *857 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163803,12 +163125,12 @@ webhooks: type: string enum: - unlabeled - enterprise: *828 - installation: *829 - issue: *862 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *857 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -163888,8 +163210,8 @@ webhooks: type: string enum: - unlocked - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-cloud@latest//rest/issues/issues#get-an-issue) @@ -164723,11 +164045,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *767 - issue_dependencies_summary: *768 + sub_issues_summary: *764 + issue_dependencies_summary: *765 issue_field_values: type: array - items: *769 + items: *766 state: description: State of the issue; either 'open' or 'closed' type: string @@ -164824,8 +164146,8 @@ webhooks: format: uri user_view_type: type: string - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -164905,11 +164227,11 @@ webhooks: type: string enum: - unpinned - enterprise: *828 - installation: *829 - issue: *861 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + issue: *856 + organization: *825 + repository: *826 sender: *4 required: - action @@ -164988,12 +164310,12 @@ webhooks: type: string enum: - untyped - enterprise: *828 - installation: *829 - issue: *862 + enterprise: *823 + installation: *824 + issue: *857 type: *358 - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165073,11 +164395,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165155,11 +164477,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165269,11 +164591,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - label: *849 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + label: *844 + organization: *825 + repository: *826 sender: *4 required: - action @@ -165355,9 +164677,9 @@ webhooks: - cancelled effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: &863 + enterprise: *823 + installation: *824 + marketplace_purchase: &858 title: Marketplace Purchase type: object required: @@ -165445,8 +164767,8 @@ webhooks: type: integer unit_count: type: integer - organization: *830 - previous_marketplace_purchase: &864 + organization: *825 + previous_marketplace_purchase: &859 title: Marketplace Purchase type: object properties: @@ -165530,7 +164852,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *831 + repository: *826 sender: *4 required: - action @@ -165610,10 +164932,10 @@ webhooks: - changed effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: *863 - organization: *830 + enterprise: *823 + installation: *824 + marketplace_purchase: *858 + organization: *825 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -165701,7 +165023,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *831 + repository: *826 sender: *4 required: - action @@ -165783,10 +165105,10 @@ webhooks: - pending_change effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: *863 - organization: *830 + enterprise: *823 + installation: *824 + marketplace_purchase: *858 + organization: *825 previous_marketplace_purchase: title: Marketplace Purchase type: object @@ -165872,7 +165194,7 @@ webhooks: - on_free_trial - free_trial_ends_on - plan - repository: *831 + repository: *826 sender: *4 required: - action @@ -165953,8 +165275,8 @@ webhooks: - pending_change_cancelled effective_date: type: string - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 marketplace_purchase: title: Marketplace Purchase type: object @@ -166040,9 +165362,9 @@ webhooks: type: integer unit_count: type: integer - organization: *830 - previous_marketplace_purchase: *864 - repository: *831 + organization: *825 + previous_marketplace_purchase: *859 + repository: *826 sender: *4 required: - action @@ -166122,12 +165444,12 @@ webhooks: - purchased effective_date: type: string - enterprise: *828 - installation: *829 - marketplace_purchase: *863 - organization: *830 - previous_marketplace_purchase: *864 - repository: *831 + enterprise: *823 + installation: *824 + marketplace_purchase: *858 + organization: *825 + previous_marketplace_purchase: *859 + repository: *826 sender: *4 required: - action @@ -166229,11 +165551,11 @@ webhooks: type: string required: - to - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 sender: *4 required: - action @@ -166335,11 +165657,11 @@ webhooks: type: - string - 'null' - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 sender: *4 required: - action @@ -166418,11 +165740,11 @@ webhooks: type: string enum: - removed - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 sender: *4 required: - action @@ -166500,11 +165822,11 @@ webhooks: type: string enum: - added - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 scope: description: The scope of the membership. Currently, can only be `team`. @@ -166582,7 +165904,7 @@ webhooks: required: - login - id - team: &865 + team: &860 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -166812,11 +166134,11 @@ webhooks: type: string enum: - removed - enterprise: *828 - installation: *829 - member: *855 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + member: *850 + organization: *825 + repository: *826 scope: description: The scope of the membership. Currently, can only be `team`. @@ -166895,7 +166217,7 @@ webhooks: required: - login - id - team: *865 + team: *860 required: - action - scope @@ -166977,8 +166299,8 @@ webhooks: type: string enum: - checks_requested - installation: *829 - merge_group: &866 + installation: *824 + merge_group: &861 type: object title: Merge Group description: A group of pull requests that the merge queue has grouped @@ -166997,15 +166319,15 @@ webhooks: description: The full ref of the branch the merge group will be merged into. type: string - head_commit: *508 + head_commit: *505 required: - head_sha - head_ref - base_sha - base_ref - head_commit - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167091,10 +166413,10 @@ webhooks: - merged - invalidated - dequeued - installation: *829 - merge_group: *866 - organization: *830 - repository: *831 + installation: *824 + merge_group: *861 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167167,7 +166489,7 @@ webhooks: type: string enum: - deleted - enterprise: *828 + enterprise: *823 hook: description: 'The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, @@ -167276,12 +166598,12 @@ webhooks: hook_id: description: The id of the modified webhook. type: integer - installation: *829 - organization: *830 + installation: *824 + organization: *825 repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -167361,11 +166683,11 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 - milestone: *860 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167444,9 +166766,9 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - milestone: &867 + enterprise: *823 + installation: *824 + milestone: &862 title: Milestone description: A collection of related issues and pull requests. type: object @@ -167588,8 +166910,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167668,11 +166990,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - milestone: *860 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167782,11 +167104,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - milestone: *860 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *855 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167866,11 +167188,11 @@ webhooks: type: string enum: - opened - enterprise: *828 - installation: *829 - milestone: *867 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + milestone: *862 + organization: *825 + repository: *826 sender: *4 required: - action @@ -167949,11 +167271,11 @@ webhooks: type: string enum: - blocked - blocked_user: *855 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + blocked_user: *850 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168032,11 +167354,11 @@ webhooks: type: string enum: - unblocked - blocked_user: *855 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + blocked_user: *850 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168112,7 +167434,7 @@ webhooks: enum: - created definition: *145 - enterprise: *828 + enterprise: *823 sender: *4 required: - action @@ -168192,8 +167514,8 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 sender: *4 required: - action @@ -168266,8 +167588,8 @@ webhooks: enum: - updated definition: *145 - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 sender: *4 required: - action @@ -168339,9 +167661,9 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 new_property_values: type: array @@ -168429,9 +167751,9 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - membership: &868 + enterprise: *823 + installation: *824 + membership: &863 title: Membership description: The membership between the user and the organization. Not present when the action is `member_invited`. @@ -168541,8 +167863,8 @@ webhooks: - role - organization_url - user - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168620,11 +167942,11 @@ webhooks: type: string enum: - member_added - enterprise: *828 - installation: *829 - membership: *868 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + membership: *863 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168703,8 +168025,8 @@ webhooks: type: string enum: - member_invited - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 invitation: description: The invitation for the user or email if the action is `member_invited`. @@ -168826,10 +168148,10 @@ webhooks: - inviter - team_count - invitation_teams_url - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 - user: *855 + user: *850 required: - action - invitation @@ -168907,11 +168229,11 @@ webhooks: type: string enum: - member_removed - enterprise: *828 - installation: *829 - membership: *868 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + membership: *863 + organization: *825 + repository: *826 sender: *4 required: - action @@ -168998,11 +168320,11 @@ webhooks: properties: from: type: string - enterprise: *828 - installation: *829 - membership: *868 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + membership: *863 + organization: *825 + repository: *826 sender: *4 required: - action @@ -169078,9 +168400,9 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 package: description: Information about the package. type: object @@ -169603,7 +168925,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: &869 + items: &864 title: Ruby Gems metadata type: object properties: @@ -169700,7 +169022,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -169776,9 +169098,9 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 package: description: Information about the package. type: object @@ -170140,7 +169462,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *869 + items: *864 source_url: type: string format: uri @@ -170211,7 +169533,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -170392,12 +169714,12 @@ webhooks: - duration - created_at - updated_at - enterprise: *828 + enterprise: *823 id: type: integer - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - id @@ -170474,7 +169796,7 @@ webhooks: type: string enum: - approved - personal_access_token_request: &870 + personal_access_token_request: &865 title: Personal Access Token Request description: Details of a Personal Access Token Request. type: object @@ -170624,10 +169946,10 @@ webhooks: - token_expired - token_expires_at - token_last_used_at - enterprise: *828 - organization: *830 + enterprise: *823 + organization: *825 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170704,11 +170026,11 @@ webhooks: type: string enum: - cancelled - personal_access_token_request: *870 - enterprise: *828 - organization: *830 + personal_access_token_request: *865 + enterprise: *823 + organization: *825 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170784,11 +170106,11 @@ webhooks: type: string enum: - created - personal_access_token_request: *870 - enterprise: *828 - organization: *830 + personal_access_token_request: *865 + enterprise: *823 + organization: *825 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170863,11 +170185,11 @@ webhooks: type: string enum: - denied - personal_access_token_request: *870 - organization: *830 - enterprise: *828 + personal_access_token_request: *865 + organization: *825 + enterprise: *823 sender: *4 - installation: *829 + installation: *824 required: - action - personal_access_token_request @@ -170972,7 +170294,7 @@ webhooks: id: description: Unique identifier of the webhook. type: integer - last_response: *871 + last_response: *866 name: description: The type of webhook. The only valid value is 'web'. type: string @@ -171004,8 +170326,8 @@ webhooks: hook_id: description: The ID of the webhook that triggered the ping. type: integer - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 zen: description: Random string of GitHub zen. @@ -171250,10 +170572,10 @@ webhooks: - from required: - note - enterprise: *828 - installation: *829 - organization: *830 - project_card: &872 + enterprise: *823 + installation: *824 + organization: *825 + project_card: &867 title: Project Card type: object properties: @@ -171376,7 +170698,7 @@ webhooks: - creator - created_at - updated_at - repository: *831 + repository: *826 sender: *4 required: - action @@ -171457,11 +170779,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - project_card: *872 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_card: *867 + repository: *826 sender: *4 required: - action @@ -171541,9 +170863,9 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 project_card: title: Project Card type: object @@ -171673,7 +170995,7 @@ webhooks: repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -171767,11 +171089,11 @@ webhooks: - from required: - note - enterprise: *828 - installation: *829 - organization: *830 - project_card: *872 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_card: *867 + repository: *826 sender: *4 required: - action @@ -171865,9 +171187,9 @@ webhooks: - from required: - column_id - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 project_card: allOf: - title: Project Card @@ -172064,7 +171386,7 @@ webhooks: type: string required: - after_id - repository: *831 + repository: *826 sender: *4 required: - action @@ -172144,10 +171466,10 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 - organization: *830 - project: &874 + enterprise: *823 + installation: *824 + organization: *825 + project: &869 title: Project type: object properties: @@ -172274,7 +171596,7 @@ webhooks: - creator - created_at - updated_at - repository: *831 + repository: *826 sender: *4 required: - action @@ -172354,10 +171676,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - project_column: &873 + enterprise: *823 + installation: *824 + organization: *825 + project_column: &868 title: Project Column type: object properties: @@ -172397,7 +171719,7 @@ webhooks: - name - created_at - updated_at - repository: *831 + repository: *826 sender: *4 required: - action @@ -172476,14 +171798,14 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - project_column: *873 + enterprise: *823 + installation: *824 + organization: *825 + project_column: *868 repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -172572,11 +171894,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - project_column: *873 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_column: *868 + repository: *826 sender: *4 required: - action @@ -172656,11 +171978,11 @@ webhooks: type: string enum: - moved - enterprise: *828 - installation: *829 - organization: *830 - project_column: *873 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project_column: *868 + repository: *826 sender: *4 required: - action @@ -172740,11 +172062,11 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - project: *874 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 + repository: *826 sender: *4 required: - action @@ -172824,14 +172146,14 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - project: *874 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 repository: anyOf: - type: 'null' - - *831 + - *826 sender: *4 required: - action @@ -172932,11 +172254,11 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - project: *874 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 + repository: *826 sender: *4 required: - action @@ -173015,11 +172337,11 @@ webhooks: type: string enum: - reopened - enterprise: *828 - installation: *829 - organization: *830 - project: *874 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + project: *869 + repository: *826 sender: *4 required: - action @@ -173100,8 +172422,8 @@ webhooks: type: string enum: - closed - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173183,8 +172505,8 @@ webhooks: type: string enum: - created - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173266,8 +172588,8 @@ webhooks: type: string enum: - deleted - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173389,8 +172711,8 @@ webhooks: type: string to: type: string - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -173474,7 +172796,7 @@ webhooks: type: string enum: - archived - changes: &878 + changes: &873 type: object properties: archived_at: @@ -173490,9 +172812,9 @@ webhooks: - string - 'null' format: date-time - installation: *829 - organization: *830 - projects_v2_item: &875 + installation: *824 + organization: *825 + projects_v2_item: &870 title: Projects v2 Item description: An item belonging to a project type: object @@ -173632,9 +172954,9 @@ webhooks: - 'null' to: type: string - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -173716,9 +173038,9 @@ webhooks: type: string enum: - created - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -173799,9 +173121,9 @@ webhooks: type: string enum: - deleted - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -173906,7 +173228,7 @@ webhooks: oneOf: - type: string - type: integer - - &876 + - &871 title: Projects v2 Single Select Option description: An option for a single select field type: object @@ -173930,7 +173252,7 @@ webhooks: required: - id - name - - &877 + - &872 title: Projects v2 Iteration Setting description: An iteration setting for an iteration field type: object @@ -173970,8 +173292,8 @@ webhooks: oneOf: - type: string - type: integer - - *876 - - *877 + - *871 + - *872 type: - 'null' - string @@ -173994,9 +173316,9 @@ webhooks: - 'null' required: - body - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -174093,9 +173415,9 @@ webhooks: type: - string - 'null' - installation: *829 - organization: *830 - projects_v2_item: *875 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -174178,10 +173500,10 @@ webhooks: type: string enum: - restored - changes: *878 - installation: *829 - organization: *830 - projects_v2_item: *875 + changes: *873 + installation: *824 + organization: *825 + projects_v2_item: *870 sender: *4 required: - action @@ -174263,8 +173585,8 @@ webhooks: type: string enum: - reopened - installation: *829 - organization: *830 + installation: *824 + organization: *825 projects_v2: *389 sender: *4 required: @@ -174346,9 +173668,9 @@ webhooks: type: string enum: - created - installation: *829 - organization: *830 - projects_v2_status_update: *879 + installation: *824 + organization: *825 + projects_v2_status_update: *874 sender: *4 required: - action @@ -174429,9 +173751,9 @@ webhooks: type: string enum: - deleted - installation: *829 - organization: *830 - projects_v2_status_update: *879 + installation: *824 + organization: *825 + projects_v2_status_update: *874 sender: *4 required: - action @@ -174577,9 +173899,9 @@ webhooks: - string - 'null' format: date - installation: *829 - organization: *830 - projects_v2_status_update: *879 + installation: *824 + organization: *825 + projects_v2_status_update: *874 sender: *4 required: - action @@ -174650,10 +173972,10 @@ webhooks: title: public event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - repository @@ -174730,13 +174052,13 @@ webhooks: type: string enum: - assigned - assignee: *855 - enterprise: *828 - installation: *829 - number: &880 + assignee: *850 + enterprise: *823 + installation: *824 + number: &875 description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -177085,7 +176407,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -177167,11 +176489,11 @@ webhooks: type: string enum: - auto_merge_disabled - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -179513,7 +178835,7 @@ webhooks: - draft reason: type: string - repository: *831 + repository: *826 sender: *4 required: - action @@ -179595,11 +178917,11 @@ webhooks: type: string enum: - auto_merge_enabled - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -181941,7 +181263,7 @@ webhooks: - draft reason: type: string - repository: *831 + repository: *826 sender: *4 required: - action @@ -182023,13 +181345,13 @@ webhooks: type: string enum: - closed - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: &881 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: &876 allOf: - - *675 + - *672 - type: object properties: allow_auto_merge: @@ -182091,7 +181413,7 @@ webhooks: Please use `squash_merge_commit_title` instead.** type: boolean default: false - repository: *831 + repository: *826 sender: *4 required: - action @@ -182172,12 +181494,12 @@ webhooks: type: string enum: - converted_to_draft - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -182257,11 +181579,11 @@ webhooks: type: string enum: - demilestoned - enterprise: *828 + enterprise: *823 milestone: *392 - number: *880 - organization: *830 - pull_request: &882 + number: *875 + organization: *825 + pull_request: &877 title: Pull Request type: object properties: @@ -184588,7 +183910,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -184667,11 +183989,11 @@ webhooks: type: string enum: - dequeued - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -187017,7 +186339,7 @@ webhooks: - BRANCH_PROTECTIONS - GIT_TREE_INVALID - INVALID_MERGE_COMMIT - repository: *831 + repository: *826 sender: *4 required: - action @@ -187141,12 +186463,12 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -187226,11 +186548,11 @@ webhooks: type: string enum: - enqueued - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -189561,7 +188883,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -189641,11 +188963,11 @@ webhooks: type: string enum: - labeled - enterprise: *828 - installation: *829 - label: *849 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + label: *844 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -191993,7 +191315,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -192074,10 +191396,10 @@ webhooks: type: string enum: - locked - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -194423,7 +193745,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -194503,12 +193825,12 @@ webhooks: type: string enum: - milestoned - enterprise: *828 + enterprise: *823 milestone: *392 - number: *880 - organization: *830 - pull_request: *882 - repository: *831 + number: *875 + organization: *825 + pull_request: *877 + repository: *826 sender: *4 required: - action @@ -194587,12 +193909,12 @@ webhooks: type: string enum: - opened - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -194673,12 +193995,12 @@ webhooks: type: string enum: - ready_for_review - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -194758,12 +194080,12 @@ webhooks: type: string enum: - reopened - enterprise: *828 - installation: *829 - number: *880 - organization: *830 - pull_request: *881 - repository: *831 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 + pull_request: *876 + repository: *826 sender: *4 required: - action @@ -195138,9 +194460,9 @@ webhooks: - start_side - side - reactions - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: type: object properties: @@ -197370,7 +196692,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *831 + repository: *826 sender: *4 required: - action @@ -197450,7 +196772,7 @@ webhooks: type: string enum: - deleted - comment: &884 + comment: &879 title: Pull Request Review Comment description: The [comment](https://docs.github.com/enterprise-cloud@latest//rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. @@ -197743,9 +197065,9 @@ webhooks: - start_side - side - reactions - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: type: object properties: @@ -199963,7 +199285,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *831 + repository: *826 sender: *4 required: - action @@ -200043,11 +199365,11 @@ webhooks: type: string enum: - edited - changes: *883 - comment: *884 - enterprise: *828 - installation: *829 - organization: *830 + changes: *878 + comment: *879 + enterprise: *823 + installation: *824 + organization: *825 pull_request: type: object properties: @@ -202268,7 +201590,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *831 + repository: *826 sender: *4 required: - action @@ -202349,9 +201671,9 @@ webhooks: type: string enum: - dismissed - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -204584,7 +203906,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 + repository: *826 review: description: The review that was affected. type: object @@ -204835,9 +204157,9 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -206951,8 +206273,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 - review: &885 + repository: *826 + review: &880 description: The review that was affected. type: object properties: @@ -207190,12 +206512,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -209542,7 +208864,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_reviewer: title: User type: @@ -209628,12 +208950,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -211987,7 +211309,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_team: title: Team description: Groups of organization members that gives permissions @@ -212182,12 +211504,12 @@ webhooks: type: string enum: - review_requested - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -214536,7 +213858,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_reviewer: title: User type: @@ -214623,12 +213945,12 @@ webhooks: type: string enum: - review_requested - enterprise: *828 - installation: *829 + enterprise: *823 + installation: *824 number: description: The pull request number. type: integer - organization: *830 + organization: *825 pull_request: title: Pull Request type: object @@ -216968,7 +216290,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 requested_team: title: Team description: Groups of organization members that gives permissions @@ -217152,9 +216474,9 @@ webhooks: type: string enum: - submitted - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -219390,8 +218712,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 - review: *885 + repository: *826 + review: *880 sender: *4 required: - action @@ -219471,9 +218793,9 @@ webhooks: type: string enum: - resolved - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -221604,7 +220926,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 + repository: *826 sender: *4 thread: type: object @@ -222001,9 +221323,9 @@ webhooks: type: string enum: - unresolved - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 pull_request: title: Simple Pull Request type: object @@ -224117,7 +223439,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *831 + repository: *826 sender: *4 thread: type: object @@ -224516,10 +223838,10 @@ webhooks: type: string before: type: string - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -226854,7 +226176,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -226936,11 +226258,11 @@ webhooks: type: string enum: - unassigned - assignee: *886 - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + assignee: *881 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -229290,7 +228612,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -229369,11 +228691,11 @@ webhooks: type: string enum: - unlabeled - enterprise: *828 - installation: *829 - label: *849 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + label: *844 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -231712,7 +231034,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -231793,10 +231115,10 @@ webhooks: type: string enum: - unlocked - enterprise: *828 - installation: *829 - number: *880 - organization: *830 + enterprise: *823 + installation: *824 + number: *875 + organization: *825 pull_request: title: Pull Request type: object @@ -234125,7 +233447,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *831 + repository: *826 sender: *4 required: - action @@ -234328,7 +233650,7 @@ webhooks: deleted: description: Whether this push deleted the `ref`. type: boolean - enterprise: *828 + enterprise: *823 forced: description: Whether this push was a force push of the `ref`. type: boolean @@ -234423,8 +233745,8 @@ webhooks: - url - author - committer - installation: *829 - organization: *830 + installation: *824 + organization: *825 pusher: title: Committer description: Metaproperties for Git author/committer information. @@ -235012,9 +234334,9 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 registry_package: type: object properties: @@ -235491,7 +234813,7 @@ webhooks: type: string rubygems_metadata: type: array - items: *869 + items: *864 summary: type: string tag_name: @@ -235547,7 +234869,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -235625,9 +234947,9 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 registry_package: type: object properties: @@ -235939,7 +235261,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *869 + items: *864 summary: type: string tag_name: @@ -235989,7 +235311,7 @@ webhooks: - owner - package_version - registry - repository: *831 + repository: *826 sender: *4 required: - action @@ -236066,10 +235388,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - release: &887 + enterprise: *823 + installation: *824 + organization: *825 + release: &882 title: Release description: The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object. @@ -236400,7 +235722,7 @@ webhooks: - updated_at - zipball_url - body - repository: *831 + repository: *826 sender: *4 required: - action @@ -236477,11 +235799,11 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - release: *887 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *882 + repository: *826 sender: *4 required: - action @@ -236598,11 +235920,11 @@ webhooks: type: boolean required: - to - enterprise: *828 - installation: *829 - organization: *830 - release: *887 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *882 + repository: *826 sender: *4 required: - action @@ -236680,9 +236002,9 @@ webhooks: type: string enum: - prereleased - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 release: title: Release description: The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) @@ -237018,7 +236340,7 @@ webhooks: - string - 'null' format: uri - repository: *831 + repository: *826 sender: *4 required: - action @@ -237094,10 +236416,10 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 - release: &888 + enterprise: *823 + installation: *824 + organization: *825 + release: &883 title: Release description: The [release](https://docs.github.com/enterprise-cloud@latest//rest/releases/releases/#get-a-release) object. @@ -237430,7 +236752,7 @@ webhooks: - string - 'null' format: uri - repository: *831 + repository: *826 sender: *4 required: - action @@ -237506,11 +236828,11 @@ webhooks: type: string enum: - released - enterprise: *828 - installation: *829 - organization: *830 - release: *887 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *882 + repository: *826 sender: *4 required: - action @@ -237586,11 +236908,11 @@ webhooks: type: string enum: - unpublished - enterprise: *828 - installation: *829 - organization: *830 - release: *888 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + release: *883 + repository: *826 sender: *4 required: - action @@ -237666,11 +236988,11 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - repository_advisory: *727 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + repository_advisory: *724 sender: *4 required: - action @@ -237746,11 +237068,11 @@ webhooks: type: string enum: - reported - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - repository_advisory: *727 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + repository_advisory: *724 sender: *4 required: - action @@ -237826,10 +237148,10 @@ webhooks: type: string enum: - archived - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -237906,10 +237228,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -237987,10 +237309,10 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238075,10 +237397,10 @@ webhooks: additionalProperties: true description: The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238193,10 +237515,10 @@ webhooks: - 'null' items: type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238268,10 +237590,10 @@ webhooks: title: repository_import event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 status: type: string @@ -238352,10 +237674,10 @@ webhooks: type: string enum: - privatized - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238432,10 +237754,10 @@ webhooks: type: string enum: - publicized - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238529,10 +237851,10 @@ webhooks: - name required: - repository - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -238612,10 +237934,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 repository_ruleset: *185 sender: *4 required: @@ -238694,10 +238016,10 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 repository_ruleset: *185 sender: *4 required: @@ -238776,10 +238098,10 @@ webhooks: type: string enum: - edited - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 repository_ruleset: *185 changes: type: object @@ -238841,16 +238163,16 @@ webhooks: properties: added: type: array - items: *695 + items: *692 deleted: type: array - items: *695 + items: *692 updated: type: array items: type: object properties: - rule: *695 + rule: *692 changes: type: object properties: @@ -239087,10 +238409,10 @@ webhooks: - from required: - owner - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239168,10 +238490,10 @@ webhooks: type: string enum: - unarchived - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239249,7 +238571,7 @@ webhooks: type: string enum: - create - alert: &889 + alert: &884 title: Repository Vulnerability Alert Alert description: The security alert of the vulnerable dependency. type: object @@ -239373,10 +238695,10 @@ webhooks: type: string enum: - open - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239586,10 +238908,10 @@ webhooks: type: string enum: - dismissed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239667,11 +238989,11 @@ webhooks: type: string enum: - reopen - alert: *889 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *884 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239873,10 +239195,10 @@ webhooks: enum: - fixed - open - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -239954,7 +239276,7 @@ webhooks: type: string enum: - assigned - alert: &890 + alert: &885 type: object properties: number: *124 @@ -240069,10 +239391,10 @@ webhooks: - type: 'null' - *4 assignee: *4 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240150,11 +239472,11 @@ webhooks: type: string enum: - created - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240235,11 +239557,11 @@ webhooks: type: string enum: - created - alert: *890 - installation: *829 - location: *891 - organization: *830 - repository: *831 + alert: *885 + installation: *824 + location: *886 + organization: *825 + repository: *826 sender: *4 required: - location @@ -240477,11 +239799,11 @@ webhooks: type: string enum: - publicly_leaked - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240559,11 +239881,11 @@ webhooks: type: string enum: - reopened - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240641,11 +239963,11 @@ webhooks: type: string enum: - resolved - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240723,12 +240045,12 @@ webhooks: type: string enum: - unassigned - alert: *890 + alert: *885 assignee: *4 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240806,11 +240128,11 @@ webhooks: type: string enum: - validated - alert: *890 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + alert: *885 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -240940,10 +240262,10 @@ webhooks: - organization - enterprise - - repository: *831 - enterprise: *828 - installation: *829 - organization: *830 + repository: *826 + enterprise: *823 + installation: *824 + organization: *825 sender: *4 required: - action @@ -241021,11 +240343,11 @@ webhooks: type: string enum: - published - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - security_advisory: &892 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + security_advisory: &887 description: The details of the security advisory, including summary, description, and severity. type: object @@ -241211,11 +240533,11 @@ webhooks: type: string enum: - updated - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 - security_advisory: *892 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 + security_advisory: *887 sender: *4 required: - action @@ -241288,10 +240610,10 @@ webhooks: type: string enum: - withdrawn - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 security_advisory: description: The details of the security advisory, including summary, description, and severity. @@ -241478,10 +240800,10 @@ webhooks: type: object properties: security_and_analysis: *402 - enterprise: *828 - installation: *829 - organization: *830 - repository: *446 + enterprise: *823 + installation: *824 + organization: *825 + repository: *443 sender: *4 required: - changes @@ -241559,12 +240881,12 @@ webhooks: type: string enum: - cancelled - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: &893 + sponsorship: &888 type: object properties: created_at: @@ -241869,12 +241191,12 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - sponsorship @@ -241962,12 +241284,12 @@ webhooks: type: string required: - from - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - changes @@ -242044,17 +241366,17 @@ webhooks: type: string enum: - pending_cancellation - effective_date: &894 + effective_date: &889 description: The `pending_cancellation` and `pending_tier_change` event types will include the date the cancellation or tier change will take effect. type: string - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - sponsorship @@ -242128,7 +241450,7 @@ webhooks: type: string enum: - pending_tier_change - changes: &895 + changes: &890 type: object properties: tier: @@ -242172,13 +241494,13 @@ webhooks: - from required: - tier - effective_date: *894 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + effective_date: *889 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - changes @@ -242255,13 +241577,13 @@ webhooks: type: string enum: - tier_changed - changes: *895 - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + changes: *890 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - sponsorship: *893 + sponsorship: *888 required: - action - changes @@ -242335,10 +241657,10 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -242422,10 +241744,10 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 starred_at: description: 'The time the star was created. This is a timestamp @@ -242859,15 +242181,15 @@ webhooks: type: - string - 'null' - enterprise: *828 + enterprise: *823 id: description: The unique identifier of the status. type: integer - installation: *829 + installation: *824 name: type: string - organization: *830 - repository: *831 + organization: *825 + repository: *826 sender: *4 sha: description: The Commit SHA. @@ -242983,9 +242305,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243075,9 +242397,9 @@ webhooks: description: The ID of the sub-issue. type: number sub_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243167,9 +242489,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243259,9 +242581,9 @@ webhooks: description: The ID of the parent issue. type: number parent_issue: *213 - installation: *829 - organization: *830 - repository: *831 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -243338,12 +242660,12 @@ webhooks: title: team_add event type: object properties: - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - team: &896 + team: &891 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -243573,9 +242895,9 @@ webhooks: type: string enum: - added_to_repository - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -244045,7 +243367,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -244121,9 +243443,9 @@ webhooks: type: string enum: - created - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -244593,7 +243915,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -244670,9 +243992,9 @@ webhooks: type: string enum: - deleted - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -245142,7 +244464,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -245286,9 +244608,9 @@ webhooks: - from required: - permissions - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -245758,7 +245080,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - changes @@ -245836,9 +245158,9 @@ webhooks: type: string enum: - removed_from_repository - enterprise: *828 - installation: *829 - organization: *830 + enterprise: *823 + installation: *824 + organization: *825 repository: title: Repository description: A git repository @@ -246308,7 +245630,7 @@ webhooks: - topics - visibility sender: *4 - team: *896 + team: *891 required: - action - team @@ -246384,10 +245706,10 @@ webhooks: type: string enum: - started - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 required: - action @@ -246460,17 +245782,17 @@ webhooks: title: workflow_dispatch event type: object properties: - enterprise: *828 + enterprise: *823 inputs: type: - object - 'null' additionalProperties: true - installation: *829 - organization: *830 + installation: *824 + organization: *825 ref: type: string - repository: *831 + repository: *826 sender: *4 workflow: type: string @@ -246552,10 +245874,10 @@ webhooks: type: string enum: - completed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: allOf: @@ -246811,7 +246133,7 @@ webhooks: type: string required: - conclusion - deployment: *580 + deployment: *577 required: - action - repository @@ -246890,10 +246212,10 @@ webhooks: type: string enum: - in_progress - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: allOf: @@ -247175,7 +246497,7 @@ webhooks: required: - status - steps - deployment: *580 + deployment: *577 required: - action - repository @@ -247254,10 +246576,10 @@ webhooks: type: string enum: - queued - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: type: object @@ -247403,7 +246725,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *580 + deployment: *577 required: - action - repository @@ -247482,10 +246804,10 @@ webhooks: type: string enum: - waiting - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 workflow_job: type: object @@ -247632,7 +246954,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *580 + deployment: *577 required: - action - repository @@ -247712,12 +247034,12 @@ webhooks: type: string enum: - completed - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Workflow Run type: object @@ -248736,12 +248058,12 @@ webhooks: type: string enum: - in_progress - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Workflow Run type: object @@ -249745,12 +249067,12 @@ webhooks: type: string enum: - requested - enterprise: *828 - installation: *829 - organization: *830 - repository: *831 + enterprise: *823 + installation: *824 + organization: *825 + repository: *826 sender: *4 - workflow: *845 + workflow: *840 workflow_run: title: Workflow Run type: object diff --git a/descriptions-next/ghec/ghec.2022-11-28.json b/descriptions-next/ghec/ghec.2022-11-28.json index bd9c40489..35b69b5df 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.json +++ b/descriptions-next/ghec/ghec.2022-11-28.json @@ -40853,313 +40853,6 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { - "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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" - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } - } - ], - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - } - }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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, - "category": "teams", - "subcategory": "discussions" - } - }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - } - }, "/orgs/{org}/teams/{team_slug}/external-groups": { "get": { "summary": "List a connection between an external group and a team", @@ -80397,304 +80090,6 @@ "deprecated": true } }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, "/teams/{team_id}/invitations": { "get": { "summary": "List pending team invitations (Legacy)", @@ -143066,139 +142461,6 @@ "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": { - "anyOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/simple-user" - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "$ref": "#/components/schemas/reaction-rollup" - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, "team-membership": { "title": "Team Membership", "description": "Team Membership", @@ -323195,158 +322457,6 @@ } } }, - "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", - "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", - "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", - "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-membership-response-if-user-is-a-team-maintainer": { "summary": "Response if user is a team maintainer", "value": { @@ -345259,15 +344369,6 @@ "type": "string" } }, - "discussion-number": { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, "security-product": { "name": "security_product", "in": "path", diff --git a/descriptions-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index 8cb8b27c5..be90fab4d 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.yaml +++ b/descriptions-next/ghec/ghec.2022-11-28.yaml @@ -29441,231 +29441,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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" - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - 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 - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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 - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/external-groups": get: summary: List a connection between an external group and a team @@ -58110,235 +57885,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -103638,105 +103184,6 @@ components: - 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: - anyOf: - - type: 'null' - - "$ref": "#/components/schemas/simple-user" - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted to team - members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: - "$ref": "#/components/schemas/reaction-rollup" - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url team-membership: title: Team Membership description: Team Membership @@ -238485,144 +237932,6 @@ components: 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - 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-membership-response-if-user-is-a-team-maintainer: summary: Response if user is a team maintainer value: @@ -257492,13 +256801,6 @@ components: required: false schema: type: string - discussion-number: - name: discussion_number - description: The number that identifies the discussion. - in: path - required: true - schema: - type: integer security-product: name: security_product in: path diff --git a/descriptions-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index bd9c40489..35b69b5df 100644 --- a/descriptions-next/ghec/ghec.json +++ b/descriptions-next/ghec/ghec.json @@ -40853,313 +40853,6 @@ } } }, - "/orgs/{org}/teams/{team_slug}/discussions": { - "get": { - "summary": "List discussions", - "description": "List all discussions on a team's page.\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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" - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } - } - ], - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "post": { - "summary": "Create a discussion", - "description": "Creates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\n> [!NOTE]\n> You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - } - }, - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion", - "description": "Get a specific discussion on a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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, - "category": "teams", - "subcategory": "discussions" - } - }, - "patch": { - "summary": "Update a discussion", - "description": "Edits the title and body text of a discussion post. Only the parameters you provide are updated.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "category": "teams", - "subcategory": "discussions" - } - }, - "delete": { - "summary": "Delete a discussion", - "description": "Delete a discussion from a team's page.\n\n> [!NOTE]\n> 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}`.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion" - }, - "parameters": [ - { - "$ref": "#/components/parameters/org" - }, - { - "$ref": "#/components/parameters/team-slug" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "discussions" - } - } - }, "/orgs/{org}/teams/{team_slug}/external-groups": { "get": { "summary": "List a connection between an external group and a team", @@ -80397,304 +80090,6 @@ "deprecated": true } }, - "/teams/{team_id}/discussions": { - "get": { - "summary": "List discussions (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint.\n\nList all discussions on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/list-discussions-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "post": { - "summary": "Create a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint.\n\nCreates a new discussion post on a team's page.\n\nThis endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see \"[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)\" and \"[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/create-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - } - ], - "requestBody": { - "required": true, - "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" - ] - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, - "/teams/{team_id}/discussions/{discussion_number}": { - "get": { - "summary": "Get a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint.\n\nGet a specific discussion on a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/get-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "patch": { - "summary": "Update a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint.\n\nEdits the title and body text of a discussion post. Only the parameters you provide are updated.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/update-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "requestBody": { - "required": false, - "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." - } - } - }, - "examples": { - "default": { - "value": { - "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, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - }, - "delete": { - "summary": "Delete a discussion (Legacy)", - "description": "> [!WARNING]\n> **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint.\n\nDelete a discussion from a team's page.\n\nOAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint.", - "tags": [ - "teams" - ], - "operationId": "teams/delete-discussion-legacy", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy" - }, - "parameters": [ - { - "$ref": "#/components/parameters/team-id" - }, - { - "$ref": "#/components/parameters/discussion-number" - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "removalDate": "2021-02-01", - "deprecationDate": "2020-01-21", - "category": "teams", - "subcategory": "discussions" - }, - "deprecated": true - } - }, "/teams/{team_id}/invitations": { "get": { "summary": "List pending team invitations (Legacy)", @@ -143066,139 +142461,6 @@ "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": { - "anyOf": [ - { - "type": "null" - }, - { - "$ref": "#/components/schemas/simple-user" - } - ] - }, - "body": { - "description": "The main text of the discussion.", - "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] - }, - "body_html": { - "type": "string", - "examples": [ - "

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.", - "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" - ] - }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" - }, - "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] - }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] - }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] - }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] - }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] - }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" - ] - }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] - }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] - }, - "reactions": { - "$ref": "#/components/schemas/reaction-rollup" - } - }, - "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", - "html_url", - "pinned", - "private", - "node_id", - "number", - "team_url", - "title", - "updated_at", - "url" - ] - }, "team-membership": { "title": "Team Membership", "description": "Team Membership", @@ -323195,158 +322457,6 @@ } } }, - "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", - "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", - "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", - "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-membership-response-if-user-is-a-team-maintainer": { "summary": "Response if user is a team maintainer", "value": { @@ -345259,15 +344369,6 @@ "type": "string" } }, - "discussion-number": { - "name": "discussion_number", - "description": "The number that identifies the discussion.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - }, "security-product": { "name": "security_product", "in": "path", diff --git a/descriptions-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index 8cb8b27c5..be90fab4d 100644 --- a/descriptions-next/ghec/ghec.yaml +++ b/descriptions-next/ghec/ghec.yaml @@ -29441,231 +29441,6 @@ paths: enabledForGitHubApps: true category: teams subcategory: teams - "/orgs/{org}/teams/{team_slug}/discussions": - get: - summary: List discussions - description: |- - List all discussions on a team's page. - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `GET /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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" - - name: pinned - in: query - required: false - description: Pinned discussions only filter - schema: - type: string - 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 - category: teams - subcategory: discussions - post: - summary: Create a discussion - description: |- - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - > [!NOTE] - > You can also specify a team by `org_id` and `team_id` using the route `POST /organizations/{org_id}/team/{team_id}/discussions`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - category: teams - subcategory: discussions - "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}": - get: - summary: Get a discussion - description: |- - Get a specific discussion on a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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 - category: teams - subcategory: discussions - patch: - summary: Update a discussion - description: |- - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - category: teams - subcategory: discussions - delete: - summary: Delete a discussion - description: |- - Delete a discussion from a team's page. - - > [!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}`. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-in-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: teams - subcategory: discussions "/orgs/{org}/teams/{team_slug}/external-groups": get: summary: List a connection between an external group and a team @@ -58110,235 +57885,6 @@ paths: category: teams subcategory: teams deprecated: true - "/teams/{team_id}/discussions": - get: - summary: List discussions (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#list-discussions) endpoint. - - List all discussions on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/list-discussions-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - post: - summary: Create a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion) endpoint. - - Creates a new discussion post on a team's page. - - This endpoint triggers [notifications](https://docs.github.com/enterprise-cloud@latest//github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/create-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#create-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - requestBody: - required: true - 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 - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - "/teams/{team_id}/discussions/{discussion_number}": - get: - summary: Get a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#get-a-discussion) endpoint. - - Get a specific discussion on a team's page. - - OAuth app tokens and personal access tokens (classic) need the `read:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/get-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - patch: - summary: Update a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion) endpoint. - - Edits the title and body text of a discussion post. Only the parameters you provide are updated. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/update-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#update-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - requestBody: - required: false - 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. - examples: - default: - value: - 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 - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true - delete: - summary: Delete a discussion (Legacy) - description: |- - > [!WARNING] - > **Endpoint closing down notice:** This endpoint route is closing down 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/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion) endpoint. - - Delete a discussion from a team's page. - - OAuth app tokens and personal access tokens (classic) need the `write:discussion` scope to use this endpoint. - tags: - - teams - operationId: teams/delete-discussion-legacy - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/teams/discussions#delete-a-discussion-legacy - parameters: - - "$ref": "#/components/parameters/team-id" - - "$ref": "#/components/parameters/discussion-number" - responses: - '204': - description: Response - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - removalDate: '2021-02-01' - deprecationDate: '2020-01-21' - category: teams - subcategory: discussions - deprecated: true "/teams/{team_id}/invitations": get: summary: List pending team invitations (Legacy) @@ -103638,105 +103184,6 @@ components: - 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: - anyOf: - - type: 'null' - - "$ref": "#/components/schemas/simple-user" - body: - description: The main text of the discussion. - type: string - examples: - - Please suggest improvements to our workflow in comments. - body_html: - type: string - examples: - - "

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. - type: string - examples: - - 0307116bbf7ced493b8d8a346c650b71 - created_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - last_edited_at: - type: - - string - - 'null' - format: date-time - html_url: - type: string - format: uri - examples: - - https://github.com/orgs/github/teams/justice-league/discussions/1 - node_id: - type: string - examples: - - MDE0OlRlYW1EaXNjdXNzaW9uMQ== - number: - description: The unique sequence number of a team discussion. - type: integer - examples: - - 42 - pinned: - description: Whether or not this discussion should be pinned for easy retrieval. - type: boolean - examples: - - true - private: - description: Whether or not this discussion should be restricted to team - members and organization owners. - type: boolean - examples: - - true - team_url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027 - title: - description: The title of the discussion. - type: string - examples: - - How can we improve our workflow? - updated_at: - type: string - format: date-time - examples: - - '2018-01-25T18:56:31Z' - url: - type: string - format: uri - examples: - - https://api.github.com/organizations/1/team/2343027/discussions/1 - reactions: - "$ref": "#/components/schemas/reaction-rollup" - required: - - author - - body - - body_html - - body_version - - created_at - - last_edited_at - - html_url - - pinned - - private - - node_id - - number - - team_url - - title - - updated_at - - url team-membership: title: Team Membership description: Team Membership @@ -238485,144 +237932,6 @@ components: 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - created_at: '2018-01-25T18:56:31Z' - last_edited_at: - 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 - 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{"code":"internal","msg":"git-diff-tree: context deadline exceeded","meta":{"cause":"*fmt.wrapError"}}