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/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/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json index 9ffbc69e8..bfb163520 100644 --- a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json +++ b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.json @@ -215429,17 +215429,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-server@3.14/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-server@3.14/rest/teams/discussions#list-discussions" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team" }, "parameters": [ { @@ -215459,19 +215459,421 @@ "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" + } + }, + "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-server@3.14/github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", + "tags": [ + "teams" + ], + "operationId": "teams/link-external-idp-group-to-team-for-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/external-groups#update-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": "direction", - "description": "The direction to sort the results by.", + "name": "team_slug", + "description": "The slug of the team name.", + "in": "path", + "required": true, + "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-server@3.14/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-server@3.14/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": "external-groups" + } + } + }, + "/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-server@3.14/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" } }, { @@ -215491,15 +215893,6 @@ "type": "integer", "default": 1 } - }, - { - "name": "pinned", - "in": "query", - "required": false, - "description": "Pinned discussions only filter", - "schema": { - "type": "string" - } } ], "responses": { @@ -215510,346 +215903,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" ] } @@ -215858,52 +216075,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 } ] } @@ -215924,19 +216113,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/enterprise-server@3.14/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-server@3.14/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/enterprise-server@3.14/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-server@3.14/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-server@3.14/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/enterprise-server@3.14/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 Server 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 Server](https://docs.github.com/enterprise-server@3.14/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/enterprise-server@3.14/rest/teams/discussions#create-a-discussion" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/members#add-or-update-team-membership-for-a-user" }, "parameters": [ { @@ -215956,39 +216252,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" } } } @@ -215996,358 +216293,831 @@ } }, "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.", + "url": { "type": "string", - "examples": [ - "Please suggest improvements to our workflow in comments." - ] + "format": "uri" }, - "body_html": { + "role": { + "description": "The role of the user in the team.", + "enum": [ + "member", + "maintainer" + ], + "default": "member", "type": "string", "examples": [ - "

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

" + "member" ] }, - "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.", + "state": { + "description": "The state of the user's membership in the team.", "type": "string", - "examples": [ - "0307116bbf7ced493b8d8a346c650b71" + "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-server@3.14/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 Server 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 Server](https://docs.github.com/enterprise-server@3.14/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-server@3.14/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}/projects": { + "get": { + "summary": "List team projects", + "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", + "tags": [ + "teams" + ], + "operationId": "teams/list-projects-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#list-team-projects" + }, + "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-server@3.14/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-server@3.14/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 Project", + "description": "A team's access to a project.", + "type": "object", + "properties": { + "owner_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "columns_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "node_id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "body": { + "type": [ + "string", + "null" + ] + }, + "number": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "creator": { + "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" + ] + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "organization_permission": { + "description": "The organization permission for this project. Only present when owner is an organization.", + "type": "string" + }, + "private": { + "description": "Whether the project is private or not. Only present when owner is an organization.", + "type": "boolean" + }, + "permissions": { + "type": "object", + "properties": { + "read": { + "type": "boolean" + }, + "write": { + "type": "boolean" + }, + "admin": { + "type": "boolean" + } + }, + "required": [ + "read", + "write", + "admin" + ] + } }, - "created_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] + "required": [ + "owner_url", + "url", + "html_url", + "columns_url", + "id", + "node_id", + "name", + "body", + "number", + "state", + "creator", + "created_at", + "updated_at", + "permissions" + ] + } + }, + "examples": { + "default": { + "value": [ + { + "owner_url": "https://api.github.com/orgs/octocat", + "url": "https://api.github.com/projects/1002605", + "html_url": "https://github.com/orgs/api-playground/projects/1", + "columns_url": "https://api.github.com/projects/1002605/columns", + "id": 1002605, + "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year.", + "number": 1, + "state": "open", + "creator": { + "login": "octocat", + "id": 1, + "node_id": "MDQ6VXNlcjE=", + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "gravatar_id": "", + "url": "https://api.github.com/users/octocat", + "html_url": "https://github.com/octocat", + "followers_url": "https://api.github.com/users/octocat/followers", + "following_url": "https://api.github.com/users/octocat/following{/other_user}", + "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", + "organizations_url": "https://api.github.com/users/octocat/orgs", + "repos_url": "https://api.github.com/users/octocat/repos", + "events_url": "https://api.github.com/users/octocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/octocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2011-04-11T20:09:31Z", + "updated_at": "2014-03-04T18:58:10Z", + "organization_permission": "write", + "private": false, + "permissions": { + "read": true, + "write": true, + "admin": false + } + } + ] + } + } + } + }, + "headers": { + "Link": { + "example": "; rel=\"next\", ; rel=\"last\"", + "schema": { + "type": "string" + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": true, + "category": "teams", + "subcategory": "teams", + "deprecationDate": "2024-05-23", + "removalDate": "2025-04-01" + }, + "deprecated": true + } + }, + "/orgs/{org}/teams/{team_slug}/projects/{project_id}": { + "get": { + "summary": "Check team permissions for a project", + "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", + "tags": [ + "teams" + ], + "operationId": "teams/check-permissions-for-project-in-org", + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#check-team-permissions-for-a-project" + }, + "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": "project_id", + "description": "The unique identifier of the project.", + "in": "path", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "Response", + "content": { + "application/json": { + "schema": { + "title": "Team Project", + "description": "A team's access to a project.", + "type": "object", + "properties": { + "owner_url": { + "type": "string" }, - "last_edited_at": { - "type": [ - "string", - "null" - ], - "format": "date-time" + "url": { + "type": "string" }, "html_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://github.com/orgs/github/teams/justice-league/discussions/1" - ] - }, - "node_id": { - "type": "string", - "examples": [ - "MDE0OlRlYW1EaXNjdXNzaW9uMQ==" - ] + "type": "string" }, - "number": { - "description": "The unique sequence number of a team discussion.", - "type": "integer", - "examples": [ - 42 - ] + "columns_url": { + "type": "string" }, - "pinned": { - "description": "Whether or not this discussion should be pinned for easy retrieval.", - "type": "boolean", - "examples": [ - true - ] + "id": { + "type": "integer" }, - "private": { - "description": "Whether or not this discussion should be restricted to team members and organization owners.", - "type": "boolean", - "examples": [ - true - ] + "node_id": { + "type": "string" }, - "team_url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027" - ] + "name": { + "type": "string" }, - "title": { - "description": "The title of the discussion.", - "type": "string", - "examples": [ - "How can we improve our workflow?" + "body": { + "type": [ + "string", + "null" ] }, - "updated_at": { - "type": "string", - "format": "date-time", - "examples": [ - "2018-01-25T18:56:31Z" - ] + "number": { + "type": "integer" }, - "url": { - "type": "string", - "format": "uri", - "examples": [ - "https://api.github.com/organizations/1/team/2343027/discussions/1" - ] + "state": { + "type": "string" }, - "reactions": { - "title": "Reaction Rollup", + "creator": { + "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" + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat" + ] }, - "total_count": { - "type": "integer" + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat" + ] }, - "+1": { - "type": "integer" + "followers_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/followers" + ] }, - "-1": { - "type": "integer" + "following_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/following{/other_user}" + ] }, - "laugh": { - "type": "integer" + "gists_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/gists{/gist_id}" + ] }, - "confused": { - "type": "integer" + "starred_url": { + "type": "string", + "examples": [ + "https://api.github.com/users/octocat/starred{/owner}{/repo}" + ] }, - "heart": { - "type": "integer" + "subscriptions_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/subscriptions" + ] }, - "hooray": { - "type": "integer" + "organizations_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/orgs" + ] }, - "eyes": { - "type": "integer" + "repos_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/users/octocat/repos" + ] }, - "rocket": { - "type": "integer" + "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": [ - "url", - "total_count", - "+1", - "-1", - "laugh", - "confused", - "heart", - "hooray", - "eyes", - "rocket" + "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" + ] + }, + "created_at": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "organization_permission": { + "description": "The organization permission for this project. Only present when owner is an organization.", + "type": "string" + }, + "private": { + "description": "Whether the project is private or not. Only present when owner is an organization.", + "type": "boolean" + }, + "permissions": { + "type": "object", + "properties": { + "read": { + "type": "boolean" + }, + "write": { + "type": "boolean" + }, + "admin": { + "type": "boolean" + } + }, + "required": [ + "read", + "write", + "admin" ] } }, "required": [ - "author", - "body", - "body_html", - "body_version", - "created_at", - "last_edited_at", + "owner_url", + "url", "html_url", - "pinned", - "private", + "columns_url", + "id", "node_id", + "name", + "body", "number", - "team_url", - "title", + "state", + "creator", + "created_at", "updated_at", - "url" + "permissions" ] }, "examples": { "default": { "value": { - "author": { + "owner_url": "https://api.github.com/orgs/octocat", + "url": "https://api.github.com/projects/1002605", + "html_url": "https://github.com/orgs/api-playground/projects/1", + "columns_url": "https://api.github.com/projects/1002605/columns", + "id": 1002605, + "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", + "name": "Organization Roadmap", + "body": "High-level roadmap for the upcoming year.", + "number": 1, + "state": "open", + "creator": { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", @@ -216367,59 +217137,45 @@ "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, + "created_at": "2011-04-11T20:09:31Z", + "updated_at": "2014-03-04T18:58:10Z", + "organization_permission": "write", "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 + "permissions": { + "read": true, + "write": true, + "admin": false } } } } } } + }, + "404": { + "description": "Not Found if project is not managed by this team" } }, "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.", + "subcategory": "teams", + "deprecationDate": "2024-05-23", + "removalDate": "2025-04-01" + }, + "deprecated": true + }, + "put": { + "summary": "Add or update team project permissions", + "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", "tags": [ "teams" ], - "operationId": "teams/get-discussion-in-org", + "operationId": "teams/add-or-update-project-permissions-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/discussions#get-a-discussion" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#add-or-update-team-project-permissions" }, "parameters": [ { @@ -216441,460 +217197,8 @@ } }, { - "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": { - "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 - } - } - } - } - } - } - } - }, - "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-server@3.14/rest/teams/discussions#update-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.", + "name": "project_id", + "description": "The unique identifier of the project.", "in": "path", "required": true, "schema": { @@ -216907,22 +217211,27 @@ "content": { "application/json": { "schema": { - "type": "object", + "type": [ + "object", + "null" + ], "properties": { - "title": { - "type": "string", - "description": "The discussion post's title." - }, - "body": { + "permission": { "type": "string", - "description": "The discussion post's body text." + "description": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#http-method).\"", + "enum": [ + "read", + "write", + "admin" + ] } } }, "examples": { "default": { + "summary": "Updates the permissions for the team to write for the project", "value": { - "title": "Welcome to our first team post" + "permission": "write" } } } @@ -216930,403 +217239,29 @@ } }, "responses": { - "200": { - "description": "Response", + "204": { + "description": "Response" + }, + "403": { + "description": "Forbidden if the project is not owned by the organization", "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" - ] + "message": { + "type": "string" }, - "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" - ] + "documentation_url": { + "type": "string" } - }, - "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": { + "response-if-the-project-is-not-owned-by-the-organization": { "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 - } + "message": "Must have admin rights to Repository.", + "documentation_url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#add-or-update-team-project-permissions" } } } @@ -217338,19 +217273,22 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" - } + "subcategory": "teams", + "deprecationDate": "2024-05-23", + "removalDate": "2025-04-01" + }, + "deprecated": true }, "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.", + "summary": "Remove a project from a team", + "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", "tags": [ "teams" ], - "operationId": "teams/delete-discussion-in-org", + "operationId": "teams/remove-project-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/discussions#delete-a-discussion" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#remove-a-project-from-a-team" }, "parameters": [ { @@ -217372,8 +217310,8 @@ } }, { - "name": "discussion_number", - "description": "The number that identifies the discussion.", + "name": "project_id", + "description": "The unique identifier of the project.", "in": "path", "required": true, "schema": { @@ -217390,21 +217328,24 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "category": "teams", - "subcategory": "discussions" - } + "subcategory": "teams", + "deprecationDate": "2024-05-23", + "removalDate": "2025-04-01" + }, + "deprecated": true } }, - "/orgs/{org}/teams/{team_slug}/external-groups": { + "/orgs/{org}/teams/{team_slug}/repos": { "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-server@3.14/github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", + "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-linked-external-idp-groups-to-team-for-org", + "operationId": "teams/list-repos-in-org", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/external-groups#list-a-connection-between-an-external-group-and-a-team" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#list-team-repositories" }, "parameters": [ { @@ -217424,1092 +217365,97 @@ "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" - } - }, - "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-server@3.14/github/getting-started-with-github/githubs-products)\" in the GitHub Help documentation.", - "tags": [ - "teams" - ], - "operationId": "teams/link-external-idp-group-to-team-for-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/external-groups#update-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, + "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-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "default": 30 } }, { - "name": "team_slug", - "description": "The slug of the team name.", - "in": "path", - "required": true, + "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-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api).\"", + "in": "query", "schema": { - "type": "string" + "type": "integer", + "default": 1 } } ], - "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": "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", - "required": [ - "team_id", - "team_name" - ], "properties": { - "team_id": { - "description": "The id for a team", + "name": { + "type": [ + "string", + "null" + ] + }, + "email": { + "type": [ + "string", + "null" + ] + }, + "login": { + "type": "string", + "examples": [ + "octocat" + ] + }, + "id": { "type": "integer", + "format": "int64", "examples": [ 1 ] }, - "team_name": { - "description": "The name of the team", + "node_id": { "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-server@3.14/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-server@3.14/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": "external-groups" - } - } - }, - "/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-server@3.14/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-server@3.14/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-server@3.14/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" - ] - }, - "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": [ - { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "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-server@3.14/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-server@3.14/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-server@3.14/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 Server 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 Server](https://docs.github.com/enterprise-server@3.14/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-server@3.14/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-server@3.14/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 Server 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 Server](https://docs.github.com/enterprise-server@3.14/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-server@3.14/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}/projects": { - "get": { - "summary": "List team projects", - "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", - "tags": [ - "teams" - ], - "operationId": "teams/list-projects-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#list-team-projects" - }, - "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-server@3.14/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-server@3.14/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 Project", - "description": "A team's access to a project.", - "type": "object", - "properties": { - "owner_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "html_url": { - "type": "string" - }, - "columns_url": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "node_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "body": { - "type": [ - "string", - "null" - ] - }, - "number": { - "type": "integer" - }, - "state": { - "type": "string" - }, - "creator": { - "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=" + "MDQ6VXNlcjE=" ] }, "avatar_url": { @@ -218644,944 +217590,33 @@ "url" ] }, - "created_at": { - "type": "string" + "private": { + "type": "boolean" }, - "updated_at": { - "type": "string" + "html_url": { + "type": "string", + "format": "uri", + "examples": [ + "https://github.com/octocat/Hello-World" + ] }, - "organization_permission": { - "description": "The organization permission for this project. Only present when owner is an organization.", - "type": "string" + "description": { + "type": [ + "string", + "null" + ], + "examples": [ + "This your first repo!" + ] }, - "private": { - "description": "Whether the project is private or not. Only present when owner is an organization.", + "fork": { "type": "boolean" }, - "permissions": { - "type": "object", - "properties": { - "read": { - "type": "boolean" - }, - "write": { - "type": "boolean" - }, - "admin": { - "type": "boolean" - } - }, - "required": [ - "read", - "write", - "admin" - ] - } - }, - "required": [ - "owner_url", - "url", - "html_url", - "columns_url", - "id", - "node_id", - "name", - "body", - "number", - "state", - "creator", - "created_at", - "updated_at", - "permissions" - ] - } - }, - "examples": { - "default": { - "value": [ - { - "owner_url": "https://api.github.com/orgs/octocat", - "url": "https://api.github.com/projects/1002605", - "html_url": "https://github.com/orgs/api-playground/projects/1", - "columns_url": "https://api.github.com/projects/1002605/columns", - "id": 1002605, - "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", - "name": "Organization Roadmap", - "body": "High-level roadmap for the upcoming year.", - "number": 1, - "state": "open", - "creator": { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "created_at": "2011-04-11T20:09:31Z", - "updated_at": "2014-03-04T18:58:10Z", - "organization_permission": "write", - "private": false, - "permissions": { - "read": true, - "write": true, - "admin": false - } - } - ] - } - } - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { - "type": "string" - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "teams", - "deprecationDate": "2024-05-23", - "removalDate": "2025-04-01" - }, - "deprecated": true - } - }, - "/orgs/{org}/teams/{team_slug}/projects/{project_id}": { - "get": { - "summary": "Check team permissions for a project", - "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", - "tags": [ - "teams" - ], - "operationId": "teams/check-permissions-for-project-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#check-team-permissions-for-a-project" - }, - "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": "project_id", - "description": "The unique identifier of the project.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "200": { - "description": "Response", - "content": { - "application/json": { - "schema": { - "title": "Team Project", - "description": "A team's access to a project.", - "type": "object", - "properties": { - "owner_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "html_url": { - "type": "string" - }, - "columns_url": { - "type": "string" - }, - "id": { - "type": "integer" - }, - "node_id": { - "type": "string" - }, - "name": { - "type": "string" - }, - "body": { - "type": [ - "string", - "null" - ] - }, - "number": { - "type": "integer" - }, - "state": { - "type": "string" - }, - "creator": { - "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" - ] - }, - "created_at": { - "type": "string" - }, - "updated_at": { - "type": "string" - }, - "organization_permission": { - "description": "The organization permission for this project. Only present when owner is an organization.", - "type": "string" - }, - "private": { - "description": "Whether the project is private or not. Only present when owner is an organization.", - "type": "boolean" - }, - "permissions": { - "type": "object", - "properties": { - "read": { - "type": "boolean" - }, - "write": { - "type": "boolean" - }, - "admin": { - "type": "boolean" - } - }, - "required": [ - "read", - "write", - "admin" - ] - } - }, - "required": [ - "owner_url", - "url", - "html_url", - "columns_url", - "id", - "node_id", - "name", - "body", - "number", - "state", - "creator", - "created_at", - "updated_at", - "permissions" - ] - }, - "examples": { - "default": { - "value": { - "owner_url": "https://api.github.com/orgs/octocat", - "url": "https://api.github.com/projects/1002605", - "html_url": "https://github.com/orgs/api-playground/projects/1", - "columns_url": "https://api.github.com/projects/1002605/columns", - "id": 1002605, - "node_id": "MDc6UHJvamVjdDEwMDI2MDU=", - "name": "Organization Roadmap", - "body": "High-level roadmap for the upcoming year.", - "number": 1, - "state": "open", - "creator": { - "login": "octocat", - "id": 1, - "node_id": "MDQ6VXNlcjE=", - "avatar_url": "https://github.com/images/error/octocat_happy.gif", - "gravatar_id": "", - "url": "https://api.github.com/users/octocat", - "html_url": "https://github.com/octocat", - "followers_url": "https://api.github.com/users/octocat/followers", - "following_url": "https://api.github.com/users/octocat/following{/other_user}", - "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", - "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", - "organizations_url": "https://api.github.com/users/octocat/orgs", - "repos_url": "https://api.github.com/users/octocat/repos", - "events_url": "https://api.github.com/users/octocat/events{/privacy}", - "received_events_url": "https://api.github.com/users/octocat/received_events", - "type": "User", - "site_admin": false - }, - "created_at": "2011-04-11T20:09:31Z", - "updated_at": "2014-03-04T18:58:10Z", - "organization_permission": "write", - "private": false, - "permissions": { - "read": true, - "write": true, - "admin": false - } - } - } - } - } - } - }, - "404": { - "description": "Not Found if project is not managed by this team" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "teams", - "deprecationDate": "2024-05-23", - "removalDate": "2025-04-01" - }, - "deprecated": true - }, - "put": { - "summary": "Add or update team project permissions", - "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", - "tags": [ - "teams" - ], - "operationId": "teams/add-or-update-project-permissions-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#add-or-update-team-project-permissions" - }, - "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": "project_id", - "description": "The unique identifier of the project.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "requestBody": { - "required": false, - "content": { - "application/json": { - "schema": { - "type": [ - "object", - "null" - ], - "properties": { - "permission": { - "type": "string", - "description": "The permission to grant to the team for this project. Default: the team's `permission` attribute will be used to determine what permission to grant the team on this project. Note that, if you choose not to pass any parameters, you'll need to set `Content-Length` to zero when calling this endpoint. For more information, see \"[HTTP method](https://docs.github.com/enterprise-server@3.14/rest/guides/getting-started-with-the-rest-api#http-method).\"", - "enum": [ - "read", - "write", - "admin" - ] - } - } - }, - "examples": { - "default": { - "summary": "Updates the permissions for the team to write for the project", - "value": { - "permission": "write" - } - } - } - } - } - }, - "responses": { - "204": { - "description": "Response" - }, - "403": { - "description": "Forbidden if the project is not owned by the organization", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - } - } - }, - "examples": { - "response-if-the-project-is-not-owned-by-the-organization": { - "value": { - "message": "Must have admin rights to Repository.", - "documentation_url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#add-or-update-team-project-permissions" - } - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "teams", - "deprecationDate": "2024-05-23", - "removalDate": "2025-04-01" - }, - "deprecated": true - }, - "delete": { - "summary": "Remove a project from a team", - "description": "> [!WARNING]\n> **Closing down notice:** Projects (classic) is being deprecated in favor of the new Projects experience.\n> See the [changelog](https://github.blog/changelog/2024-05-23-sunset-notice-projects-classic/) for more information.", - "tags": [ - "teams" - ], - "operationId": "teams/remove-project-in-org", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#remove-a-project-from-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" - } - }, - { - "name": "project_id", - "description": "The unique identifier of the project.", - "in": "path", - "required": true, - "schema": { - "type": "integer" - } - } - ], - "responses": { - "204": { - "description": "Response" - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "category": "teams", - "subcategory": "teams", - "deprecationDate": "2024-05-23", - "removalDate": "2025-04-01" - }, - "deprecated": true - } - }, - "/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-server@3.14/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-server@3.14/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-server@3.14/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" + "url": { + "type": "string", + "format": "uri", + "examples": [ + "https://api.github.com/repos/octocat/Hello-World" ] }, "archive_url": { @@ -555143,1747 +553178,119 @@ } }, "required": [ - "license" - ] - }, - "examples": { - "default": { - "value": { - "license": "@enterprise.ghl", - "password": "secret" - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": false, - "category": "enterprise-admin", - "subcategory": "management-console" - } - } - }, - "/setup/api/upgrade": { - "post": { - "summary": "Upgrade a license", - "description": "This API upgrades your license and also triggers the configuration process.\n\n> [!NOTE]\n> The request body for this operation must be submitted as `multipart/form-data` data. You can can reference the license file by prefixing the filename with the `@` symbol using `curl`. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#-F).", - "operationId": "enterprise-admin/upgrade-license", - "tags": [ - "enterprise-admin" - ], - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/management-console#upgrade-a-license" - }, - "servers": [ - { - "url": "{protocol}://{hostname}", - "variables": { - "hostname": { - "default": "HOSTNAME", - "description": "Self-hosted Enterprise Server hostname" - }, - "protocol": { - "default": "http", - "description": "Self-hosted Enterprise Server protocol" - } - } - } - ], - "responses": { - "202": { - "description": "Response" - }, - "401": { - "description": "Unauthorized" - } - }, - "requestBody": { - "required": false, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "license": { - "type": "string", - "description": "The content of your new _.ghl_ license file." - } - } - }, - "examples": { - "default": { - "value": { - "license": "@enterprise.ghl" - } - } - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": false, - "category": "enterprise-admin", - "subcategory": "management-console" - } - } - }, - "/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-server@3.14/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-server@3.14/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", - "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", - "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" - }, - "ldap_dn": "uid=asdf,ou=users,dc=github,dc=com" - } - } - } - } - } - }, - "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-server@3.14/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-server@3.14/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", - "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", - "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" - }, - "ldap_dn": "uid=asdf,ou=users,dc=github,dc=com" - } + "license" + ] + }, + "examples": { + "default": { + "value": { + "license": "@enterprise.ghl", + "password": "secret" } } } } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "category": "enterprise-admin", + "subcategory": "management-console" + } + } + }, + "/setup/api/upgrade": { + "post": { + "summary": "Upgrade a license", + "description": "This API upgrades your license and also triggers the configuration process.\n\n> [!NOTE]\n> The request body for this operation must be submitted as `multipart/form-data` data. You can can reference the license file by prefixing the filename with the `@` symbol using `curl`. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#-F).", + "operationId": "enterprise-admin/upgrade-license", + "tags": [ + "enterprise-admin" + ], + "externalDocs": { + "description": "API method documentation", + "url": "https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/management-console#upgrade-a-license" + }, + "servers": [ + { + "url": "{protocol}://{hostname}", + "variables": { + "hostname": { + "default": "HOSTNAME", + "description": "Self-hosted Enterprise Server hostname" + }, + "protocol": { + "default": "http", + "description": "Self-hosted Enterprise Server protocol" + } + } + } + ], + "responses": { + "202": { + "description": "Response" }, - "201": { + "401": { + "description": "Unauthorized" + } + }, + "requestBody": { + "required": false, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "license": { + "type": "string", + "description": "The content of your new _.ghl_ license file." + } + } + }, + "examples": { + "default": { + "value": { + "license": "@enterprise.ghl" + } + } + } + } + } + }, + "x-github": { + "githubCloudOnly": false, + "enabledForGitHubApps": false, + "category": "enterprise-admin", + "subcategory": "management-console" + } + } + }, + "/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-server@3.14/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-server@3.14/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": { @@ -557659,245 +554066,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-server@3.14/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-server@3.14/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": { @@ -557909,501 +554077,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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/rest/teams/discussions#create-a-discussion-legacy" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#update-a-team-legacy" }, "parameters": [ { @@ -558423,30 +554107,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" } } } @@ -558454,495 +554167,120 @@ } }, "responses": { - "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.", - "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", + "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": [ - "

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-server@3.14/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-server@3.14/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 ] @@ -558950,472 +554288,750 @@ "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", + "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", + "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" }, - "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 - } + "ldap_dn": "uid=asdf,ou=users,dc=github,dc=com" } } } } } - } - }, - "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-server@3.14/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-server@3.14/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 ] @@ -559423,361 +555039,762 @@ "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", + "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", + "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 + "created_at": "2008-01-14T04:33:35Z", + "updated_at": "2017-08-17T12:37:15Z", + "type": "Organization" }, - "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 + "ldap_dn": "uid=asdf,ou=users,dc=github,dc=com" + } + } + } + } + } + }, + "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": { @@ -559786,20 +555803,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-server@3.14/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-server@3.14/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-server@3.14/rest/teams/discussions#delete-a-discussion-legacy" + "url": "https://docs.github.com/enterprise-server@3.14/rest/teams/teams#delete-a-team-legacy" }, "parameters": [ { @@ -559810,20 +555827,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": { @@ -559832,7 +555941,7 @@ "removalDate": "2021-02-01", "deprecationDate": "2020-01-21", "category": "teams", - "subcategory": "discussions" + "subcategory": "teams" }, "deprecated": true } diff --git a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml index 91ad3ef22..c7da3065c 100644 --- a/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml +++ b/descriptions-next/ghes-3.14/dereferenced/ghes-3.14.2022-11-28.deref.yaml @@ -4664,7 +4664,7 @@ paths: application/json: schema: *22 application/scim+json: - schema: &531 + schema: &528 title: Scim Error description: Scim Error type: object @@ -12723,7 +12723,7 @@ paths: description: The GitHub URL of the alert resource. format: uri readOnly: true - instances_url: &366 + instances_url: &363 type: string description: The REST API URL for fetching the list of instances for an alert. @@ -12759,7 +12759,7 @@ paths: format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissed_reason: &367 + dismissed_reason: &364 type: - string - 'null' @@ -12770,14 +12770,14 @@ paths: - won't fix - used in tests - - dismissed_comment: &368 + dismissed_comment: &365 type: - string - 'null' description: The dismissal comment associated with the dismissal of the alert. maxLength: 280 - rule: &369 + rule: &366 type: object properties: id: @@ -12822,7 +12822,7 @@ paths: description: A set of tags applicable for the rule. items: type: string - tool: &370 + tool: &367 type: object properties: name: *88 @@ -12833,26 +12833,26 @@ paths: description: The version of the tool used to generate the code scanning analysis. guid: *89 - most_recent_instance: &371 + most_recent_instance: &368 type: object properties: - ref: &364 + ref: &361 type: string description: |- The Git reference, formatted as `refs/pull//merge`, `refs/pull//head`, `refs/heads/` or simply ``. - analysis_key: &376 + analysis_key: &373 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: &377 + environment: &374 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: &378 + category: &375 type: string description: Identifies the configuration under which the analysis was executed. Used to distinguish between multiple @@ -12866,7 +12866,7 @@ paths: properties: text: type: string - location: &379 + location: &376 type: object description: Describe a region within a file for the alert. properties: @@ -12887,7 +12887,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: &380 + items: &377 type: - string - 'null' @@ -13720,7 +13720,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 - - &401 + - &398 name: has in: query description: |- @@ -13845,7 +13845,7 @@ paths: - development - runtime - - security_advisory: &402 + security_advisory: &399 type: object description: Details for the GitHub Security Advisory. readOnly: true @@ -14080,7 +14080,7 @@ paths: dismissal. maxLength: 280 fixed_at: *100 - auto_dismissed_at: &403 + auto_dismissed_at: &400 type: - string - 'null' @@ -14088,7 +14088,7 @@ paths: ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' format: date-time readOnly: true - dismissal_request: &404 + dismissal_request: &401 title: Dependabot alert dismissal request description: Information about an active dismissal request for this Dependabot alert. @@ -14562,14 +14562,14 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: &522 + state: &519 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: &523 + resolution: &520 type: - string - 'null' @@ -15456,7 +15456,7 @@ paths: timeline_url: type: string format: uri - type: &558 + type: &555 title: Issue Type description: The type of issue. type: @@ -15567,7 +15567,7 @@ paths: - hooray - eyes - rocket - sub_issues_summary: &555 + sub_issues_summary: &552 title: Sub-issues Summary type: object properties: @@ -15588,7 +15588,7 @@ paths: - string - 'null' format: uri - issue_dependencies_summary: &556 + issue_dependencies_summary: &553 title: Issue Dependencies Summary type: object properties: @@ -15607,7 +15607,7 @@ paths: - total_blocking issue_field_values: type: array - items: &557 + items: &554 title: Issue Field Value description: A value assigned to an issue field type: object @@ -15774,7 +15774,7 @@ paths: action: type: string issue: *105 - comment: &445 + comment: &442 title: Issue Comment description: Comments provide a way for people to collaborate on an issue. @@ -16475,7 +16475,7 @@ paths: - review_comment - self author_association: *106 - auto_merge: &393 + auto_merge: &390 title: Auto merge description: The status of auto merging a pull request. type: @@ -16958,7 +16958,7 @@ paths: type: string release: allOf: - - &500 + - &497 title: Release description: A release. type: object @@ -17040,7 +17040,7 @@ paths: author: *17 assets: type: array - items: &501 + items: &498 title: Release Asset description: Data related to a release. type: object @@ -17632,7 +17632,7 @@ paths: url: type: string format: uri - user: &571 + user: &566 title: Public User description: Public User type: object @@ -22321,14 +22321,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/events#list-public-events-for-a-network-of-repositories parameters: - - &287 + - &284 name: owner description: The account owner of the repository. The name is not case sensitive. in: path required: true schema: type: string - - &288 + - &285 name: repo description: The name of the repository without the `.git` extension. The name is not case sensitive. @@ -22400,7 +22400,7 @@ paths: '404': *24 '403': *41 '304': *40 - '301': &299 + '301': &296 description: Moved permanently content: application/json: @@ -22422,7 +22422,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/notifications#list-notifications-for-the-authenticated-user parameters: - - &474 + - &471 name: all description: If `true`, show notifications marked as read. in: query @@ -22430,7 +22430,7 @@ paths: schema: type: boolean default: false - - &475 + - &472 name: participating description: If `true`, only shows notifications in which the user is directly participating or mentioned. @@ -22440,7 +22440,7 @@ paths: type: boolean default: false - *113 - - &476 + - &473 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: @@ -22946,7 +22946,7 @@ paths: - url - subscription_url examples: - default: &477 + default: &474 value: - id: '1' repository: @@ -23499,7 +23499,7 @@ paths: type: array items: *68 examples: - default: &580 + default: &575 value: - login: github id: 1 @@ -24468,7 +24468,7 @@ paths: type: integer repository_cache_usages: type: array - items: &304 + items: &301 title: Actions Cache Usage by repository description: GitHub Actions Cache Usage by repository. type: object @@ -24722,7 +24722,7 @@ paths: type: array items: *82 examples: - default: &577 + default: &572 value: total_count: 1 repositories: @@ -26528,7 +26528,7 @@ paths: description: Response content: application/json: - schema: &326 + schema: &323 title: ActionsPublicKey description: The public key used for setting Actions Secrets. type: object @@ -26563,7 +26563,7 @@ paths: - key_id - key examples: - default: &327 + default: &324 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -26976,7 +26976,7 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#list-organization-variables parameters: - *134 - - &311 + - &308 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-server@3.14/rest/using-the-rest-api/using-pagination-in-the-rest-api)." @@ -27630,7 +27630,7 @@ paths: be returned. in: query required: false - schema: &365 + schema: &362 type: string description: Severity of a code scanning alert. enum: @@ -28177,7 +28177,7 @@ paths: description: Response content: application/json: - schema: &407 + schema: &404 title: DependabotPublicKey description: The public key used for setting Dependabot Secrets. type: object @@ -28196,7 +28196,7 @@ paths: - key_id - key examples: - default: &408 + default: &405 value: key_id: '012345678912345678' key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -28795,7 +28795,7 @@ paths: description: Response content: application/json: - schema: &282 + schema: &279 title: ExternalGroup description: Information about an external group's usage and its members type: object @@ -28885,7 +28885,7 @@ paths: member_name: Octo Lisa member_email: octo_lisa@github.com examples: - default: &283 + default: &280 value: group_id: '123' group_name: Octocat admins @@ -28940,7 +28940,7 @@ paths: description: Response content: application/json: - schema: &280 + schema: &277 title: ExternalGroups description: A list of external groups available to be connected to a team @@ -28980,7 +28980,7 @@ paths: group_name: group-azuread-test2 updated_at: 2021-06-03 22:27:15:000 -700 examples: - default: &281 + default: &278 value: groups: - group_id: '123' @@ -29631,7 +29631,7 @@ paths: application/json: schema: *37 examples: - default: &442 + default: &439 value: id: 1 account: @@ -32358,7 +32358,7 @@ paths: - nuget - container - *134 - - &581 + - &576 name: visibility description: |- The selected visibility of the packages. This parameter is optional and only filters an existing result set. @@ -32399,7 +32399,7 @@ paths: default: *215 '403': *41 '401': *39 - '400': &583 + '400': &578 description: The value of `per_page` multiplied by `page` cannot be greater than 10000. x-github: @@ -34908,7 +34908,7 @@ paths: description: Response content: application/json: - schema: &298 + schema: &295 title: Full Repository description: Full Repository type: object @@ -35487,7 +35487,7 @@ paths: - network_count - subscribers_count examples: - default: &300 + default: &297 value: id: 1296269 node_id: MDEwOlJlcG9zaXRvcnkxMjk2MjY5 @@ -36059,7 +36059,7 @@ paths: - *134 - *4 - *5 - - &508 + - &505 name: targets description: | A comma-separated list of rule targets to filter by. @@ -36338,7 +36338,7 @@ paths: - object rules: type: array - items: &509 + items: &506 title: Repository Rule type: object description: A repository rule. @@ -37084,7 +37084,7 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/orgs/rule-suites#list-organization-rule-suites parameters: - *134 - - &510 + - &507 name: ref description: The name of the ref. Cannot contain wildcard characters. When specified, only rule evaluations triggered for this ref will be returned. @@ -37097,7 +37097,7 @@ paths: in: query schema: type: string - - &511 + - &508 name: time_period description: |- The time period to filter by. @@ -37113,14 +37113,14 @@ paths: - week - month default: day - - &512 + - &509 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 - - &513 + - &510 name: rule_suite_result description: The rule suite results to filter on. When specified, only suites with this result will be returned. @@ -37140,7 +37140,7 @@ paths: description: Response content: application/json: - schema: &514 + schema: &511 title: Rule Suites description: Response type: array @@ -37195,7 +37195,7 @@ paths: whether rules would pass or fail if all rules in the rule suite were `active`. examples: - default: &515 + default: &512 value: - id: 21 actor_id: 12 @@ -37239,7 +37239,7 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/orgs/rule-suites#get-an-organization-rule-suite parameters: - *134 - - &516 + - &513 name: rule_suite_id description: |- The unique identifier of the rule suite result. @@ -37255,7 +37255,7 @@ paths: description: Response content: application/json: - schema: &517 + schema: &514 title: Rule Suite description: Response type: object @@ -37360,7 +37360,7 @@ paths: description: The detailed failure message for the rule. Null if the rule passed. examples: - default: &518 + default: &515 value: id: 21 actor_id: 12 @@ -37578,7 +37578,7 @@ paths: - *9 - *5 - *4 - - &520 + - &517 name: before description: A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.14/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events before this cursor. To @@ -37588,7 +37588,7 @@ paths: required: false schema: type: string - - &521 + - &518 name: after description: A cursor, as given in the [Link header](https://docs.github.com/enterprise-server@3.14/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for events after this cursor. To @@ -37760,7 +37760,7 @@ paths: application/json: schema: type: array - items: &289 + items: &286 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -38555,464 +38555,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-server@3.14/rest/teams/discussions#list-discussions - parameters: - - *134 - - *211 - - *9 - - *4 - - *5 - - 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: &277 - 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' - - *17 - 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: *107 - 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: &563 - 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: *6 - 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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/rest/teams/discussions#create-a-discussion - parameters: - - *134 - - *211 - 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: *277 - examples: - default: &278 - 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-server@3.14/rest/teams/discussions#get-a-discussion - parameters: - - *134 - - *211 - - &279 - 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: *277 - examples: - default: *278 - 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-server@3.14/rest/teams/discussions#update-a-discussion - parameters: - - *134 - - *211 - - *279 - 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: *277 - examples: - default: &564 - 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-server@3.14/rest/teams/discussions#delete-a-discussion - parameters: - - *134 - - *211 - - *279 - 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 @@ -39034,9 +38576,9 @@ paths: description: Response content: application/json: - schema: *280 + schema: *277 examples: - default: *281 + default: *278 x-github: githubCloudOnly: true enabledForGitHubApps: true @@ -39080,9 +38622,9 @@ paths: description: Response content: application/json: - schema: *282 + schema: *279 examples: - default: *283 + default: *280 x-github: githubCloudOnly: true enabledForGitHubApps: false @@ -39187,7 +38729,7 @@ paths: description: Response content: application/json: - schema: &284 + schema: &281 title: Team Membership description: Team Membership type: object @@ -39215,7 +38757,7 @@ paths: - state - url examples: - response-if-user-is-a-team-maintainer: &565 + response-if-user-is-a-team-maintainer: &560 summary: Response if user is a team maintainer value: url: https://api.github.com/teams/1/memberships/octocat @@ -39278,9 +38820,9 @@ paths: description: Response content: application/json: - schema: *284 + schema: *281 examples: - response-if-users-membership-with-team-is-now-pending: &566 + response-if-users-membership-with-team-is-now-pending: &561 summary: Response if user's membership with team is now pending value: url: https://api.github.com/teams/1/memberships/octocat @@ -39353,7 +38895,7 @@ paths: application/json: schema: type: array - items: &285 + items: &282 title: Team Project description: A team's access to a project. type: object @@ -39422,7 +38964,7 @@ paths: - updated_at - permissions examples: - default: &567 + default: &562 value: - owner_url: https://api.github.com/orgs/octocat url: https://api.github.com/projects/1002605 @@ -39487,7 +39029,7 @@ paths: parameters: - *134 - *211 - - &286 + - &283 name: project_id description: The unique identifier of the project. in: path @@ -39499,9 +39041,9 @@ paths: description: Response content: application/json: - schema: *285 + schema: *282 examples: - default: &568 + default: &563 value: owner_url: https://api.github.com/orgs/octocat url: https://api.github.com/projects/1002605 @@ -39565,7 +39107,7 @@ paths: parameters: - *134 - *211 - - *286 + - *283 requestBody: required: false content: @@ -39634,7 +39176,7 @@ paths: parameters: - *134 - *211 - - *286 + - *283 responses: '204': description: Response @@ -39705,14 +39247,14 @@ paths: parameters: - *134 - *211 - - *287 - - *288 + - *284 + - *285 responses: '200': description: Alternative response with repository permissions content: application/json: - schema: &569 + schema: &564 title: Team Repository description: A team's access to a repository. type: object @@ -40355,8 +39897,8 @@ paths: parameters: - *134 - *211 - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -40403,8 +39945,8 @@ paths: parameters: - *134 - *211 - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -40439,9 +39981,9 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: - response-if-child-teams-exist: &570 + response-if-child-teams-exist: &565 value: - id: 2 node_id: MDQ6VGVhbTI= @@ -40568,7 +40110,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/cards#get-a-project-card parameters: - - &290 + - &287 name: card_id description: The unique identifier of the card. in: path @@ -40580,7 +40122,7 @@ paths: description: Response content: application/json: - schema: &291 + schema: &288 title: Project Card description: Project cards represent a scope of work. type: object @@ -40655,7 +40197,7 @@ paths: - created_at - updated_at examples: - default: &292 + default: &289 value: url: https://api.github.com/projects/columns/cards/1478 id: 1478 @@ -40711,7 +40253,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/cards#update-an-existing-project-card parameters: - - *290 + - *287 requestBody: required: false content: @@ -40741,9 +40283,9 @@ paths: description: Response content: application/json: - schema: *291 + schema: *288 examples: - default: *292 + default: *289 '304': *40 '403': *41 '401': *39 @@ -40770,7 +40312,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/cards#delete-a-project-card parameters: - - *290 + - *287 responses: '204': description: Response @@ -40814,7 +40356,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/cards#move-a-project-card parameters: - - *290 + - *287 requestBody: required: true content: @@ -40927,7 +40469,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/columns#get-a-project-column parameters: - - &293 + - &290 name: column_id description: The unique identifier of the column. in: path @@ -40939,7 +40481,7 @@ paths: description: Response content: application/json: - schema: &294 + schema: &291 title: Project Column description: Project columns contain cards of work. type: object @@ -40993,7 +40535,7 @@ paths: - created_at - updated_at examples: - default: &295 + default: &292 value: url: https://api.github.com/projects/columns/367 project_url: https://api.github.com/projects/120 @@ -41028,7 +40570,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/columns#update-an-existing-project-column parameters: - - *293 + - *290 requestBody: required: true content: @@ -41053,9 +40595,9 @@ paths: description: Response content: application/json: - schema: *294 + schema: *291 examples: - default: *295 + default: *292 '304': *40 '403': *41 '401': *39 @@ -41080,7 +40622,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/columns#delete-a-project-column parameters: - - *293 + - *290 responses: '204': description: Response @@ -41109,7 +40651,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/cards#list-project-cards parameters: - - *293 + - *290 - name: archived_state description: Filters the project cards that are returned by the card's state. in: query @@ -41130,7 +40672,7 @@ paths: application/json: schema: type: array - items: *291 + items: *288 examples: default: value: @@ -41189,7 +40731,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/cards#create-a-project-card parameters: - - *293 + - *290 requestBody: required: true content: @@ -41233,9 +40775,9 @@ paths: description: Response content: application/json: - schema: *291 + schema: *288 examples: - default: *292 + default: *289 '304': *40 '403': *41 '401': *39 @@ -41291,7 +40833,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/columns#move-a-project-column parameters: - - *293 + - *290 requestBody: required: true content: @@ -41351,7 +40893,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/projects#get-a-project parameters: - - *286 + - *283 responses: '200': description: Response @@ -41359,7 +40901,7 @@ paths: application/json: schema: *232 examples: - default: &296 + default: &293 value: owner_url: https://api.github.com/repos/api-playground/projects-test url: https://api.github.com/projects/1002604 @@ -41413,7 +40955,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/projects#update-a-project parameters: - - *286 + - *283 requestBody: required: false content: @@ -41464,7 +41006,7 @@ paths: application/json: schema: *232 examples: - default: *296 + default: *293 '404': description: Not Found if the authenticated user does not have access to the project @@ -41504,7 +41046,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/projects#delete-a-project parameters: - - *286 + - *283 responses: '204': description: Delete Success @@ -41547,7 +41089,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/collaborators#list-project-collaborators parameters: - - *286 + - *283 - name: affiliation description: Filters the collaborators by their affiliation. `outside` means outside collaborators of a project that are not a member of the project's @@ -41604,7 +41146,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/collaborators#add-project-collaborator parameters: - - *286 + - *283 - *8 requestBody: required: false @@ -41659,7 +41201,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/collaborators#remove-user-as-a-collaborator parameters: - - *286 + - *283 - *8 responses: '204': @@ -41691,7 +41233,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/collaborators#get-project-permission-for-a-user parameters: - - *286 + - *283 - *8 responses: '200': @@ -41762,7 +41304,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/columns#list-project-columns parameters: - - *286 + - *283 - *4 - *5 responses: @@ -41772,7 +41314,7 @@ paths: application/json: schema: type: array - items: *294 + items: *291 examples: default: value: @@ -41810,7 +41352,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/columns#create-a-project-column parameters: - - *286 + - *283 requestBody: required: true content: @@ -41834,7 +41376,7 @@ paths: description: Response content: application/json: - schema: *294 + schema: *291 examples: default: value: @@ -41899,7 +41441,7 @@ paths: resources: type: object properties: - core: &297 + core: &294 title: Rate Limit type: object properties: @@ -41916,20 +41458,20 @@ paths: - remaining - reset - used - graphql: *297 - search: *297 - code_search: *297 - source_import: *297 - integration_manifest: *297 - code_scanning_upload: *297 - actions_runner_registration: *297 - scim: *297 - dependency_sbom: *297 - code_scanning_autofix: *297 + graphql: *294 + search: *294 + code_search: *294 + source_import: *294 + integration_manifest: *294 + code_scanning_upload: *294 + actions_runner_registration: *294 + scim: *294 + dependency_sbom: *294 + code_scanning_autofix: *294 required: - core - search - rate: *297 + rate: *294 required: - rate - resources @@ -42034,14 +41576,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#get-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: *298 + schema: *295 examples: default-response: summary: Default response @@ -42540,7 +42082,7 @@ paths: status: disabled '403': *41 '404': *24 - '301': *299 + '301': *296 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -42558,8 +42100,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#update-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -42776,10 +42318,10 @@ paths: description: Response content: application/json: - schema: *298 + schema: *295 examples: - default: *300 - '307': &301 + default: *297 + '307': &298 description: Temporary Redirect content: application/json: @@ -42824,8 +42366,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#delete-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -42847,7 +42389,7 @@ paths: value: message: Organization members cannot delete repositories. documentation_url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#delete-a-repository - '307': *301 + '307': *298 '404': *24 '409': *139 x-github: @@ -42871,11 +42413,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/artifacts#list-artifacts-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 - - &318 + - &315 name: name description: The name field of an artifact. When specified, only artifacts with this name will be returned. @@ -42898,7 +42440,7 @@ paths: type: integer artifacts: type: array - items: &302 + items: &299 title: Artifact description: An artifact type: object @@ -42984,7 +42526,7 @@ paths: - expires_at - updated_at examples: - default: &319 + default: &316 value: total_count: 2 artifacts: @@ -43043,9 +42585,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/artifacts#get-an-artifact parameters: - - *287 - - *288 - - &303 + - *284 + - *285 + - &300 name: artifact_id description: The unique identifier of the artifact. in: path @@ -43057,7 +42599,7 @@ paths: description: Response content: application/json: - schema: *302 + schema: *299 examples: default: value: @@ -43094,9 +42636,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/artifacts#delete-an-artifact parameters: - - *287 - - *288 - - *303 + - *284 + - *285 + - *300 responses: '204': description: Response @@ -43120,9 +42662,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/artifacts#download-an-artifact parameters: - - *287 - - *288 - - *303 + - *284 + - *285 + - *300 - name: archive_format in: path required: true @@ -43159,14 +42701,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/cache#get-github-actions-cache-usage-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: *304 + schema: *301 examples: default: value: @@ -43192,14 +42734,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/cache#get-github-actions-cache-usage-policy-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: &305 + schema: &302 title: Actions cache usage policy for repository description: GitHub Actions cache usage policy for repository. type: object @@ -43212,7 +42754,7 @@ paths: required: - repo_cache_size_limit_in_gb examples: - default: &306 + default: &303 value: repo_cache_size_limit_in_gb: 14 x-github: @@ -43233,8 +42775,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/cache#set-github-actions-cache-usage-policy-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -43242,9 +42784,9 @@ paths: required: true content: application/json: - schema: *305 + schema: *302 examples: - selected_actions: *306 + selected_actions: *303 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -43264,11 +42806,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/cache#list-github-actions-caches-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 - - &307 + - &304 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 @@ -43302,7 +42844,7 @@ paths: description: Response content: application/json: - schema: &308 + schema: &305 title: Repository actions caches description: Repository actions caches type: object @@ -43352,7 +42894,7 @@ paths: - total_count - actions_caches examples: - default: &309 + default: &306 value: total_count: 1 actions_caches: @@ -43384,23 +42926,23 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key parameters: - - *287 - - *288 + - *284 + - *285 - name: key description: A key for identifying the cache. in: query required: true schema: type: string - - *307 + - *304 responses: '200': description: Response content: application/json: - schema: *308 + schema: *305 examples: - default: *309 + default: *306 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -43420,8 +42962,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id parameters: - - *287 - - *288 + - *284 + - *285 - name: cache_id description: The unique identifier of the GitHub Actions cache. in: path @@ -43452,9 +42994,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-jobs#get-a-job-for-a-workflow-run parameters: - - *287 - - *288 - - &310 + - *284 + - *285 + - &307 name: job_id description: The unique identifier of the job. in: path @@ -43466,7 +43008,7 @@ paths: description: Response content: application/json: - schema: &322 + schema: &319 title: Job description: Information of a job execution in a workflow run type: object @@ -43813,9 +43355,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run parameters: - - *287 - - *288 - - *310 + - *284 + - *285 + - *307 responses: '302': description: Response @@ -43843,9 +43385,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run parameters: - - *287 - - *288 - - *310 + - *284 + - *285 + - *307 requestBody: required: false content: @@ -43891,8 +43433,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/oidc#get-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Status response @@ -43942,8 +43484,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/oidc#set-the-customization-template-for-an-oidc-subject-claim-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -44006,8 +43548,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#list-repository-organization-secrets parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -44025,7 +43567,7 @@ paths: type: integer secrets: type: array - items: &324 + items: &321 title: Actions Secret description: Set secrets for GitHub Actions. type: object @@ -44046,7 +43588,7 @@ paths: - created_at - updated_at examples: - default: &325 + default: &322 value: total_count: 2 secrets: @@ -44079,9 +43621,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#list-repository-organization-variables parameters: - - *287 - - *288 - - *311 + - *284 + - *285 + - *308 - *5 responses: '200': @@ -44098,7 +43640,7 @@ paths: type: integer variables: type: array - items: &328 + items: &325 title: Actions Variable type: object properties: @@ -44132,7 +43674,7 @@ paths: - created_at - updated_at examples: - default: &329 + default: &326 value: total_count: 2 variables: @@ -44165,8 +43707,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#get-github-actions-permissions-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -44175,7 +43717,7 @@ paths: schema: type: object properties: - enabled: &312 + enabled: &309 type: boolean description: Whether GitHub Actions is enabled on the repository. allowed_actions: *67 @@ -44208,8 +43750,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#set-github-actions-permissions-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -44220,7 +43762,7 @@ paths: schema: type: object properties: - enabled: *312 + enabled: *309 allowed_actions: *67 required: - enabled @@ -44251,14 +43793,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#get-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: &313 + schema: &310 type: object properties: access_level: @@ -44276,7 +43818,7 @@ paths: required: - access_level examples: - default: &314 + default: &311 value: access_level: organization x-github: @@ -44301,15 +43843,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#set-the-level-of-access-for-workflows-outside-of-the-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: application/json: - schema: *313 + schema: *310 examples: - default: *314 + default: *311 responses: '204': description: Response @@ -44333,8 +43875,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#get-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -44365,8 +43907,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#set-allowed-actions-and-reusable-workflows-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -44398,8 +43940,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#get-default-workflow-permissions-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -44428,8 +43970,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/permissions#set-default-workflow-permissions-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Success response @@ -44469,8 +44011,8 @@ paths: in: query schema: type: string - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -44514,8 +44056,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#list-runner-applications-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -44547,8 +44089,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#create-configuration-for-a-just-in-time-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -44622,8 +44164,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#create-a-registration-token-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '201': description: Response @@ -44659,8 +44201,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#create-a-remove-token-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '201': description: Response @@ -44690,8 +44232,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#get-a-self-hosted-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 responses: '200': @@ -44721,8 +44263,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#delete-a-self-hosted-runner-from-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 responses: '204': @@ -44749,8 +44291,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#list-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 responses: '200': *85 @@ -44775,8 +44317,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#add-custom-labels-to-a-self-hosted-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 requestBody: required: true @@ -44825,8 +44367,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#set-custom-labels-for-a-self-hosted-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 requestBody: required: true @@ -44876,8 +44418,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#remove-all-custom-labels-from-a-self-hosted-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 responses: '200': *159 @@ -44907,8 +44449,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/self-hosted-runners#remove-a-custom-label-from-a-self-hosted-runner-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *79 - *160 responses: @@ -44938,9 +44480,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#list-workflow-runs-for-a-repository parameters: - - *287 - - *288 - - &332 + - *284 + - *285 + - &329 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. @@ -44948,7 +44490,7 @@ paths: required: false schema: type: string - - &333 + - &330 name: branch description: Returns workflow runs associated with a branch. Use the name of the branch of the `push`. @@ -44956,7 +44498,7 @@ paths: required: false schema: type: string - - &334 + - &331 name: event description: Returns workflow run triggered by the event you specify. For example, `push`, `pull_request` or `issue`. For more information, see "[Events @@ -44965,7 +44507,7 @@ paths: required: false schema: type: string - - &335 + - &332 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 @@ -44992,7 +44534,7 @@ paths: - pending - *4 - *5 - - &336 + - &333 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-server@3.14/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax#query-for-dates)." @@ -45001,7 +44543,7 @@ paths: schema: type: string format: date-time - - &315 + - &312 name: exclude_pull_requests description: If `true` pull requests are omitted from the response (empty array). @@ -45010,13 +44552,13 @@ paths: schema: type: boolean default: false - - &337 + - &334 name: check_suite_id description: Returns workflow runs with the `check_suite_id` that you specify. in: query schema: type: integer - - &338 + - &335 name: head_sha description: Only returns workflow runs that are associated with the specified `head_sha`. @@ -45039,7 +44581,7 @@ paths: type: integer workflow_runs: type: array - items: &316 + items: &313 title: Workflow Run description: An invocation of a workflow type: object @@ -45156,7 +44698,7 @@ paths: type: - array - 'null' - items: &356 + items: &353 title: Pull Request Minimal type: object properties: @@ -45283,7 +44825,7 @@ paths: head_commit: anyOf: - type: 'null' - - &360 + - &357 title: Simple Commit description: A commit. type: object @@ -45398,7 +44940,7 @@ paths: - workflow_url - pull_requests examples: - default: &339 + default: &336 value: total_count: 1 workflow_runs: @@ -45634,24 +45176,24 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#get-a-workflow-run parameters: - - *287 - - *288 - - &317 + - *284 + - *285 + - &314 name: run_id description: The unique identifier of the workflow run. in: path required: true schema: type: integer - - *315 + - *312 responses: '200': description: Response content: application/json: - schema: *316 + schema: *313 examples: - default: &320 + default: &317 value: id: 30433642 name: Build @@ -45892,9 +45434,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#delete-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '204': description: Response @@ -45917,9 +45459,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#get-the-review-history-for-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '200': description: Response @@ -46049,12 +45591,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/artifacts#list-workflow-run-artifacts parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 - *4 - *5 - - *318 + - *315 responses: '200': description: Response @@ -46070,9 +45612,9 @@ paths: type: integer artifacts: type: array - items: *302 + items: *299 examples: - default: *319 + default: *316 headers: Link: *6 x-github: @@ -46096,25 +45638,25 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#get-a-workflow-run-attempt parameters: - - *287 - - *288 - - *317 - - &321 + - *284 + - *285 + - *314 + - &318 name: attempt_number description: The attempt number of the workflow run. in: path required: true schema: type: integer - - *315 + - *312 responses: '200': description: Response content: application/json: - schema: *316 + schema: *313 examples: - default: *320 + default: *317 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -46137,10 +45679,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run-attempt parameters: - - *287 - - *288 - - *317 - - *321 + - *284 + - *285 + - *314 + - *318 - *4 - *5 responses: @@ -46158,9 +45700,9 @@ paths: type: integer jobs: type: array - items: *322 + items: *319 examples: - default: &323 + default: &320 value: total_count: 1 jobs: @@ -46273,10 +45815,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#download-workflow-run-attempt-logs parameters: - - *287 - - *288 - - *317 - - *321 + - *284 + - *285 + - *314 + - *318 responses: '302': description: Response @@ -46304,9 +45846,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#cancel-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '202': description: Response @@ -46339,9 +45881,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#review-custom-deployment-protection-rules-for-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 requestBody: required: true content: @@ -46408,9 +45950,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#force-cancel-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '202': description: Response @@ -46443,9 +45985,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-jobs#list-jobs-for-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 - 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 @@ -46475,9 +46017,9 @@ paths: type: integer jobs: type: array - items: *322 + items: *319 examples: - default: *323 + default: *320 headers: Link: *6 x-github: @@ -46502,9 +46044,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#download-workflow-run-logs parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '302': description: Response @@ -46531,9 +46073,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#delete-workflow-run-logs parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '204': description: Response @@ -46560,9 +46102,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#get-pending-deployments-for-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 responses: '200': description: Response @@ -46631,7 +46173,7 @@ paths: items: type: object properties: - type: &416 + type: &413 type: string description: The type of reviewer. enum: @@ -46642,7 +46184,7 @@ paths: reviewer: anyOf: - *17 - - *289 + - *286 required: - environment - wait_timer @@ -46717,9 +46259,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 requestBody: required: true content: @@ -46769,7 +46311,7 @@ paths: application/json: schema: type: array - items: &411 + items: &408 title: Deployment description: A request for a specific ref(branch,sha,tag) to be deployed @@ -46881,7 +46423,7 @@ paths: - created_at - updated_at examples: - default: &412 + default: &409 value: - url: https://api.github.com/repos/octocat/example/deployments/1 id: 1 @@ -46937,9 +46479,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#re-run-a-workflow parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 requestBody: required: false content: @@ -46984,9 +46526,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#re-run-failed-jobs-from-a-workflow-run parameters: - - *287 - - *288 - - *317 + - *284 + - *285 + - *314 requestBody: required: false content: @@ -47034,8 +46576,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#list-repository-secrets parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -47053,9 +46595,9 @@ paths: type: integer secrets: type: array - items: *324 + items: *321 examples: - default: *325 + default: *322 headers: Link: *6 x-github: @@ -47080,16 +46622,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#get-a-repository-public-key parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: *326 + schema: *323 examples: - default: *327 + default: *324 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -47111,17 +46653,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#get-a-repository-secret parameters: - - *287 - - *288 + - *284 + - *285 - *162 responses: '200': description: Response content: application/json: - schema: *324 + schema: *321 examples: - default: &429 + default: &426 value: name: GH_TOKEN created_at: '2019-08-10T14:59:22Z' @@ -47147,8 +46689,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#create-or-update-a-repository-secret parameters: - - *287 - - *288 + - *284 + - *285 - *162 requestBody: required: true @@ -47206,8 +46748,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#delete-a-repository-secret parameters: - - *287 - - *288 + - *284 + - *285 - *162 responses: '204': @@ -47233,9 +46775,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#list-repository-variables parameters: - - *287 - - *288 - - *311 + - *284 + - *285 + - *308 - *5 responses: '200': @@ -47252,9 +46794,9 @@ paths: type: integer variables: type: array - items: *328 + items: *325 examples: - default: *329 + default: *326 headers: Link: *6 x-github: @@ -47277,8 +46819,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#create-a-repository-variable parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -47330,17 +46872,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#get-a-repository-variable parameters: - - *287 - - *288 + - *284 + - *285 - *165 responses: '200': description: Response content: application/json: - schema: *328 + schema: *325 examples: - default: &430 + default: &427 value: name: USERNAME value: octocat @@ -47366,8 +46908,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#update-a-repository-variable parameters: - - *287 - - *288 + - *284 + - *285 - *165 requestBody: required: true @@ -47410,8 +46952,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#delete-a-repository-variable parameters: - - *287 - - *288 + - *284 + - *285 - *165 responses: '204': @@ -47437,8 +46979,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflows#list-repository-workflows parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -47456,7 +46998,7 @@ paths: type: integer workflows: type: array - items: &330 + items: &327 title: Workflow description: A GitHub Actions workflow type: object @@ -47574,9 +47116,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflows#get-a-workflow parameters: - - *287 - - *288 - - &331 + - *284 + - *285 + - &328 name: workflow_id in: path description: The ID of the workflow. You can also pass the workflow file name @@ -47591,7 +47133,7 @@ paths: description: Response content: application/json: - schema: *330 + schema: *327 examples: default: value: @@ -47624,9 +47166,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflows#disable-a-workflow parameters: - - *287 - - *288 - - *331 + - *284 + - *285 + - *328 responses: '204': description: Response @@ -47651,9 +47193,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflows#create-a-workflow-dispatch-event parameters: - - *287 - - *288 - - *331 + - *284 + - *285 + - *328 responses: '204': description: Response @@ -47704,9 +47246,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflows#enable-a-workflow parameters: - - *287 - - *288 - - *331 + - *284 + - *285 + - *328 responses: '204': description: Response @@ -47733,19 +47275,19 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/workflow-runs#list-workflow-runs-for-a-workflow parameters: - - *287 - - *288 + - *284 + - *285 + - *328 + - *329 + - *330 - *331 - *332 + - *4 + - *5 - *333 + - *312 - *334 - *335 - - *4 - - *5 - - *336 - - *315 - - *337 - - *338 responses: '200': description: Response @@ -47761,9 +47303,9 @@ paths: type: integer workflow_runs: type: array - items: *316 + items: *313 examples: - default: *339 + default: *336 headers: Link: *6 x-github: @@ -47786,8 +47328,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-repository-activities parameters: - - *287 - - *288 + - *284 + - *285 - *9 - *4 - *86 @@ -47955,8 +47497,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/assignees#list-assignees parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -47993,8 +47535,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/assignees#check-if-a-user-can-be-assigned parameters: - - *287 - - *288 + - *284 + - *285 - name: assignee in: path required: true @@ -48028,8 +47570,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/autolinks#get-all-autolinks-of-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -48037,7 +47579,7 @@ paths: application/json: schema: type: array - items: &340 + items: &337 title: Autolink reference description: An autolink reference. type: object @@ -48096,8 +47638,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/autolinks#create-an-autolink-reference-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -48136,9 +47678,9 @@ paths: description: response content: application/json: - schema: *340 + schema: *337 examples: - default: &341 + default: &338 value: id: 1 key_prefix: TICKET- @@ -48169,9 +47711,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/autolinks#get-an-autolink-reference-of-a-repository parameters: - - *287 - - *288 - - &342 + - *284 + - *285 + - &339 name: autolink_id description: The unique identifier of the autolink. in: path @@ -48183,9 +47725,9 @@ paths: description: Response content: application/json: - schema: *340 + schema: *337 examples: - default: *341 + default: *338 '404': *24 x-github: githubCloudOnly: false @@ -48205,9 +47747,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/autolinks#delete-an-autolink-reference-from-a-repository parameters: - - *287 - - *288 - - *342 + - *284 + - *285 + - *339 responses: '204': description: Response @@ -48231,8 +47773,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#check-if-dependabot-security-updates-are-enabled-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response if Dependabot is enabled @@ -48281,8 +47823,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branches#list-branches parameters: - - *287 - - *288 + - *284 + - *285 - name: protected description: Setting to `true` returns only branches protected by branch protections or rulesets. When set to `false`, only unprotected branches are returned. @@ -48320,7 +47862,7 @@ paths: - url protected: type: boolean - protection: &344 + protection: &341 title: Branch Protection description: Branch Protection type: object @@ -48363,7 +47905,7 @@ paths: required: - contexts - checks - enforce_admins: &347 + enforce_admins: &344 title: Protected Branch Admin Enforced description: Protected Branch Admin Enforced type: object @@ -48380,7 +47922,7 @@ paths: required: - url - enabled - required_pull_request_reviews: &349 + required_pull_request_reviews: &346 title: Protected Branch Pull Request Review description: Protected Branch Pull Request Review type: object @@ -48402,7 +47944,7 @@ paths: description: The list of teams with review dismissal access. type: array - items: *289 + items: *286 apps: description: The list of apps with review dismissal access. @@ -48434,7 +47976,7 @@ paths: description: The list of teams allowed to bypass pull request requirements. type: array - items: *289 + items: *286 apps: description: The list of apps allowed to bypass pull request requirements. @@ -48464,7 +48006,7 @@ paths: required: - dismiss_stale_reviews - require_code_owner_reviews - restrictions: &346 + restrictions: &343 title: Branch Restriction Policy description: Branch Restriction Policy type: object @@ -48527,7 +48069,7 @@ paths: type: string teams: type: array - items: *289 + items: *286 apps: type: array items: @@ -48757,9 +48299,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branches#get-a-branch parameters: - - *287 - - *288 - - &345 + - *284 + - *285 + - &342 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-server@3.14/graphql). @@ -48773,14 +48315,14 @@ paths: description: Response content: application/json: - schema: &355 + schema: &352 title: Branch With Protection description: Branch With Protection type: object properties: name: type: string - commit: &389 + commit: &386 title: Commit description: Commit type: object @@ -48819,7 +48361,7 @@ paths: author: anyOf: - type: 'null' - - &343 + - &340 title: Git User description: Metaproperties for Git author/committer information. @@ -48841,7 +48383,7 @@ paths: committer: anyOf: - type: 'null' - - *343 + - *340 message: type: string examples: @@ -48865,7 +48407,7 @@ paths: required: - sha - url - verification: &436 + verification: &433 title: Verification type: object properties: @@ -48940,7 +48482,7 @@ paths: type: integer files: type: array - items: &398 + items: &395 title: Diff Entry description: Diff Entry type: object @@ -49036,7 +48578,7 @@ paths: - self protected: type: boolean - protection: *344 + protection: *341 protection_url: type: string format: uri @@ -49142,7 +48684,7 @@ paths: contexts: [] checks: [] protection_url: https://api.github.com/repos/octocat/Hello-World/branches/main/protection - '301': *299 + '301': *296 '404': *24 x-github: githubCloudOnly: false @@ -49164,15 +48706,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-branch-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *344 + schema: *341 examples: default: value: @@ -49366,9 +48908,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#update-branch-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -49628,7 +49170,7 @@ paths: url: type: string format: uri - required_status_checks: &352 + required_status_checks: &349 title: Status Check Policy description: Status Check Policy type: object @@ -49709,7 +49251,7 @@ paths: items: *17 teams: type: array - items: *289 + items: *286 apps: type: array items: *23 @@ -49727,7 +49269,7 @@ paths: items: *17 teams: type: array - items: *289 + items: *286 apps: type: array items: *23 @@ -49787,7 +49329,7 @@ paths: additionalProperties: false required: - enabled - restrictions: *346 + restrictions: *343 required_conversation_resolution: type: object properties: @@ -49899,9 +49441,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#delete-branch-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '204': description: Response @@ -49926,17 +49468,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-admin-branch-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *347 + schema: *344 examples: - default: &348 + default: &345 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins enabled: true @@ -49958,17 +49500,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#set-admin-branch-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *347 + schema: *344 examples: - default: *348 + default: *345 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -49987,9 +49529,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#delete-admin-branch-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '204': description: Response @@ -50014,17 +49556,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-pull-request-review-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *349 + schema: *346 examples: - default: &350 + default: &347 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_pull_request_reviews dismissal_restrictions: @@ -50120,9 +49662,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#update-pull-request-review-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: false content: @@ -50220,9 +49762,9 @@ paths: description: Response content: application/json: - schema: *349 + schema: *346 examples: - default: *350 + default: *347 '422': *33 x-github: githubCloudOnly: false @@ -50243,9 +49785,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#delete-pull-request-review-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '204': description: Response @@ -50272,17 +49814,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-commit-signature-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *347 + schema: *344 examples: - default: &351 + default: &348 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_signatures enabled: true @@ -50305,17 +49847,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#create-commit-signature-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *347 + schema: *344 examples: - default: *351 + default: *348 '404': *24 x-github: githubCloudOnly: false @@ -50335,9 +49877,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#delete-commit-signature-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '204': description: Response @@ -50362,17 +49904,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-status-checks-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *352 + schema: *349 examples: - default: &353 + default: &350 value: url: https://api.github.com/repos/octocat/Hello-World/branches/master/protection/required_status_checks strict: true @@ -50398,9 +49940,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#update-status-check-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: false content: @@ -50452,9 +49994,9 @@ paths: description: Response content: application/json: - schema: *352 + schema: *349 examples: - default: *353 + default: *350 '404': *24 '422': *33 x-github: @@ -50476,9 +50018,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#remove-status-check-protection parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '204': description: Response @@ -50502,9 +50044,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-all-status-check-contexts parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response @@ -50538,9 +50080,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#add-status-check-contexts parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: false content: @@ -50607,9 +50149,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#set-status-check-contexts parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: false content: @@ -50673,9 +50215,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#remove-status-check-contexts parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: content: application/json: @@ -50741,15 +50283,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response content: application/json: - schema: *346 + schema: *343 examples: default: value: @@ -50840,9 +50382,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#delete-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '204': description: Response @@ -50865,9 +50407,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-apps-with-access-to-the-protected-branch parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response @@ -50877,7 +50419,7 @@ paths: type: array items: *23 examples: - default: &354 + default: &351 value: - id: 1 slug: octoapp @@ -50934,9 +50476,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#add-app-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -50970,7 +50512,7 @@ paths: type: array items: *23 examples: - default: *354 + default: *351 '422': *33 x-github: githubCloudOnly: false @@ -50991,9 +50533,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#set-app-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -51027,7 +50569,7 @@ paths: type: array items: *23 examples: - default: *354 + default: *351 '422': *33 x-github: githubCloudOnly: false @@ -51048,9 +50590,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#remove-app-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -51084,7 +50626,7 @@ paths: type: array items: *23 examples: - default: *354 + default: *351 '422': *33 x-github: githubCloudOnly: false @@ -51106,9 +50648,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-teams-with-access-to-the-protected-branch parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response @@ -51116,7 +50658,7 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: default: *271 '404': *24 @@ -51138,9 +50680,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#add-team-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: false content: @@ -51176,7 +50718,7 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: default: *271 '422': *33 @@ -51199,9 +50741,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#set-team-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: false content: @@ -51237,7 +50779,7 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: default: *271 '422': *33 @@ -51260,9 +50802,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#remove-team-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: content: application/json: @@ -51297,7 +50839,7 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: default: *271 '422': *33 @@ -51321,9 +50863,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#get-users-with-access-to-the-protected-branch parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 responses: '200': description: Response @@ -51357,9 +50899,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#add-user-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -51417,9 +50959,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#set-user-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -51477,9 +51019,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branch-protection#remove-user-access-restrictions parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -51539,9 +51081,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branches#rename-a-branch parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 requestBody: required: true content: @@ -51563,7 +51105,7 @@ paths: description: Response content: application/json: - schema: *355 + schema: *352 examples: default: value: @@ -51676,8 +51218,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#create-a-check-run parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -51956,7 +51498,7 @@ paths: description: Response content: application/json: - schema: &357 + schema: &354 title: CheckRun description: A check performed on the code of a given code change type: object @@ -52091,8 +51633,8 @@ paths: do not necessarily indicate pull requests that triggered the check. type: array - items: *356 - deployment: &606 + items: *353 + deployment: &601 title: Deployment description: A deployment created as the result of an Actions check run from a workflow that references an environment @@ -52379,9 +51921,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#get-a-check-run parameters: - - *287 - - *288 - - &358 + - *284 + - *285 + - &355 name: check_run_id description: The unique identifier of the check run. in: path @@ -52393,9 +51935,9 @@ paths: description: Response content: application/json: - schema: *357 + schema: *354 examples: - default: &359 + default: &356 value: id: 4 head_sha: ce587453ced02b1526dfb4cb910479d431683101 @@ -52495,9 +52037,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#update-a-check-run parameters: - - *287 - - *288 - - *358 + - *284 + - *285 + - *355 requestBody: required: true content: @@ -52737,9 +52279,9 @@ paths: description: Response content: application/json: - schema: *357 + schema: *354 examples: - default: *359 + default: *356 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -52759,9 +52301,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#list-check-run-annotations parameters: - - *287 - - *288 - - *358 + - *284 + - *285 + - *355 - *4 - *5 responses: @@ -52871,9 +52413,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#rerequest-a-check-run parameters: - - *287 - - *288 - - *358 + - *284 + - *285 + - *355 responses: '201': description: Response @@ -52917,8 +52459,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/suites#create-a-check-suite parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -52940,7 +52482,7 @@ paths: description: Response when the suite already exists content: application/json: - schema: &361 + schema: &358 title: CheckSuite description: A suite of checks performed on the code of a given code change @@ -53022,7 +52564,7 @@ paths: type: - array - 'null' - items: *356 + items: *353 app: anyOf: - type: 'null' @@ -53038,7 +52580,7 @@ paths: - string - 'null' format: date-time - head_commit: *360 + head_commit: *357 latest_check_runs_count: type: integer check_runs_url: @@ -53066,7 +52608,7 @@ paths: - check_runs_url - pull_requests examples: - default: &362 + default: &359 value: id: 5 node_id: MDEwOkNoZWNrU3VpdGU1 @@ -53357,9 +52899,9 @@ paths: description: Response when the suite was created content: application/json: - schema: *361 + schema: *358 examples: - default: *362 + default: *359 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -53378,8 +52920,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/suites#update-repository-preferences-for-check-suites parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -53688,9 +53230,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/suites#get-a-check-suite parameters: - - *287 - - *288 - - &363 + - *284 + - *285 + - &360 name: check_suite_id description: The unique identifier of the check suite. in: path @@ -53702,9 +53244,9 @@ paths: description: Response content: application/json: - schema: *361 + schema: *358 examples: - default: *362 + default: *359 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -53727,17 +53269,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#list-check-runs-in-a-check-suite parameters: - - *287 - - *288 - - *363 - - &395 + - *284 + - *285 + - *360 + - &392 name: check_name description: Returns check runs with the specified `name`. in: query required: false schema: type: string - - &396 + - &393 name: status description: Returns check runs with the specified `status`. in: query @@ -53776,9 +53318,9 @@ paths: type: integer check_runs: type: array - items: *357 + items: *354 examples: - default: &397 + default: &394 value: total_count: 1 check_runs: @@ -53880,9 +53422,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/suites#rerequest-a-check-suite parameters: - - *287 - - *288 - - *363 + - *284 + - *285 + - *360 responses: '201': description: Response @@ -53915,20 +53457,20 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#list-code-scanning-alerts-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *177 - *178 - *5 - *4 - - &375 + - &372 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: *364 + schema: *361 - *9 - name: sort description: The property by which to sort the results. @@ -53951,7 +53493,7 @@ paths: be returned. in: query required: false - schema: *365 + schema: *362 responses: '200': description: Response @@ -53967,7 +53509,7 @@ paths: updated_at: *98 url: *95 html_url: *96 - instances_url: *366 + instances_url: *363 state: *90 fixed_at: *100 dismissed_by: @@ -53975,11 +53517,11 @@ paths: - type: 'null' - *17 dismissed_at: *99 - dismissed_reason: *367 - dismissed_comment: *368 - rule: *369 - tool: *370 - most_recent_instance: *371 + dismissed_reason: *364 + dismissed_comment: *365 + rule: *366 + tool: *367 + most_recent_instance: *368 dismissal_approved_by: anyOf: - type: 'null' @@ -54102,7 +53644,7 @@ paths: classifications: [] instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/3/instances '304': *40 - '403': &372 + '403': &369 description: Response if GitHub Advanced Security is not enabled for this repository content: @@ -54129,9 +53671,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#get-a-code-scanning-alert parameters: - - *287 - - *288 - - &373 + - *284 + - *285 + - &370 name: alert_number in: path description: The number that identifies an alert. You can find this at the @@ -54145,7 +53687,7 @@ paths: description: Response content: application/json: - schema: &374 + schema: &371 type: object properties: number: *91 @@ -54153,7 +53695,7 @@ paths: updated_at: *98 url: *95 html_url: *96 - instances_url: *366 + instances_url: *363 state: *90 fixed_at: *100 dismissed_by: @@ -54161,8 +53703,8 @@ paths: - type: 'null' - *17 dismissed_at: *99 - dismissed_reason: *367 - dismissed_comment: *368 + dismissed_reason: *364 + dismissed_comment: *365 rule: type: object properties: @@ -54224,8 +53766,8 @@ paths: - 'null' description: A link to the documentation for the rule used to detect the alert. - tool: *370 - most_recent_instance: *371 + tool: *367 + most_recent_instance: *368 dismissal_approved_by: anyOf: - type: 'null' @@ -54321,7 +53863,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '304': *40 - '403': *372 + '403': *369 '404': *24 '503': *102 x-github: @@ -54341,9 +53883,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#update-a-code-scanning-alert parameters: - - *287 - - *288 - - *373 + - *284 + - *285 + - *370 requestBody: required: true content: @@ -54358,8 +53900,8 @@ paths: enum: - open - dismissed - dismissed_reason: *367 - dismissed_comment: *368 + dismissed_reason: *364 + dismissed_comment: *365 assignees: description: The list of users to assign to the code scanning alert. An empty array unassigns all previous assignees from the alert. @@ -54385,7 +53927,7 @@ paths: description: Response content: application/json: - schema: *374 + schema: *371 examples: default: value: @@ -54461,7 +54003,7 @@ paths: - test instances_url: https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances '400': *32 - '403': &383 + '403': &380 description: Response if the repository is archived or if GitHub Advanced Security is not enabled for this repository content: @@ -54488,12 +54030,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#list-instances-of-a-code-scanning-alert parameters: - - *287 - - *288 - - *373 + - *284 + - *285 + - *370 - *5 - *4 - - *375 + - *372 responses: '200': description: Response @@ -54504,10 +54046,10 @@ paths: items: type: object properties: - ref: *364 - analysis_key: *376 - environment: *377 - category: *378 + ref: *361 + analysis_key: *373 + environment: *374 + category: *375 state: type: - string @@ -54524,7 +54066,7 @@ paths: properties: text: type: string - location: *379 + location: *376 html_url: type: string classifications: @@ -54532,7 +54074,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: *380 + items: *377 examples: default: value: @@ -54571,7 +54113,7 @@ paths: end_column: 50 classifications: - source - '403': *372 + '403': *369 '404': *24 '503': *102 x-github: @@ -54605,8 +54147,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#list-code-scanning-analyses-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *177 - *178 - *5 @@ -54617,12 +54159,12 @@ paths: for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. required: false - schema: *364 + schema: *361 - name: sarif_id in: query description: Filter analyses belonging to the same SARIF upload. required: false - schema: &381 + schema: &378 type: string description: An identifier for the upload. examples: @@ -54644,23 +54186,23 @@ paths: application/json: schema: type: array - items: &382 + items: &379 type: object properties: - ref: *364 - commit_sha: &384 + ref: *361 + commit_sha: &381 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: *376 + analysis_key: *373 environment: type: string description: Identifies the variable values associated with the environment in which this analysis was performed. - category: *378 + category: *375 error: type: string examples: @@ -54685,8 +54227,8 @@ paths: description: The REST API URL of the analysis resource. format: uri readOnly: true - sarif_id: *381 - tool: *370 + sarif_id: *378 + tool: *367 deletable: type: boolean warning: @@ -54748,7 +54290,7 @@ paths: version: 1.2.0 deletable: true warning: '' - '403': *372 + '403': *369 '404': *24 '503': *102 x-github: @@ -54784,8 +54326,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -54798,7 +54340,7 @@ paths: description: Response content: application/json: - schema: *382 + schema: *379 examples: response: summary: application/json response @@ -54852,7 +54394,7 @@ paths: properties: - github/alertNumber: 2 - github/alertUrl: https://api.github.com/repos/monalisa/monalisa/code-scanning/alerts/2 - '403': *372 + '403': *369 '404': *24 '503': *102 x-github: @@ -54934,8 +54476,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#delete-a-code-scanning-analysis-from-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - name: analysis_id in: path description: The ID of the analysis, as returned from the `GET /repos/{owner}/{repo}/code-scanning/analyses` @@ -54991,7 +54533,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': *32 - '403': *383 + '403': *380 '404': *24 '503': *102 x-github: @@ -55013,8 +54555,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#get-a-code-scanning-default-setup-configuration parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -55080,7 +54622,7 @@ paths: query_suite: default updated_at: '2023-01-19T11:21:34Z' schedule: weekly - '403': *372 + '403': *369 '404': *24 '503': *102 x-github: @@ -55101,8 +54643,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#update-a-code-scanning-default-setup-configuration parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -55173,7 +54715,7 @@ paths: value: run_id: 42 run_url: https://api.github.com/repos/octoorg/octocat/actions/runs/42 - '403': *383 + '403': *380 '404': *24 '409': description: Response if there is already a validation run in progress with @@ -55244,8 +54786,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#upload-an-analysis-as-sarif-data parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -55253,7 +54795,7 @@ paths: schema: type: object properties: - commit_sha: *384 + commit_sha: *381 ref: type: string description: |- @@ -55308,7 +54850,7 @@ paths: schema: type: object properties: - id: *381 + id: *378 url: type: string description: The REST API URL for checking the status of the upload. @@ -55322,7 +54864,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': *383 + '403': *380 '404': *24 '413': description: Payload Too Large if the sarif field is too large @@ -55345,8 +54887,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/code-scanning/code-scanning#get-information-about-a-sarif-upload parameters: - - *287 - - *288 + - *284 + - *285 - name: sarif_id description: The SARIF ID obtained after uploading. in: path @@ -55394,7 +54936,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': *372 + '403': *369 '404': description: Not Found if the sarif id does not match any upload '503': *102 @@ -55419,8 +54961,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-codeowners-errors parameters: - - *287 - - *288 + - *284 + - *285 - 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 @@ -55551,8 +55093,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/collaborators#list-repository-collaborators parameters: - - *287 - - *288 + - *284 + - *285 - name: affiliation description: Filter collaborators returned by their affiliation. `outside` means all outside collaborators of an organization-owned repository. `direct` @@ -55590,7 +55132,7 @@ paths: application/json: schema: type: array - items: &385 + items: &382 title: Collaborator description: Collaborator type: object @@ -55782,8 +55324,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/collaborators#check-if-a-user-is-a-repository-collaborator parameters: - - *287 - - *288 + - *284 + - *285 - *8 responses: '204': @@ -55820,8 +55362,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/collaborators#add-a-repository-collaborator parameters: - - *287 - - *288 + - *284 + - *285 - *8 requestBody: required: false @@ -55891,8 +55433,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/collaborators#remove-a-repository-collaborator parameters: - - *287 - - *288 + - *284 + - *285 - *8 responses: '204': @@ -55924,8 +55466,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/collaborators#get-repository-permissions-for-a-user parameters: - - *287 - - *288 + - *284 + - *285 - *8 responses: '200': @@ -55946,7 +55488,7 @@ paths: user: anyOf: - type: 'null' - - *385 + - *382 required: - permission - role_name @@ -56000,8 +55542,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/comments#list-commit-comments-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -56011,7 +55553,7 @@ paths: application/json: schema: type: array - items: &386 + items: &383 title: Commit Comment description: Commit Comment type: object @@ -56069,7 +55611,7 @@ paths: - created_at - updated_at examples: - default: &391 + default: &388 value: - html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -56128,17 +55670,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/comments#get-a-commit-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 responses: '200': description: Response content: application/json: - schema: *386 + schema: *383 examples: - default: &392 + default: &389 value: html_url: https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e#commitcomment-1 url: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -56195,8 +55737,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/comments#update-a-commit-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 requestBody: required: true @@ -56219,7 +55761,7 @@ paths: description: Response content: application/json: - schema: *386 + schema: *383 examples: default: value: @@ -56270,8 +55812,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/comments#delete-a-commit-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 responses: '204': @@ -56293,8 +55835,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#list-reactions-for-a-commit-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#about-reactions). @@ -56321,7 +55863,7 @@ paths: application/json: schema: type: array - items: &387 + items: &384 title: Reaction description: Reactions to conversations provide a way to help people express their feelings more simply and effectively. @@ -56365,7 +55907,7 @@ paths: - content - created_at examples: - default: &447 + default: &444 value: - id: 1 node_id: MDg6UmVhY3Rpb24x @@ -56410,8 +55952,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#create-reaction-for-a-commit-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 requestBody: required: true @@ -56444,9 +55986,9 @@ paths: description: Reaction exists content: application/json: - schema: *387 + schema: *384 examples: - default: &388 + default: &385 value: id: 1 node_id: MDg6UmVhY3Rpb24x @@ -56475,9 +56017,9 @@ paths: description: Reaction created content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '422': *33 x-github: githubCloudOnly: false @@ -56499,10 +56041,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#delete-a-commit-comment-reaction parameters: - - *287 - - *288 + - *284 + - *285 - *122 - - &448 + - &445 name: reaction_id description: The unique identifier of the reaction. in: path @@ -56557,8 +56099,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/commits#list-commits parameters: - - *287 - - *288 + - *284 + - *285 - name: sha description: 'SHA or branch to start listing commits from. Default: the repository’s default branch (usually `main`).' @@ -56614,9 +56156,9 @@ paths: application/json: schema: type: array - items: *389 + items: *386 examples: - default: &493 + default: &490 value: - url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -56709,9 +56251,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/commits#list-branches-for-head-commit parameters: - - *287 - - *288 - - &390 + - *284 + - *285 + - &387 name: commit_sha description: The SHA of the commit. in: path @@ -56783,9 +56325,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/comments#list-commit-comments parameters: - - *287 - - *288 - - *390 + - *284 + - *285 + - *387 - *4 - *5 responses: @@ -56795,9 +56337,9 @@ paths: application/json: schema: type: array - items: *386 + items: *383 examples: - default: *391 + default: *388 headers: Link: *6 x-github: @@ -56825,9 +56367,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/comments#create-a-commit-comment parameters: - - *287 - - *288 - - *390 + - *284 + - *285 + - *387 requestBody: required: true content: @@ -56862,9 +56404,9 @@ paths: description: Response content: application/json: - schema: *386 + schema: *383 examples: - default: *392 + default: *389 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/comments/1 @@ -56892,9 +56434,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/commits#list-pull-requests-associated-with-a-commit parameters: - - *287 - - *288 - - *390 + - *284 + - *285 + - *387 - *4 - *5 responses: @@ -56904,7 +56446,7 @@ paths: application/json: schema: type: array - items: &485 + items: &482 title: Pull Request Simple description: Pull Request Simple type: object @@ -57079,7 +56621,7 @@ paths: type: - array - 'null' - items: *289 + items: *286 head: type: object properties: @@ -57141,7 +56683,7 @@ paths: - review_comment - self author_association: *106 - auto_merge: *393 + auto_merge: *390 draft: description: Indicates whether or not the pull request is a draft. @@ -57181,7 +56723,7 @@ paths: - author_association - auto_merge examples: - default: &486 + default: &483 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -57718,11 +57260,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/commits#get-a-commit parameters: - - *287 - - *288 + - *284 + - *285 - *5 - *4 - - &394 + - &391 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)" @@ -57737,9 +57279,9 @@ paths: description: Response content: application/json: - schema: *389 + schema: *386 examples: - default: &471 + default: &468 value: url: https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e sha: 6dcb09b5b57875f334f61aebed695e2e4193db5e @@ -57849,11 +57391,11 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/runs#list-check-runs-for-a-git-reference parameters: - - *287 - - *288 - - *394 - - *395 - - *396 + - *284 + - *285 + - *391 + - *392 + - *393 - name: filter description: Filters check runs by their `completed_at` timestamp. `latest` returns the most recent check runs. @@ -57887,9 +57429,9 @@ paths: type: integer check_runs: type: array - items: *357 + items: *354 examples: - default: *397 + default: *394 headers: Link: *6 x-github: @@ -57914,9 +57456,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/checks/suites#list-check-suites-for-a-git-reference parameters: - - *287 - - *288 - - *394 + - *284 + - *285 + - *391 - name: app_id description: Filters check suites by GitHub App `id`. in: query @@ -57924,7 +57466,7 @@ paths: schema: type: integer example: 1 - - *395 + - *392 - *4 - *5 responses: @@ -57942,7 +57484,7 @@ paths: type: integer check_suites: type: array - items: *361 + items: *358 examples: default: value: @@ -58142,9 +57684,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/statuses#get-the-combined-status-for-a-specific-reference parameters: - - *287 - - *288 - - *394 + - *284 + - *285 + - *391 - *4 - *5 responses: @@ -58346,9 +57888,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/statuses#list-commit-statuses-for-a-reference parameters: - - *287 - - *288 - - *394 + - *284 + - *285 + - *391 - *4 - *5 responses: @@ -58358,7 +57900,7 @@ paths: application/json: schema: type: array - items: &526 + items: &523 title: Status description: The status of a commit. type: object @@ -58439,7 +57981,7 @@ paths: site_admin: false headers: Link: *6 - '301': *299 + '301': *296 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -58507,8 +58049,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/commits#compare-two-commits parameters: - - *287 - - *288 + - *284 + - *285 - *5 - *4 - name: basehead @@ -58556,8 +58098,8 @@ paths: format: uri examples: - https://github.com/octocat/Hello-World/compare/master...topic.patch - base_commit: *389 - merge_base_commit: *389 + base_commit: *386 + merge_base_commit: *386 status: type: string enum: @@ -58581,10 +58123,10 @@ paths: - 6 commits: type: array - items: *389 + items: *386 files: type: array - items: *398 + items: *395 required: - url - html_url @@ -58863,8 +58405,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#get-repository-content parameters: - - *287 - - *288 + - *284 + - *285 - name: path description: path parameter in: path @@ -59017,7 +58559,7 @@ paths: - type - url examples: - response-if-content-is-a-file: &399 + response-if-content-is-a-file: &396 summary: Response if content is a file value: type: file @@ -59154,7 +58696,7 @@ paths: - size - type - url - - &498 + - &495 title: Content File description: Content File type: object @@ -59372,7 +58914,7 @@ paths: - url - submodule_git_url examples: - response-if-content-is-a-file: *399 + response-if-content-is-a-file: *396 response-if-content-is-a-directory: summary: Response if content is a directory and the application/json media type is requested @@ -59441,7 +58983,7 @@ paths: html: https://github.com/jquery/qunit/tree/6ca3721222109997540bd6d9ccd396902e0ad2f9 '404': *24 '403': *41 - '302': &502 + '302': &499 description: Found '304': *40 x-github: @@ -59465,8 +59007,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#create-or-update-file-contents parameters: - - *287 - - *288 + - *284 + - *285 - name: path description: path parameter in: path @@ -59561,7 +59103,7 @@ paths: description: Response content: application/json: - schema: &400 + schema: &397 title: File Commit description: File Commit type: object @@ -59710,7 +59252,7 @@ paths: description: Response content: application/json: - schema: *400 + schema: *397 examples: example-for-creating-a-file: value: @@ -59761,7 +59303,7 @@ paths: schema: oneOf: - *22 - - &431 + - &428 description: Repository rule violation was detected type: object properties: @@ -59814,8 +59356,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#delete-a-file parameters: - - *287 - - *288 + - *284 + - *285 - name: path description: path parameter in: path @@ -59876,7 +59418,7 @@ paths: description: Response content: application/json: - schema: *400 + schema: *397 examples: default: value: @@ -59927,8 +59469,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-repository-contributors parameters: - - *287 - - *288 + - *284 + - *285 - name: anon description: Set to `1` or `true` to include anonymous contributors in results. in: query @@ -60052,8 +59594,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *185 - *186 - *187 @@ -60065,7 +59607,7 @@ paths: schema: type: string - *189 - - *401 + - *398 - *190 - *191 - *9 @@ -60096,7 +59638,7 @@ paths: application/json: schema: type: array - items: &405 + items: &402 type: object description: A Dependabot alert. properties: @@ -60131,7 +59673,7 @@ paths: - development - runtime - - security_advisory: *402 + security_advisory: *399 security_vulnerability: *94 url: *95 html_url: *96 @@ -60162,8 +59704,8 @@ paths: dismissal. maxLength: 280 fixed_at: *100 - auto_dismissed_at: *403 - dismissal_request: *404 + auto_dismissed_at: *400 + dismissal_request: *401 required: - number - state @@ -60390,9 +59932,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/alerts#get-a-dependabot-alert parameters: - - *287 - - *288 - - &406 + - *284 + - *285 + - &403 name: alert_number in: path description: |- @@ -60407,7 +59949,7 @@ paths: description: Response content: application/json: - schema: *405 + schema: *402 examples: default: value: @@ -60511,9 +60053,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/alerts#update-a-dependabot-alert parameters: - - *287 - - *288 - - *406 + - *284 + - *285 + - *403 requestBody: required: true content: @@ -60558,7 +60100,7 @@ paths: description: Response content: application/json: - schema: *405 + schema: *402 examples: default: value: @@ -60687,8 +60229,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/secrets#list-repository-secrets parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -60706,7 +60248,7 @@ paths: type: integer secrets: type: array - items: &409 + items: &406 title: Dependabot Secret description: Set secrets for Dependabot. type: object @@ -60760,16 +60302,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/secrets#get-a-repository-public-key parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: *407 + schema: *404 examples: - default: *408 + default: *405 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -60789,15 +60331,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/secrets#get-a-repository-secret parameters: - - *287 - - *288 + - *284 + - *285 - *162 responses: '200': description: Response content: application/json: - schema: *409 + schema: *406 examples: default: value: @@ -60823,8 +60365,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/secrets#create-or-update-a-repository-secret parameters: - - *287 - - *288 + - *284 + - *285 - *162 requestBody: required: true @@ -60877,8 +60419,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependabot/secrets#delete-a-repository-secret parameters: - - *287 - - *288 + - *284 + - *285 - *162 responses: '204': @@ -60901,8 +60443,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependency-graph/dependency-review#get-a-diff-of-the-dependencies-between-commits parameters: - - *287 - - *288 + - *284 + - *285 - 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 @@ -61076,8 +60618,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependency-graph/sboms#export-a-software-bill-of-materials-sbom-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -61323,8 +60865,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/dependency-graph/dependency-submission#create-a-snapshot-of-dependencies-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -61407,7 +60949,7 @@ paths: - version - url additionalProperties: false - metadata: &410 + metadata: &407 title: metadata description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -61446,7 +60988,7 @@ paths: examples: - "/src/build/package-lock.json" additionalProperties: false - metadata: *410 + metadata: *407 resolved: type: object description: A collection of resolved package dependencies. @@ -61460,7 +61002,7 @@ paths: pattern: "^pkg" examples: - pkg:/npm/%40actions/http-client@1.0.11 - metadata: *410 + metadata: *407 relationship: type: string description: A notation of whether a dependency is requested @@ -61593,8 +61135,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/deployments#list-deployments parameters: - - *287 - - *288 + - *284 + - *285 - name: sha description: The SHA recorded at creation time. in: query @@ -61635,9 +61177,9 @@ paths: application/json: schema: type: array - items: *411 + items: *408 examples: - default: *412 + default: *409 headers: Link: *6 x-github: @@ -61703,8 +61245,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/deployments#create-a-deployment parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -61786,7 +61328,7 @@ paths: description: Response content: application/json: - schema: *411 + schema: *408 examples: simple-example: summary: Simple example @@ -61859,9 +61401,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/deployments#get-a-deployment parameters: - - *287 - - *288 - - &413 + - *284 + - *285 + - &410 name: deployment_id description: deployment_id parameter in: path @@ -61873,7 +61415,7 @@ paths: description: Response content: application/json: - schema: *411 + schema: *408 examples: default: value: @@ -61938,9 +61480,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/deployments#delete-a-deployment parameters: - - *287 - - *288 - - *413 + - *284 + - *285 + - *410 responses: '204': description: Response @@ -61962,9 +61504,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/statuses#list-deployment-statuses parameters: - - *287 - - *288 - - *413 + - *284 + - *285 + - *410 - *4 - *5 responses: @@ -61974,7 +61516,7 @@ paths: application/json: schema: type: array - items: &414 + items: &411 title: Deployment Status description: The status of a deployment. type: object @@ -62138,9 +61680,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/statuses#create-a-deployment-status parameters: - - *287 - - *288 - - *413 + - *284 + - *285 + - *410 requestBody: required: true content: @@ -62215,9 +61757,9 @@ paths: description: Response content: application/json: - schema: *414 + schema: *411 examples: - default: &415 + default: &412 value: url: https://api.github.com/repos/octocat/example/deployments/42/statuses/1 id: 1 @@ -62273,9 +61815,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/statuses#get-a-deployment-status parameters: - - *287 - - *288 - - *413 + - *284 + - *285 + - *410 - name: status_id in: path required: true @@ -62286,9 +61828,9 @@ paths: description: Response content: application/json: - schema: *414 + schema: *411 examples: - default: *415 + default: *412 '404': *24 x-github: githubCloudOnly: false @@ -62313,8 +61855,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#create-a-repository-dispatch-event parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -62371,8 +61913,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/environments#list-environments parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -62390,7 +61932,7 @@ paths: - 5 environments: type: array - items: &417 + items: &414 title: Environment description: Details of a deployment environment type: object @@ -62452,7 +61994,7 @@ paths: type: string examples: - wait_timer - wait_timer: &419 + wait_timer: &416 type: integer description: The amount of time to delay a job after the job is initially triggered. The time (in minutes) @@ -62494,11 +62036,11 @@ paths: items: type: object properties: - type: *416 + type: *413 reviewer: anyOf: - *17 - - *289 + - *286 required: - id - node_id @@ -62521,7 +62063,7 @@ paths: - id - node_id - type - deployment_branch_policy: &420 + deployment_branch_policy: &417 type: - object - 'null' @@ -62637,9 +62179,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/environments#get-an-environment parameters: - - *287 - - *288 - - &418 + - *284 + - *285 + - &415 name: environment_name in: path required: true @@ -62652,9 +62194,9 @@ paths: description: Response content: application/json: - schema: *417 + schema: *414 examples: - default: &421 + default: &418 value: id: 161088068 node_id: MDExOkVudmlyb25tZW50MTYxMDg4MDY4 @@ -62737,9 +62279,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/environments#create-or-update-an-environment parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 requestBody: required: false content: @@ -62749,7 +62291,7 @@ paths: - object - 'null' properties: - wait_timer: *419 + wait_timer: *416 prevent_self_review: type: boolean description: Whether or not a user who created the job is prevented @@ -62768,14 +62310,14 @@ paths: items: type: object properties: - type: *416 + type: *413 id: type: integer description: The id of the user or team who can review the deployment examples: - 4532992 - deployment_branch_policy: *420 + deployment_branch_policy: *417 additionalProperties: false examples: default: @@ -62795,9 +62337,9 @@ paths: description: Response content: application/json: - schema: *417 + schema: *414 examples: - default: *421 + default: *418 '422': description: Validation error when the environment name is invalid or when `protected_branches` and `custom_branch_policies` in `deployment_branch_policy` @@ -62821,9 +62363,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/environments#delete-an-environment parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 responses: '204': description: Default response @@ -62848,9 +62390,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/branch-policies#list-deployment-branch-policies parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 - *4 - *5 responses: @@ -62869,7 +62411,7 @@ paths: - 2 branch_policies: type: array - items: &422 + items: &419 title: Deployment branch policy description: Details of a deployment branch or tag policy. type: object @@ -62930,9 +62472,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/branch-policies#create-a-deployment-branch-policy parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 requestBody: required: true content: @@ -62980,9 +62522,9 @@ paths: description: Response content: application/json: - schema: *422 + schema: *419 examples: - example-wildcard: &423 + example-wildcard: &420 value: id: 364662 node_id: MDE2OkdhdGVCcmFuY2hQb2xpY3kzNjQ2NjI= @@ -63024,10 +62566,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/branch-policies#get-a-deployment-branch-policy parameters: - - *287 - - *288 - - *418 - - &424 + - *284 + - *285 + - *415 + - &421 name: branch_policy_id in: path required: true @@ -63039,9 +62581,9 @@ paths: description: Response content: application/json: - schema: *422 + schema: *419 examples: - default: *423 + default: *420 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63060,10 +62602,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/branch-policies#update-a-deployment-branch-policy parameters: - - *287 - - *288 - - *418 - - *424 + - *284 + - *285 + - *415 + - *421 requestBody: required: true content: @@ -63092,9 +62634,9 @@ paths: description: Response content: application/json: - schema: *422 + schema: *419 examples: - default: *423 + default: *420 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63113,10 +62655,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/branch-policies#delete-a-deployment-branch-policy parameters: - - *287 - - *288 - - *418 - - *424 + - *284 + - *285 + - *415 + - *421 responses: '204': description: Response @@ -63141,9 +62683,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/protection-rules#get-all-deployment-protection-rules-for-an-environment parameters: - - *418 - - *288 - - *287 + - *415 + - *285 + - *284 responses: '200': description: List of deployment protection rules @@ -63160,7 +62702,7 @@ paths: - 10 custom_deployment_protection_rules: type: array - items: &425 + items: &422 title: Deployment protection rule description: Deployment protection rule type: object @@ -63182,7 +62724,7 @@ paths: for the environment. examples: - true - app: &426 + app: &423 title: Custom deployment protection rule app description: A GitHub App that is providing a custom deployment protection rule. @@ -63285,9 +62827,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/protection-rules#create-a-custom-deployment-protection-rule-on-an-environment parameters: - - *418 - - *288 - - *287 + - *415 + - *285 + - *284 requestBody: content: application/json: @@ -63308,9 +62850,9 @@ paths: description: The enabled custom deployment protection rule content: application/json: - schema: *425 + schema: *422 examples: - default: &427 + default: &424 value: id: 3 node_id: IEH37kRlcGxveW1lbnRTdGF0ddiv @@ -63345,9 +62887,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/protection-rules#list-custom-deployment-rule-integrations-available-for-an-environment parameters: - - *418 - - *288 - - *287 + - *415 + - *285 + - *284 - *5 - *4 responses: @@ -63367,7 +62909,7 @@ paths: - 35 available_custom_deployment_protection_rule_integrations: type: array - items: *426 + items: *423 examples: default: value: @@ -63402,10 +62944,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/protection-rules#get-a-custom-deployment-protection-rule parameters: - - *287 - - *288 - - *418 - - &428 + - *284 + - *285 + - *415 + - &425 name: protection_rule_id description: The unique identifier of the protection rule. in: path @@ -63417,9 +62959,9 @@ paths: description: Response content: application/json: - schema: *425 + schema: *422 examples: - default: *427 + default: *424 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63440,10 +62982,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deployments/protection-rules#disable-a-custom-protection-rule-for-an-environment parameters: - - *418 - - *288 - - *287 - - *428 + - *415 + - *285 + - *284 + - *425 responses: '204': description: Response @@ -63469,9 +63011,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#list-environment-secrets parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 - *4 - *5 responses: @@ -63489,9 +63031,9 @@ paths: type: integer secrets: type: array - items: *324 + items: *321 examples: - default: *325 + default: *322 headers: Link: *6 x-github: @@ -63516,17 +63058,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#get-an-environment-public-key parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 responses: '200': description: Response content: application/json: - schema: *326 + schema: *323 examples: - default: *327 + default: *324 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63548,18 +63090,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#get-an-environment-secret parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 - *162 responses: '200': description: Response content: application/json: - schema: *324 + schema: *321 examples: - default: *429 + default: *426 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63581,9 +63123,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#create-or-update-an-environment-secret parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 - *162 requestBody: required: true @@ -63641,9 +63183,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/secrets#delete-an-environment-secret parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 - *162 responses: '204': @@ -63669,10 +63211,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#list-environment-variables parameters: - - *287 - - *288 - - *418 - - *311 + - *284 + - *285 + - *415 + - *308 - *5 responses: '200': @@ -63689,9 +63231,9 @@ paths: type: integer variables: type: array - items: *328 + items: *325 examples: - default: *329 + default: *326 headers: Link: *6 x-github: @@ -63714,9 +63256,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#create-an-environment-variable parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 requestBody: required: true content: @@ -63768,18 +63310,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#get-an-environment-variable parameters: - - *287 - - *288 - - *418 + - *284 + - *285 + - *415 - *165 responses: '200': description: Response content: application/json: - schema: *328 + schema: *325 examples: - default: *430 + default: *427 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -63800,10 +63342,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#update-an-environment-variable parameters: - - *287 - - *288 + - *284 + - *285 - *165 - - *418 + - *415 requestBody: required: true content: @@ -63845,10 +63387,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/actions/variables#delete-an-environment-variable parameters: - - *287 - - *288 + - *284 + - *285 - *165 - - *418 + - *415 responses: '204': description: Response @@ -63870,8 +63412,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/events#list-repository-events parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -63949,8 +63491,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/forks#list-forks parameters: - - *287 - - *288 + - *284 + - *285 - name: sort description: The sort order. `stargazers` will sort by star count. in: query @@ -64109,8 +63651,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/forks#create-a-fork parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -64143,9 +63685,9 @@ paths: description: Response content: application/json: - schema: *298 + schema: *295 examples: - default: *300 + default: *297 '400': *32 '422': *33 '403': *41 @@ -64166,8 +63708,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/blobs#create-a-blob parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -64227,7 +63769,7 @@ paths: schema: oneOf: - *137 - - *431 + - *428 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -64252,8 +63794,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/blobs#get-a-blob parameters: - - *287 - - *288 + - *284 + - *285 - name: file_sha in: path required: true @@ -64353,8 +63895,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/commits#create-a-commit parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -64463,7 +64005,7 @@ paths: description: Response content: application/json: - schema: &432 + schema: &429 title: Git Commit description: Low-level Git commit operations within a repository type: object @@ -64682,15 +64224,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/commits#get-a-commit-object parameters: - - *287 - - *288 - - *390 + - *284 + - *285 + - *387 responses: '200': description: Response content: application/json: - schema: *432 + schema: *429 examples: default: value: @@ -64743,9 +64285,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/refs#list-matching-references parameters: - - *287 - - *288 - - &433 + - *284 + - *285 + - &430 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. @@ -64762,7 +64304,7 @@ paths: application/json: schema: type: array - items: &434 + items: &431 title: Git Reference description: Git references within a repository type: object @@ -64838,17 +64380,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/refs#get-a-reference parameters: - - *287 - - *288 - - *433 + - *284 + - *285 + - *430 responses: '200': description: Response content: application/json: - schema: *434 + schema: *431 examples: - default: &435 + default: &432 value: ref: refs/heads/featureA node_id: MDM6UmVmcmVmcy9oZWFkcy9mZWF0dXJlQQ== @@ -64877,8 +64419,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/refs#create-a-reference parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -64907,9 +64449,9 @@ paths: description: Response content: application/json: - schema: *434 + schema: *431 examples: - default: *435 + default: *432 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/git/refs/heads/featureA @@ -64935,9 +64477,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/refs#update-a-reference parameters: - - *287 - - *288 - - *433 + - *284 + - *285 + - *430 requestBody: required: true content: @@ -64966,9 +64508,9 @@ paths: description: Response content: application/json: - schema: *434 + schema: *431 examples: - default: *435 + default: *432 '422': *33 '409': *139 x-github: @@ -64986,9 +64528,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/refs#delete-a-reference parameters: - - *287 - - *288 - - *433 + - *284 + - *285 + - *430 responses: '204': description: Response @@ -65043,8 +64585,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/tags#create-a-tag-object parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -65111,7 +64653,7 @@ paths: description: Response content: application/json: - schema: &437 + schema: &434 title: Git Tag description: Metadata for a Git tag type: object @@ -65167,7 +64709,7 @@ paths: - sha - type - url - verification: *436 + verification: *433 required: - sha - url @@ -65177,7 +64719,7 @@ paths: - tag - message examples: - default: &438 + default: &435 value: node_id: MDM6VGFnOTQwYmQzMzYyNDhlZmFlMGY5ZWU1YmM3YjJkNWM5ODU4ODdiMTZhYw== tag: v0.0.1 @@ -65247,8 +64789,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/tags#get-a-tag parameters: - - *287 - - *288 + - *284 + - *285 - name: tag_sha in: path required: true @@ -65259,9 +64801,9 @@ paths: description: Response content: application/json: - schema: *437 + schema: *434 examples: - default: *438 + default: *435 '404': *24 '409': *139 x-github: @@ -65285,8 +64827,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/trees#create-a-tree parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -65360,7 +64902,7 @@ paths: description: Response content: application/json: - schema: &439 + schema: &436 title: Git Tree description: The hierarchy between files in a Git repository. type: object @@ -65462,8 +65004,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/git/trees#get-a-tree parameters: - - *287 - - *288 + - *284 + - *285 - name: tree_sha description: The SHA1 value or ref (branch or tag) name of the tree. in: path @@ -65486,7 +65028,7 @@ paths: description: Response content: application/json: - schema: *439 + schema: *436 examples: default-response: summary: Default response @@ -65545,8 +65087,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#list-repository-webhooks parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -65556,7 +65098,7 @@ paths: application/json: schema: type: array - items: &440 + items: &437 title: Webhook description: Webhooks for repositories. type: object @@ -65619,7 +65161,7 @@ paths: format: uri examples: - https://api.github.com/repos/octocat/Hello-World/hooks/1/deliveries - last_response: &634 + last_response: &629 title: Hook Response type: object properties: @@ -65696,8 +65238,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#create-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -65750,9 +65292,9 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: &441 + default: &438 value: type: Repository id: 12345678 @@ -65800,17 +65342,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#get-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 responses: '200': description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '404': *24 x-github: githubCloudOnly: false @@ -65830,8 +65372,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#update-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 requestBody: required: true @@ -65877,9 +65419,9 @@ paths: description: Response content: application/json: - schema: *440 + schema: *437 examples: - default: *441 + default: *438 '422': *33 '404': *24 x-github: @@ -65900,8 +65442,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#delete-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 responses: '204': @@ -65926,8 +65468,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#get-a-webhook-configuration-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *3 responses: '200': @@ -65955,8 +65497,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#update-a-webhook-configuration-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *3 requestBody: required: false @@ -66001,8 +65543,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#list-deliveries-for-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 - *4 - *199 @@ -66034,8 +65576,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#get-a-delivery-for-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 - *34 responses: @@ -66064,8 +65606,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#redeliver-a-delivery-for-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 - *34 responses: @@ -66089,8 +65631,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#ping-a-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 responses: '204': @@ -66116,8 +65658,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/webhooks#test-the-push-repository-webhook parameters: - - *287 - - *288 + - *284 + - *285 - *3 responses: '204': @@ -66142,8 +65684,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/apps/apps#get-a-repository-installation-for-the-authenticated-app parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -66151,8 +65693,8 @@ paths: application/json: schema: *37 examples: - default: *442 - '301': *299 + default: *439 + '301': *296 '404': *24 x-github: githubCloudOnly: false @@ -66171,8 +65713,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/invitations#list-repository-invitations parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -66182,7 +65724,7 @@ paths: application/json: schema: type: array - items: &443 + items: &440 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -66244,7 +65786,7 @@ paths: - html_url - created_at examples: - default: &585 + default: &580 value: - id: 1 repository: @@ -66375,9 +65917,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/invitations#update-a-repository-invitation parameters: - - *287 - - *288 - - &444 + - *284 + - *285 + - &441 name: invitation_id description: The unique identifier of the invitation. in: path @@ -66412,7 +65954,7 @@ paths: description: Response content: application/json: - schema: *443 + schema: *440 examples: default: value: @@ -66543,9 +66085,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/invitations#delete-a-repository-invitation parameters: - - *287 - - *288 - - *444 + - *284 + - *285 + - *441 responses: '204': description: Response @@ -66576,8 +66118,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/issues#list-repository-issues parameters: - - *287 - - *288 + - *284 + - *285 - 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 @@ -66798,7 +66340,7 @@ paths: state_reason: completed headers: Link: *6 - '301': *299 + '301': *296 '422': *33 '404': *24 x-github: @@ -66827,8 +66369,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/issues#create-an-issue parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -66920,7 +66462,7 @@ paths: application/json: schema: *105 examples: - default: &450 + default: &447 value: id: 1 node_id: MDU6SXNzdWUx @@ -67104,9 +66646,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/comments#list-issue-comments-for-a-repository parameters: - - *287 - - *288 - - &491 + - *284 + - *285 + - &488 name: sort description: The property to sort the results by. in: query @@ -67136,9 +66678,9 @@ paths: application/json: schema: type: array - items: *445 + items: *442 examples: - default: &452 + default: &449 value: - id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -67196,17 +66738,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/comments#get-an-issue-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 responses: '200': description: Response content: application/json: - schema: *445 + schema: *442 examples: - default: &446 + default: &443 value: id: 1 node_id: MDEyOklzc3VlQ29tbWVudDE= @@ -67260,8 +66802,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/comments#update-an-issue-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 requestBody: required: true @@ -67284,9 +66826,9 @@ paths: description: Response content: application/json: - schema: *445 + schema: *442 examples: - default: *446 + default: *443 '422': *33 x-github: githubCloudOnly: false @@ -67304,8 +66846,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/comments#delete-an-issue-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 responses: '204': @@ -67326,8 +66868,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#list-reactions-for-an-issue-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#about-reactions). @@ -67354,9 +66896,9 @@ paths: application/json: schema: type: array - items: *387 + items: *384 examples: - default: *447 + default: *444 headers: Link: *6 '404': *24 @@ -67377,8 +66919,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#create-reaction-for-an-issue-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 requestBody: required: true @@ -67411,16 +66953,16 @@ paths: description: Reaction exists content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '201': description: Reaction created content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '422': *33 x-github: githubCloudOnly: false @@ -67442,10 +66984,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#delete-an-issue-comment-reaction parameters: - - *287 - - *288 + - *284 + - *285 - *122 - - *448 + - *445 responses: '204': description: Response @@ -67465,8 +67007,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/events#list-issue-events-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -67476,7 +67018,7 @@ paths: application/json: schema: type: array - items: &449 + items: &446 title: Issue Event description: Issue Event type: object @@ -67556,7 +67098,7 @@ paths: anyOf: - type: 'null' - *17 - requested_team: *289 + requested_team: *286 dismissed_review: title: Issue Event Dismissed Review type: object @@ -67815,8 +67357,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/events#get-an-issue-event parameters: - - *287 - - *288 + - *284 + - *285 - name: event_id in: path required: true @@ -67827,7 +67369,7 @@ paths: description: Response content: application/json: - schema: *449 + schema: *446 examples: default: value: @@ -68053,9 +67595,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue parameters: - - *287 - - *288 - - &451 + - *284 + - *285 + - &448 name: issue_number description: The number that identifies the issue. in: path @@ -68069,8 +67611,8 @@ paths: application/json: schema: *105 examples: - default: *450 - '301': *299 + default: *447 + '301': *296 '404': *24 '410': *233 '304': *40 @@ -68097,9 +67639,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/issues#update-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: false content: @@ -68220,11 +67762,11 @@ paths: application/json: schema: *105 examples: - default: *450 + default: *447 '422': *33 '503': *102 '403': *41 - '301': *299 + '301': *296 '404': *24 '410': *233 x-github: @@ -68244,9 +67786,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/assignees#add-assignees-to-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: false content: @@ -68274,7 +67816,7 @@ paths: application/json: schema: *105 examples: - default: *450 + default: *447 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -68290,9 +67832,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/assignees#remove-assignees-from-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: content: application/json: @@ -68319,7 +67861,7 @@ paths: application/json: schema: *105 examples: - default: *450 + default: *447 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -68341,9 +67883,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/assignees#check-if-a-user-can-be-assigned-to-a-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - name: assignee in: path required: true @@ -68383,9 +67925,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/comments#list-issue-comments parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - *113 - *4 - *5 @@ -68396,9 +67938,9 @@ paths: application/json: schema: type: array - items: *445 + items: *442 examples: - default: *452 + default: *449 headers: Link: *6 '404': *24 @@ -68431,9 +67973,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/comments#create-an-issue-comment parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: true content: @@ -68455,9 +67997,9 @@ paths: description: Response content: application/json: - schema: *445 + schema: *442 examples: - default: *446 + default: *443 headers: Location: example: https://api.github.com/repos/octocat/Hello-World/issues/comments/1 @@ -68484,9 +68026,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/events#list-issue-events parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - *4 - *5 responses: @@ -68500,7 +68042,7 @@ paths: title: Issue Event for Issue description: Issue Event for Issue anyOf: - - &454 + - &451 title: Labeled Issue Event description: Labeled Issue Event type: object @@ -68549,7 +68091,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &455 + - &452 title: Unlabeled Issue Event description: Unlabeled Issue Event type: object @@ -68677,7 +68219,7 @@ paths: - performed_via_github_app - assignee - assigner - - &456 + - &453 title: Milestoned Issue Event description: Milestoned Issue Event type: object @@ -68723,7 +68265,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &457 + - &454 title: Demilestoned Issue Event description: Demilestoned Issue Event type: object @@ -68769,7 +68311,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &458 + - &455 title: Renamed Issue Event description: Renamed Issue Event type: object @@ -68818,7 +68360,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &459 + - &456 title: Review Requested Issue Event description: Review Requested Issue Event type: object @@ -68847,7 +68389,7 @@ paths: - type: 'null' - *23 review_requester: *17 - requested_team: *289 + requested_team: *286 requested_reviewer: *17 required: - review_requester @@ -68860,7 +68402,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &460 + - &457 title: Review Request Removed Issue Event description: Review Request Removed Issue Event type: object @@ -68889,7 +68431,7 @@ paths: - type: 'null' - *23 review_requester: *17 - requested_team: *289 + requested_team: *286 requested_reviewer: *17 required: - review_requester @@ -68902,7 +68444,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &461 + - &458 title: Review Dismissed Issue Event description: Review Dismissed Issue Event type: object @@ -68958,7 +68500,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &462 + - &459 title: Locked Issue Event description: Locked Issue Event type: object @@ -69003,7 +68545,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &463 + - &460 title: Added to Project Issue Event description: Added to Project Issue Event type: object @@ -69064,7 +68606,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &464 + - &461 title: Moved Column in Project Issue Event description: Moved Column in Project Issue Event type: object @@ -69125,7 +68667,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &465 + - &462 title: Removed from Project Issue Event description: Removed from Project Issue Event type: object @@ -69186,7 +68728,7 @@ paths: - commit_url - created_at - performed_via_github_app - - &466 + - &463 title: Converted Note to Issue Issue Event description: Converted Note to Issue Issue Event type: object @@ -69296,9 +68838,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#list-labels-for-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - *4 - *5 responses: @@ -69310,7 +68852,7 @@ paths: type: array items: *104 examples: - default: &453 + default: &450 value: - id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -69328,7 +68870,7 @@ paths: default: false headers: Link: *6 - '301': *299 + '301': *296 '404': *24 '410': *233 x-github: @@ -69347,9 +68889,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#add-labels-to-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: false content: @@ -69410,8 +68952,8 @@ paths: type: array items: *104 examples: - default: *453 - '301': *299 + default: *450 + '301': *296 '404': *24 '410': *233 '422': *33 @@ -69430,9 +68972,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#set-labels-for-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: false content: @@ -69494,8 +69036,8 @@ paths: type: array items: *104 examples: - default: *453 - '301': *299 + default: *450 + '301': *296 '404': *24 '410': *233 '422': *33 @@ -69514,13 +69056,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#remove-all-labels-from-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 responses: '204': description: Response - '301': *299 + '301': *296 '404': *24 '410': *233 x-github: @@ -69541,9 +69083,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#remove-a-label-from-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - name: name in: path required: true @@ -69567,7 +69109,7 @@ paths: description: Something isn't working color: f29513 default: true - '301': *299 + '301': *296 '404': *24 '410': *233 x-github: @@ -69589,9 +69131,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/issues#lock-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: false content: @@ -69638,9 +69180,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/issues#unlock-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 responses: '204': description: Response @@ -69662,9 +69204,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#list-reactions-for-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. @@ -69690,9 +69232,9 @@ paths: application/json: schema: type: array - items: *387 + items: *384 examples: - default: *447 + default: *444 headers: Link: *6 '404': *24 @@ -69714,9 +69256,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#create-reaction-for-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 requestBody: required: true content: @@ -69748,16 +69290,16 @@ paths: description: Response content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '201': description: Response content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '422': *33 x-github: githubCloudOnly: false @@ -69779,10 +69321,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#delete-an-issue-reaction parameters: - - *287 - - *288 - - *451 + - *284 + - *285 - *448 + - *445 responses: '204': description: Response @@ -69802,9 +69344,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/timeline#list-timeline-events-for-an-issue parameters: - - *287 - - *288 - - *451 + - *284 + - *285 + - *448 - *4 - *5 responses: @@ -69819,6 +69361,9 @@ paths: description: Timeline Event type: object anyOf: + - *451 + - *452 + - *453 - *454 - *455 - *456 @@ -69829,9 +69374,6 @@ paths: - *461 - *462 - *463 - - *464 - - *465 - - *466 - title: Timeline Comment Event description: Timeline Comment Event type: object @@ -70155,7 +69697,7 @@ paths: type: string comments: type: array - items: &487 + items: &484 title: Pull Request Review Comment description: Pull Request Review Comments are comments on a portion of the Pull Request's diff. @@ -70396,7 +69938,7 @@ paths: type: string comments: type: array - items: *386 + items: *383 - title: Timeline Assigned Issue Event description: Timeline Assigned Issue Event type: object @@ -70688,8 +70230,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deploy-keys/deploy-keys#list-deploy-keys parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -70699,7 +70241,7 @@ paths: application/json: schema: type: array - items: &467 + items: &464 title: Deploy Key description: An SSH key granting access to a single repository. type: object @@ -70765,8 +70307,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deploy-keys/deploy-keys#create-a-deploy-key parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -70802,9 +70344,9 @@ paths: description: Response content: application/json: - schema: *467 + schema: *464 examples: - default: &468 + default: &465 value: id: 1 key: ssh-rsa AAA... @@ -70837,9 +70379,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deploy-keys/deploy-keys#get-a-deploy-key parameters: - - *287 - - *288 - - &469 + - *284 + - *285 + - &466 name: key_id description: The unique identifier of the key. in: path @@ -70851,9 +70393,9 @@ paths: description: Response content: application/json: - schema: *467 + schema: *464 examples: - default: *468 + default: *465 '404': *24 x-github: githubCloudOnly: false @@ -70871,9 +70413,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/deploy-keys/deploy-keys#delete-a-deploy-key parameters: - - *287 - - *288 - - *469 + - *284 + - *285 + - *466 responses: '204': description: Response @@ -70893,8 +70435,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#list-labels-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -70906,7 +70448,7 @@ paths: type: array items: *104 examples: - default: *453 + default: *450 headers: Link: *6 '404': *24 @@ -70927,8 +70469,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#create-a-label parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -70966,7 +70508,7 @@ paths: application/json: schema: *104 examples: - default: &470 + default: &467 value: id: 208045946 node_id: MDU6TGFiZWwyMDgwNDU5NDY= @@ -70998,8 +70540,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#get-a-label parameters: - - *287 - - *288 + - *284 + - *285 - name: name in: path required: true @@ -71012,7 +70554,7 @@ paths: application/json: schema: *104 examples: - default: *470 + default: *467 '404': *24 x-github: githubCloudOnly: false @@ -71029,8 +70571,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#update-a-label parameters: - - *287 - - *288 + - *284 + - *285 - name: name in: path required: true @@ -71095,8 +70637,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#delete-a-label parameters: - - *287 - - *288 + - *284 + - *285 - name: name in: path required: true @@ -71122,8 +70664,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-repository-languages parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -71159,8 +70701,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/lfs#enable-git-lfs-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '202': *140 '403': @@ -71188,8 +70730,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/lfs#disable-git-lfs-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -71215,9 +70757,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/licenses/licenses#get-the-license-for-a-repository parameters: - - *287 - - *288 - - *375 + - *284 + - *285 + - *372 responses: '200': description: Response @@ -71364,8 +70906,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -71430,8 +70972,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/branches/branches#merge-a-branch parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -71465,9 +71007,9 @@ paths: description: Successful Response (The resulting merge commit) content: application/json: - schema: *389 + schema: *386 examples: - default: *471 + default: *468 '204': description: Response when already merged '404': @@ -71492,8 +71034,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/milestones#list-milestones parameters: - - *287 - - *288 + - *284 + - *285 - name: state description: The state of the milestone. Either `open`, `closed`, or `all`. in: query @@ -71590,8 +71132,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/milestones#create-a-milestone parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -71633,7 +71175,7 @@ paths: application/json: schema: *109 examples: - default: &472 + default: &469 value: url: https://api.github.com/repos/octocat/Hello-World/milestones/1 html_url: https://github.com/octocat/Hello-World/milestones/v1.0 @@ -71692,9 +71234,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/milestones#get-a-milestone parameters: - - *287 - - *288 - - &473 + - *284 + - *285 + - &470 name: milestone_number description: The number that identifies the milestone. in: path @@ -71708,7 +71250,7 @@ paths: application/json: schema: *109 examples: - default: *472 + default: *469 '404': *24 x-github: githubCloudOnly: false @@ -71725,9 +71267,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/milestones#update-a-milestone parameters: - - *287 - - *288 - - *473 + - *284 + - *285 + - *470 requestBody: required: false content: @@ -71767,7 +71309,7 @@ paths: application/json: schema: *109 examples: - default: *472 + default: *469 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -71783,9 +71325,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/milestones#delete-a-milestone parameters: - - *287 - - *288 - - *473 + - *284 + - *285 + - *470 responses: '204': description: Response @@ -71806,9 +71348,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/issues/labels#list-labels-for-issues-in-a-milestone parameters: - - *287 - - *288 - - *473 + - *284 + - *285 + - *470 - *4 - *5 responses: @@ -71820,7 +71362,7 @@ paths: type: array items: *104 examples: - default: *453 + default: *450 headers: Link: *6 x-github: @@ -71839,12 +71381,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/notifications#list-repository-notifications-for-the-authenticated-user parameters: - - *287 - - *288 - - *474 - - *475 + - *284 + - *285 + - *471 + - *472 - *113 - - *476 + - *473 - *4 - *5 responses: @@ -71856,7 +71398,7 @@ paths: type: array items: *130 examples: - default: *477 + default: *474 headers: Link: *6 x-github: @@ -71880,8 +71422,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/notifications#mark-repository-notifications-as-read parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -71939,14 +71481,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#get-a-apiname-pages-site parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: &478 + schema: &475 title: GitHub Pages description: The configuration for GitHub Pages for a repository. type: object @@ -72090,7 +71632,7 @@ paths: - custom_404 - public examples: - default: &479 + default: &476 value: url: https://api.github.com/repos/github/developer.github.com/pages status: built @@ -72131,8 +71673,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#create-a-apiname-pages-site parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -72187,9 +71729,9 @@ paths: description: Response content: application/json: - schema: *478 + schema: *475 examples: - default: *479 + default: *476 '422': *33 '409': *139 x-github: @@ -72212,8 +71754,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#update-information-about-a-apiname-pages-site parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -72313,8 +71855,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#delete-a-apiname-pages-site parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -72340,8 +71882,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#list-apiname-pages-builds parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -72351,7 +71893,7 @@ paths: application/json: schema: type: array - items: &480 + items: &477 title: Page Build description: Page Build type: object @@ -72443,8 +71985,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#request-a-apiname-pages-build parameters: - - *287 - - *288 + - *284 + - *285 responses: '201': description: Response @@ -72491,16 +72033,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#get-latest-pages-build parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: *480 + schema: *477 examples: - default: &481 + default: &478 value: url: https://api.github.com/repos/github/developer.github.com/pages/builds/5472601 status: built @@ -72548,8 +72090,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#get-apiname-pages-build parameters: - - *287 - - *288 + - *284 + - *285 - name: build_id in: path required: true @@ -72560,9 +72102,9 @@ paths: description: Response content: application/json: - schema: *480 + schema: *477 examples: - default: *481 + default: *478 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -72582,8 +72124,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#create-a-github-pages-deployment parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -72686,9 +72228,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#get-the-status-of-a-github-pages-deployment parameters: - - *287 - - *288 - - &482 + - *284 + - *285 + - &479 name: pages_deployment_id description: The ID of the Pages deployment. You can also give the commit SHA of the deployment. @@ -72746,9 +72288,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pages/pages#cancel-a-github-pages-deployment parameters: - - *287 - - *288 - - *482 + - *284 + - *285 + - *479 responses: '204': *229 '404': *24 @@ -72771,8 +72313,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/repo-pre-receive-hooks#list-pre-receive-hooks-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 - *9 @@ -72793,7 +72335,7 @@ paths: application/json: schema: type: array - items: &483 + items: &480 type: object properties: id: @@ -72827,17 +72369,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/repo-pre-receive-hooks#get-a-pre-receive-hook-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *16 responses: '200': description: Response content: application/json: - schema: *483 + schema: *480 examples: - default: &484 + default: &481 value: id: 42 name: Check Commits @@ -72859,15 +72401,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/repo-pre-receive-hooks#update-pre-receive-hook-enforcement-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *16 responses: '200': description: Response content: application/json: - schema: *483 + schema: *480 examples: default: value: @@ -72911,8 +72453,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/repo-pre-receive-hooks#remove-pre-receive-hook-enforcement-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *16 responses: '200': @@ -72920,9 +72462,9 @@ paths: global level. content: application/json: - schema: *483 + schema: *480 examples: - default: *484 + default: *481 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -72942,8 +72484,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/projects#list-repository-projects parameters: - - *287 - - *288 + - *284 + - *285 - name: state description: Indicates the state of the projects to return. in: query @@ -73028,8 +72570,8 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/projects-classic/projects#create-a-repository-project deprecated: true parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -73057,7 +72599,7 @@ paths: application/json: schema: *232 examples: - default: *296 + default: *293 '401': *39 '403': *41 '404': *24 @@ -73081,8 +72623,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/custom-properties#get-all-custom-property-values-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -73121,8 +72663,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/custom-properties#create-or-update-custom-property-values-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -73184,8 +72726,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#list-pull-requests parameters: - - *287 - - *288 + - *284 + - *285 - name: state description: Either `open`, `closed`, or `all` to filter by state. in: query @@ -73245,9 +72787,9 @@ paths: application/json: schema: type: array - items: *485 + items: *482 examples: - default: *486 + default: *483 headers: Link: *6 '304': *40 @@ -73279,8 +72821,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#create-a-pull-request parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -73349,7 +72891,7 @@ paths: application/json: schema: *111 examples: - default: &489 + default: &486 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/1347 id: 1 @@ -73876,8 +73418,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#list-review-comments-in-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - name: sort in: query required: false @@ -73906,9 +73448,9 @@ paths: application/json: schema: type: array - items: *487 + items: *484 examples: - default: &492 + default: &489 value: - url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -73985,17 +73527,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#get-a-review-comment-for-a-pull-request parameters: - - *287 - - *288 + - *284 + - *285 - *122 responses: '200': description: Response content: application/json: - schema: *487 + schema: *484 examples: - default: &488 + default: &485 value: url: https://api.github.com/repos/octocat/Hello-World/pulls/comments/1 pull_request_review_id: 42 @@ -74070,8 +73612,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#update-a-review-comment-for-a-pull-request parameters: - - *287 - - *288 + - *284 + - *285 - *122 requestBody: required: true @@ -74094,9 +73636,9 @@ paths: description: Response content: application/json: - schema: *487 + schema: *484 examples: - default: *488 + default: *485 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -74112,8 +73654,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#delete-a-review-comment-for-a-pull-request parameters: - - *287 - - *288 + - *284 + - *285 - *122 responses: '204': @@ -74135,8 +73677,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#list-reactions-for-a-pull-request-review-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#about-reactions). @@ -74163,9 +73705,9 @@ paths: application/json: schema: type: array - items: *387 + items: *384 examples: - default: *447 + default: *444 headers: Link: *6 '404': *24 @@ -74186,8 +73728,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#create-reaction-for-a-pull-request-review-comment parameters: - - *287 - - *288 + - *284 + - *285 - *122 requestBody: required: true @@ -74220,16 +73762,16 @@ paths: description: Reaction exists content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '201': description: Reaction created content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '422': *33 x-github: githubCloudOnly: false @@ -74251,10 +73793,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#delete-a-pull-request-comment-reaction parameters: - - *287 - - *288 + - *284 + - *285 - *122 - - *448 + - *445 responses: '204': description: Response @@ -74297,9 +73839,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#get-a-pull-request parameters: - - *287 - - *288 - - &490 + - *284 + - *285 + - &487 name: pull_number description: The number that identifies the pull request. in: path @@ -74314,7 +73856,7 @@ paths: application/json: schema: *111 examples: - default: *489 + default: *486 '304': *40 '404': *24 '406': @@ -74349,9 +73891,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#update-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: false content: @@ -74395,7 +73937,7 @@ paths: application/json: schema: *111 examples: - default: *489 + default: *486 '422': *33 '403': *41 x-github: @@ -74423,10 +73965,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#list-review-comments-on-a-pull-request parameters: - - *287 - - *288 - - *490 - - *491 + - *284 + - *285 + - *487 + - *488 - name: direction description: The direction to sort results. Ignored without `sort` parameter. in: query @@ -74446,9 +73988,9 @@ paths: application/json: schema: type: array - items: *487 + items: *484 examples: - default: *492 + default: *489 headers: Link: *6 x-github: @@ -74481,9 +74023,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#create-a-review-comment-for-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: true content: @@ -74589,7 +74131,7 @@ paths: description: Response content: application/json: - schema: *487 + schema: *484 examples: example-for-a-multi-line-comment: value: @@ -74677,9 +74219,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#create-a-reply-for-a-review-comment parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 - *122 requestBody: required: true @@ -74702,7 +74244,7 @@ paths: description: Response content: application/json: - schema: *487 + schema: *484 examples: default: value: @@ -74788,9 +74330,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#list-commits-on-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 - *4 - *5 responses: @@ -74800,9 +74342,9 @@ paths: application/json: schema: type: array - items: *389 + items: *386 examples: - default: *493 + default: *490 headers: Link: *6 x-github: @@ -74832,9 +74374,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#list-pull-requests-files parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 - *4 - *5 responses: @@ -74844,7 +74386,7 @@ paths: application/json: schema: type: array - items: *398 + items: *395 examples: default: value: @@ -74882,9 +74424,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#check-if-a-pull-request-has-been-merged parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 responses: '204': description: Response if pull request has been merged @@ -74907,9 +74449,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#merge-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: false content: @@ -75021,9 +74563,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/review-requests#get-all-requested-reviewers-for-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 responses: '200': description: Response @@ -75039,7 +74581,7 @@ paths: items: *17 teams: type: array - items: *289 + items: *286 required: - users - teams @@ -75098,9 +74640,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/review-requests#request-reviewers-for-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: false content: @@ -75137,7 +74679,7 @@ paths: description: Response content: application/json: - schema: *485 + schema: *482 examples: default: value: @@ -75673,9 +75215,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/review-requests#remove-requested-reviewers-from-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: true content: @@ -75709,7 +75251,7 @@ paths: description: Response content: application/json: - schema: *485 + schema: *482 examples: default: value: @@ -76214,9 +75756,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#list-reviews-for-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 - *4 - *5 responses: @@ -76226,7 +75768,7 @@ paths: application/json: schema: type: array - items: &494 + items: &491 title: Pull Request Review description: Pull Request Reviews are reviews on pull requests. type: object @@ -76382,9 +75924,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#create-a-review-for-a-pull-request parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: false content: @@ -76474,9 +76016,9 @@ paths: description: Response content: application/json: - schema: *494 + schema: *491 examples: - default: &496 + default: &493 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -76539,10 +76081,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#get-a-review-for-a-pull-request parameters: - - *287 - - *288 - - *490 - - &495 + - *284 + - *285 + - *487 + - &492 name: review_id description: The unique identifier of the review. in: path @@ -76554,9 +76096,9 @@ paths: description: Response content: application/json: - schema: *494 + schema: *491 examples: - default: &497 + default: &494 value: id: 80 node_id: MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA= @@ -76615,10 +76157,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#update-a-review-for-a-pull-request parameters: - - *287 - - *288 - - *490 - - *495 + - *284 + - *285 + - *487 + - *492 requestBody: required: true content: @@ -76641,7 +76183,7 @@ paths: description: Response content: application/json: - schema: *494 + schema: *491 examples: default: value: @@ -76703,18 +76245,18 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#delete-a-pending-review-for-a-pull-request parameters: - - *287 - - *288 - - *490 - - *495 + - *284 + - *285 + - *487 + - *492 responses: '200': description: Response content: application/json: - schema: *494 + schema: *491 examples: - default: *496 + default: *493 '422': *25 '404': *24 x-github: @@ -76741,10 +76283,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#list-comments-for-a-pull-request-review parameters: - - *287 - - *288 - - *490 - - *495 + - *284 + - *285 + - *487 + - *492 - *4 - *5 responses: @@ -77002,10 +76544,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#dismiss-a-review-for-a-pull-request parameters: - - *287 - - *288 - - *490 - - *495 + - *284 + - *285 + - *487 + - *492 requestBody: required: true content: @@ -77034,7 +76576,7 @@ paths: description: Response content: application/json: - schema: *494 + schema: *491 examples: default: value: @@ -77097,10 +76639,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/reviews#submit-a-review-for-a-pull-request parameters: - - *287 - - *288 - - *490 - - *495 + - *284 + - *285 + - *487 + - *492 requestBody: required: true content: @@ -77135,9 +76677,9 @@ paths: description: Response content: application/json: - schema: *494 + schema: *491 examples: - default: *497 + default: *494 '404': *24 '422': *25 '403': *41 @@ -77159,9 +76701,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/pulls/pulls#update-a-pull-request-branch parameters: - - *287 - - *288 - - *490 + - *284 + - *285 + - *487 requestBody: required: false content: @@ -77225,8 +76767,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#get-a-repository-readme parameters: - - *287 - - *288 + - *284 + - *285 - name: ref description: 'The name of the commit/branch/tag. Default: the repository’s default branch.' @@ -77239,9 +76781,9 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: &499 + default: &496 value: type: file encoding: base64 @@ -77283,8 +76825,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#get-a-repository-readme-for-a-directory parameters: - - *287 - - *288 + - *284 + - *285 - name: dir description: The alternate path to look for a README file in: path @@ -77304,9 +76846,9 @@ paths: description: Response content: application/json: - schema: *498 + schema: *495 examples: - default: *499 + default: *496 '404': *24 '422': *33 x-github: @@ -77328,8 +76870,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#list-releases parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -77339,7 +76881,7 @@ paths: application/json: schema: type: array - items: *500 + items: *497 examples: default: value: @@ -77433,8 +76975,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#create-a-release parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -77504,9 +77046,9 @@ paths: description: Response content: application/json: - schema: *500 + schema: *497 examples: - default: &505 + default: &502 value: url: https://api.github.com/repos/octocat/Hello-World/releases/1 html_url: https://github.com/octocat/Hello-World/releases/v1.0.0 @@ -77606,9 +77148,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/assets#get-a-release-asset parameters: - - *287 - - *288 - - &503 + - *284 + - *285 + - &500 name: asset_id description: The unique identifier of the asset. in: path @@ -77620,9 +77162,9 @@ paths: description: Response content: application/json: - schema: *501 + schema: *498 examples: - default: &504 + default: &501 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 @@ -77657,7 +77199,7 @@ paths: type: User site_admin: false '404': *24 - '302': *502 + '302': *499 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77673,9 +77215,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/assets#update-a-release-asset parameters: - - *287 - - *288 - - *503 + - *284 + - *285 + - *500 requestBody: required: false content: @@ -77704,9 +77246,9 @@ paths: description: Response content: application/json: - schema: *501 + schema: *498 examples: - default: *504 + default: *501 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77722,9 +77264,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/assets#delete-a-release-asset parameters: - - *287 - - *288 - - *503 + - *284 + - *285 + - *500 responses: '204': description: Response @@ -77748,8 +77290,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#generate-release-notes-content-for-a-release parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -77835,16 +77377,16 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#get-the-latest-release parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response content: application/json: - schema: *500 + schema: *497 examples: - default: *505 + default: *502 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -77861,8 +77403,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#get-a-release-by-tag-name parameters: - - *287 - - *288 + - *284 + - *285 - name: tag description: tag parameter in: path @@ -77875,9 +77417,9 @@ paths: description: Response content: application/json: - schema: *500 + schema: *497 examples: - default: *505 + default: *502 '404': *24 x-github: githubCloudOnly: false @@ -77899,9 +77441,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#get-a-release parameters: - - *287 - - *288 - - &506 + - *284 + - *285 + - &503 name: release_id description: The unique identifier of the release. in: path @@ -77915,9 +77457,9 @@ paths: For more information, see "[Getting started with the REST API](https://docs.github.com/enterprise-server@3.14/rest/using-the-rest-api/getting-started-with-the-rest-api#hypermedia)."' content: application/json: - schema: *500 + schema: *497 examples: - default: *505 + default: *502 '401': description: Unauthorized x-github: @@ -77935,9 +77477,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#update-a-release parameters: - - *287 - - *288 - - *506 + - *284 + - *285 + - *503 requestBody: required: false content: @@ -77994,9 +77536,9 @@ paths: description: Response content: application/json: - schema: *500 + schema: *497 examples: - default: *505 + default: *502 x-github: githubCloudOnly: false enabledForGitHubApps: true @@ -78012,9 +77554,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/releases#delete-a-release parameters: - - *287 - - *288 - - *506 + - *284 + - *285 + - *503 responses: '204': description: Response @@ -78034,9 +77576,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/releases/assets#list-release-assets parameters: - - *287 - - *288 - - *506 + - *284 + - *285 + - *503 - *4 - *5 responses: @@ -78046,7 +77588,7 @@ paths: application/json: schema: type: array - items: *501 + items: *498 examples: default: value: @@ -78128,9 +77670,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: - - *287 - - *288 - - *506 + - *284 + - *285 + - *503 - name: name in: query required: true @@ -78156,7 +77698,7 @@ paths: description: Response for successful upload content: application/json: - schema: *501 + schema: *498 examples: response-for-successful-upload: value: @@ -78211,9 +77753,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#list-reactions-for-a-release parameters: - - *287 - - *288 - - *506 + - *284 + - *285 + - *503 - name: content description: Returns a single [reaction type](https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. @@ -78237,9 +77779,9 @@ paths: application/json: schema: type: array - items: *387 + items: *384 examples: - default: *447 + default: *444 headers: Link: *6 '404': *24 @@ -78260,9 +77802,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#create-reaction-for-a-release parameters: - - *287 - - *288 - - *506 + - *284 + - *285 + - *503 requestBody: required: true content: @@ -78292,16 +77834,16 @@ paths: description: Reaction exists content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '201': description: Reaction created content: application/json: - schema: *387 + schema: *384 examples: - default: *388 + default: *385 '422': *33 x-github: githubCloudOnly: false @@ -78323,10 +77865,10 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/reactions/reactions#delete-a-release-reaction parameters: - - *287 - - *288 - - *506 - - *448 + - *284 + - *285 + - *503 + - *445 responses: '204': description: Response @@ -78346,8 +77888,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-repository-cache-replication-status parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -78422,9 +77964,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/rules#get-rules-for-a-branch parameters: - - *287 - - *288 - - *345 + - *284 + - *285 + - *342 - *4 - *5 responses: @@ -78441,7 +77983,7 @@ paths: oneOf: - allOf: - *245 - - &507 + - &504 title: repository ruleset data for rule description: User-defined metadata to store domain-specific information limited to 8 keys with scalar values. @@ -78462,49 +78004,49 @@ paths: description: The ID of the ruleset that includes this rule. - allOf: - *246 - - *507 + - *504 - allOf: - *247 - - *507 + - *504 - allOf: - *248 - - *507 + - *504 - allOf: - *249 - - *507 + - *504 - allOf: - *250 - - *507 + - *504 - allOf: - *251 - - *507 + - *504 - allOf: - *252 - - *507 + - *504 - allOf: - *253 - - *507 + - *504 - allOf: - *254 - - *507 + - *504 - allOf: - *255 - - *507 + - *504 - allOf: - *256 - - *507 + - *504 - allOf: - *257 - - *507 + - *504 - allOf: - *258 - - *507 + - *504 - allOf: - *259 - - *507 + - *504 - allOf: - *260 - - *507 + - *504 examples: default: value: @@ -78543,8 +78085,8 @@ paths: category: repos subcategory: rules parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 - name: includes_parents @@ -78555,7 +78097,7 @@ paths: schema: type: boolean default: true - - *508 + - *505 responses: '200': description: Response @@ -78610,8 +78152,8 @@ paths: category: repos subcategory: rules parameters: - - *287 - - *288 + - *284 + - *285 requestBody: description: Request body required: true @@ -78640,7 +78182,7 @@ paths: rules: type: array description: An array of rules within the ruleset. - items: *509 + items: *506 required: - name - enforcement @@ -78673,7 +78215,7 @@ paths: application/json: schema: *261 examples: - default: &519 + default: &516 value: id: 42 name: super cool ruleset @@ -78720,12 +78262,12 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/rule-suites#list-repository-rule-suites parameters: - - *287 - - *288 + - *284 + - *285 + - *507 + - *508 + - *509 - *510 - - *511 - - *512 - - *513 - *4 - *5 responses: @@ -78733,9 +78275,9 @@ paths: description: Response content: application/json: - schema: *514 + schema: *511 examples: - default: *515 + default: *512 '404': *24 '500': *220 x-github: @@ -78756,17 +78298,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/rule-suites#get-a-repository-rule-suite parameters: - - *287 - - *288 - - *516 + - *284 + - *285 + - *513 responses: '200': description: Response content: application/json: - schema: *517 + schema: *514 examples: - default: *518 + default: *515 '404': *24 '500': *220 x-github: @@ -78794,8 +78336,8 @@ paths: category: repos subcategory: rules parameters: - - *287 - - *288 + - *284 + - *285 - name: ruleset_id description: The ID of the ruleset. in: path @@ -78817,7 +78359,7 @@ paths: application/json: schema: *261 examples: - default: *519 + default: *516 '404': *24 '500': *220 put: @@ -78835,8 +78377,8 @@ paths: category: repos subcategory: rules parameters: - - *287 - - *288 + - *284 + - *285 - name: ruleset_id description: The ID of the ruleset. in: path @@ -78870,7 +78412,7 @@ paths: rules: description: An array of rules within the ruleset. type: array - items: *509 + items: *506 examples: default: value: @@ -78900,7 +78442,7 @@ paths: application/json: schema: *261 examples: - default: *519 + default: *516 '404': *24 '500': *220 delete: @@ -78918,8 +78460,8 @@ paths: category: repos subcategory: rules parameters: - - *287 - - *288 + - *284 + - *285 - name: ruleset_id description: The ID of the ruleset. in: path @@ -78947,8 +78489,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/secret-scanning/secret-scanning#list-secret-scanning-alerts-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - *264 - *265 - *266 @@ -78956,8 +78498,8 @@ paths: - *9 - *5 - *4 - - *520 - - *521 + - *517 + - *518 - *268 responses: '200': @@ -78966,7 +78508,7 @@ paths: application/json: schema: type: array - items: &524 + items: &521 type: object properties: number: *91 @@ -78982,8 +78524,8 @@ paths: format: uri description: The REST API URL of the code locations for this alert. - state: *522 - resolution: *523 + state: *519 + resolution: *520 resolved_at: type: - string @@ -79159,15 +78701,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/secret-scanning/secret-scanning#get-a-secret-scanning-alert parameters: - - *287 - - *288 - - *373 + - *284 + - *285 + - *370 responses: '200': description: Response content: application/json: - schema: *524 + schema: *521 examples: default: value: @@ -79207,9 +78749,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/secret-scanning/secret-scanning#update-a-secret-scanning-alert parameters: - - *287 - - *288 - - *373 + - *284 + - *285 + - *370 requestBody: required: true content: @@ -79217,8 +78759,8 @@ paths: schema: type: object properties: - state: *522 - resolution: *523 + state: *519 + resolution: *520 resolution_comment: description: An optional comment when closing an alert. Cannot be updated or deleted. Must be `null` when changing `state` to `open`. @@ -79238,7 +78780,7 @@ paths: description: Response content: application/json: - schema: *524 + schema: *521 examples: default: value: @@ -79305,9 +78847,9 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/secret-scanning/secret-scanning#list-locations-for-a-secret-scanning-alert parameters: - - *287 - - *288 - - *373 + - *284 + - *285 + - *370 - *5 - *4 responses: @@ -79318,7 +78860,7 @@ paths: schema: type: array description: List of locations where the secret was detected - items: &654 + items: &649 type: object properties: type: @@ -79697,8 +79239,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/starring#list-stargazers parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -79791,8 +79333,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/metrics/statistics#get-the-weekly-commit-activity parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Returns a weekly aggregate of the number of additions and deletions @@ -79801,7 +79343,7 @@ paths: application/json: schema: type: array - items: &525 + items: &522 title: Code Frequency Stat description: Code Frequency Stat type: array @@ -79832,8 +79374,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/metrics/statistics#get-the-last-year-of-commit-activity parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -79908,8 +79450,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/metrics/statistics#get-all-contributor-commit-activity parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -80003,8 +79545,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/metrics/statistics#get-the-weekly-commit-count parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: The array order is oldest week (index 0) to most recent week. @@ -80158,8 +79700,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/metrics/statistics#get-the-hourly-commit-count-for-each-day parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: For example, `[2, 14, 25]` indicates that there were 25 total @@ -80169,7 +79711,7 @@ paths: application/json: schema: type: array - items: *525 + items: *522 examples: default: value: @@ -80202,8 +79744,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/commits/statuses#create-a-commit-status parameters: - - *287 - - *288 + - *284 + - *285 - name: sha in: path required: true @@ -80259,7 +79801,7 @@ paths: description: Response content: application/json: - schema: *526 + schema: *523 examples: default: value: @@ -80313,8 +79855,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/watching#list-watchers parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -80346,14 +79888,14 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/watching#get-a-repository-subscription parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: if you subscribe to the repository content: application/json: - schema: &527 + schema: &524 title: Repository Invitation description: Repository invitations let you manage who you collaborate with. @@ -80426,8 +79968,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/watching#set-a-repository-subscription parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -80453,7 +79995,7 @@ paths: description: Response content: application/json: - schema: *527 + schema: *524 examples: default: value: @@ -80480,8 +80022,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/watching#delete-a-repository-subscription parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -80501,8 +80043,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-repository-tags parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -80584,8 +80126,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/tags#closing-down---list-tag-protection-states-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '200': description: Response @@ -80593,7 +80135,7 @@ paths: application/json: schema: type: array - items: &528 + items: &525 title: Tag protection description: Tag protection type: object @@ -80650,8 +80192,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/tags#closing-down---create-a-tag-protection-state-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -80674,7 +80216,7 @@ paths: description: Response content: application/json: - schema: *528 + schema: *525 examples: default: value: @@ -80705,8 +80247,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/tags#closing-down---delete-a-tag-protection-state-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 - name: tag_protection_id description: The unique identifier of the tag protection. in: path @@ -80743,8 +80285,8 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#download-a-repository-archive-tar operationId: repos/download-tarball-archive parameters: - - *287 - - *288 + - *284 + - *285 - name: ref in: path required: true @@ -80780,8 +80322,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#list-repository-teams parameters: - - *287 - - *288 + - *284 + - *285 - *4 - *5 responses: @@ -80791,7 +80333,7 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: default: *271 headers: @@ -80813,8 +80355,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#get-all-repository-topics parameters: - - *287 - - *288 + - *284 + - *285 - *5 - *4 responses: @@ -80822,7 +80364,7 @@ paths: description: Response content: application/json: - schema: &529 + schema: &526 title: Topic description: A topic aggregates entities that are related to a subject. type: object @@ -80834,7 +80376,7 @@ paths: required: - names examples: - default: &530 + default: &527 value: names: - octocat @@ -80857,8 +80399,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#replace-all-repository-topics parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -80889,9 +80431,9 @@ paths: description: Response content: application/json: - schema: *529 + schema: *526 examples: - default: *530 + default: *527 '404': *24 '422': *25 x-github: @@ -80914,8 +80456,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#transfer-a-repository parameters: - - *287 - - *288 + - *284 + - *285 requestBody: required: true content: @@ -81189,8 +80731,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#check-if-vulnerability-alerts-are-enabled-for-a-repository parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response if repository is enabled with vulnerability alerts @@ -81213,8 +80755,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#enable-vulnerability-alerts parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -81236,8 +80778,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/repos/repos#disable-vulnerability-alerts parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -81263,8 +80805,8 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/repos/contents#download-a-repository-archive-zip operationId: repos/download-zipball-archive parameters: - - *287 - - *288 + - *284 + - *285 - name: ref in: path required: true @@ -81356,9 +80898,9 @@ paths: description: Response content: application/json: - schema: *298 + schema: *295 examples: - default: *300 + default: *297 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -81533,7 +81075,7 @@ paths: value: Engineering externalId: value: 8aa1a0c0-c4c3-4bc0-b4a5-2ef676900159 - - &538 + - &535 name: excludedAttributes description: Excludes the specified attribute from being returned in the results. Using this parameter can speed up response time. @@ -81543,7 +81085,7 @@ paths: type: string examples: - members - - &543 + - &540 name: startIndex description: 'Used for pagination: the starting index of the first result to return when paginating through values.' @@ -81555,7 +81097,7 @@ paths: format: int32 examples: - 1 - - &544 + - &541 name: count description: 'Used for pagination: the number of results to return per page.' in: query @@ -81599,7 +81141,7 @@ paths: Resources: type: array description: Information about each provisioned group. - items: &532 + items: &529 allOf: - type: object required: @@ -81681,7 +81223,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: &545 + meta: &542 type: object description: The metadata associated with the creation/updates to the user. @@ -81746,31 +81288,31 @@ paths: location: https://api.github.localhost/scim/v2/Groups/24b28bbb-5fc4-4686-a153-a020debb1155 startIndex: 1 itemsPerPage: 20 - '400': &533 + '400': &530 description: Bad request content: application/json: - schema: *531 + schema: *528 application/scim+json: - schema: *531 - '401': &534 + schema: *528 + '401': &531 description: Authorization failure - '403': &535 + '403': &532 description: Permission denied - '429': &536 + '429': &533 description: Too many requests content: application/json: - schema: *531 + schema: *528 application/scim+json: - schema: *531 - '500': &537 + schema: *528 + '500': &534 description: Internal server error content: application/json: - schema: *531 + schema: *528 application/scim+json: - schema: *531 + schema: *528 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -81797,7 +81339,7 @@ paths: required: true content: application/json: - schema: &541 + schema: &538 type: object required: - schemas @@ -81861,9 +81403,9 @@ paths: description: Group has been created content: application/scim+json: - schema: *532 + schema: *529 examples: - group: &539 + group: &536 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:Group @@ -81882,13 +81424,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': *533 - '401': *534 - '403': *535 - '409': &542 + '400': *530 + '401': *531 + '403': *532 + '409': &539 description: Duplicate record detected - '429': *536 - '500': *537 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -81909,7 +81451,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#get-scim-provisioning-information-for-an-enterprise-group parameters: - - &540 + - &537 name: scim_group_id description: A unique identifier of the SCIM group. in: path @@ -81918,22 +81460,22 @@ paths: type: string examples: - 7fce0092-d52e-4f76-b727-3955bd72c939 - - *538 + - *535 - *63 responses: '200': description: Success, a group was found content: application/scim+json: - schema: *532 + schema: *529 examples: - default: *539 - '400': *533 - '401': *534 - '403': *535 + default: *536 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '429': *536 - '500': *537 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -81955,13 +81497,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#set-scim-information-for-a-provisioned-enterprise-group parameters: - - *540 + - *537 - *63 requestBody: required: true content: application/json: - schema: *541 + schema: *538 examples: group: summary: Group @@ -81987,17 +81529,17 @@ paths: description: Group was updated content: application/scim+json: - schema: *532 + schema: *529 examples: - group: *539 - groupWithMembers: *539 - '400': *533 - '401': *534 - '403': *535 + group: *536 + groupWithMembers: *536 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '409': *542 - '429': *536 - '500': *537 + '409': *539 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82021,13 +81563,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#update-an-attribute-for-a-scim-enterprise-group parameters: - - *540 + - *537 - *63 requestBody: required: true content: application/json: - schema: &552 + schema: &549 type: object required: - Operations @@ -82087,17 +81629,17 @@ paths: description: Success, group was updated content: application/scim+json: - schema: *532 + schema: *529 examples: - updateGroup: *539 - addMembers: *539 - '400': *533 - '401': *534 - '403': *535 + updateGroup: *536 + addMembers: *536 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '409': *542 - '429': *536 - '500': *537 + '409': *539 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82117,17 +81659,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#delete-a-scim-group-from-an-enterprise parameters: - - *540 + - *537 - *63 responses: '204': description: Group was deleted, no content - '400': *533 - '401': *534 - '403': *535 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '429': *536 - '500': *537 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82164,8 +81706,8 @@ paths: value: userName eq 'E012345' externalId: value: externalId eq 'E012345' - - *543 - - *544 + - *540 + - *541 - *63 responses: '200': @@ -82199,7 +81741,7 @@ paths: Resources: type: array description: Information about each provisioned account. - items: &547 + items: &544 allOf: - type: object required: @@ -82291,7 +81833,7 @@ paths: address. examples: - true - roles: &546 + roles: &543 type: array description: The roles assigned to the user. items: @@ -82350,7 +81892,7 @@ paths: type: string description: Provisioned SCIM groups that the user is a member of. - meta: *545 + meta: *542 startIndex: type: integer description: A starting index for the returned page @@ -82389,11 +81931,11 @@ paths: primary: false startIndex: 1 itemsPerPage: 20 - '400': *533 - '401': *534 - '403': *535 - '429': *536 - '500': *537 + '400': *530 + '401': *531 + '403': *532 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82422,7 +81964,7 @@ paths: required: true content: application/json: - schema: &550 + schema: &547 type: object required: - schemas @@ -82515,9 +82057,9 @@ paths: description: Whether this email address is the primary address. examples: - true - roles: *546 + roles: *543 examples: - user: &551 + user: &548 summary: User value: schemas: @@ -82564,9 +82106,9 @@ paths: description: User has been created content: application/scim+json: - schema: *547 + schema: *544 examples: - user: &548 + user: &545 value: schemas: - urn:ietf:params:scim:schemas:core:2.0:User @@ -82592,13 +82134,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: *548 - '400': *533 - '401': *534 - '403': *535 - '409': *542 - '429': *536 - '500': *537 + enterpriseOwner: *545 + '400': *530 + '401': *531 + '403': *532 + '409': *539 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82619,7 +82161,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#get-scim-provisioning-information-for-an-enterprise-user parameters: - - &549 + - &546 name: scim_user_id description: The unique identifier of the SCIM user. in: path @@ -82632,15 +82174,15 @@ paths: description: Success, a user was found content: application/scim+json: - schema: *547 + schema: *544 examples: - default: *548 - '400': *533 - '401': *534 - '403': *535 + default: *545 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '429': *536 - '500': *537 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82665,30 +82207,30 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#set-scim-information-for-a-provisioned-enterprise-user parameters: - - *549 + - *546 - *63 requestBody: required: true content: application/json: - schema: *550 + schema: *547 examples: - user: *551 + user: *548 responses: '200': description: User was updated content: application/scim+json: - schema: *547 + schema: *544 examples: - user: *548 - '400': *533 - '401': *534 - '403': *535 + user: *545 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '409': *542 - '429': *536 - '500': *537 + '409': *539 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82726,13 +82268,13 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#update-an-attribute-for-a-scim-enterprise-user parameters: - - *549 + - *546 - *63 requestBody: required: true content: application/json: - schema: *552 + schema: *549 examples: userMultiValuedProperties: summary: Multi Valued Property @@ -82772,18 +82314,18 @@ paths: description: Success, user was updated content: application/scim+json: - schema: *547 - examples: - userMultiValuedProperties: *548 - userSingleValuedProperties: *548 - disableUser: *548 - '400': *533 - '401': *534 - '403': *535 + schema: *544 + examples: + userMultiValuedProperties: *545 + userSingleValuedProperties: *545 + disableUser: *545 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '409': *542 - '429': *536 - '500': *537 + '409': *539 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82803,17 +82345,17 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/enterprise-admin/scim#delete-a-scim-user-from-an-enterprise parameters: - - *549 + - *546 - *63 responses: '204': description: User was deleted, no content - '400': *533 - '401': *534 - '403': *535 + '400': *530 + '401': *531 + '403': *532 '404': *24 - '429': *536 - '500': *537 + '429': *533 + '500': *534 x-github: enabledForGitHubApps: true githubCloudOnly: true @@ -82941,7 +82483,7 @@ paths: examples: - 73..77 - 77..78 - text_matches: &553 + text_matches: &550 title: Search Result Text Matches type: array items: @@ -83105,7 +82647,7 @@ paths: enum: - author-date - committer-date - - &554 + - &551 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 @@ -83174,7 +82716,7 @@ paths: committer: anyOf: - type: 'null' - - *343 + - *340 comment_count: type: integer message: @@ -83193,7 +82735,7 @@ paths: url: type: string format: uri - verification: *436 + verification: *433 required: - author - committer @@ -83208,7 +82750,7 @@ paths: committer: anyOf: - type: 'null' - - *343 + - *340 parents: type: array items: @@ -83225,7 +82767,7 @@ paths: type: number node_id: type: string - text_matches: *553 + text_matches: *550 required: - sha - node_id @@ -83418,7 +82960,7 @@ paths: - interactions - created - updated - - *554 + - *551 - *4 - *5 - name: advanced_search @@ -83515,11 +83057,11 @@ paths: type: - string - 'null' - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: type: string state_reason: @@ -83547,7 +83089,7 @@ paths: - string - 'null' format: date-time - text_matches: *553 + text_matches: *550 pull_request: type: object properties: @@ -83596,7 +83138,7 @@ paths: timeline_url: type: string format: uri - type: *558 + type: *555 performed_via_github_app: anyOf: - type: 'null' @@ -83770,7 +83312,7 @@ paths: enum: - created - updated - - *554 + - *551 - *4 - *5 responses: @@ -83815,7 +83357,7 @@ paths: - 'null' score: type: number - text_matches: *553 + text_matches: *550 required: - id - node_id @@ -83901,7 +83443,7 @@ paths: - forks - help-wanted-issues - updated - - *554 + - *551 - *4 - *5 responses: @@ -84138,7 +83680,7 @@ paths: - admin - pull - push - text_matches: *553 + text_matches: *550 temp_clone_token: type: string allow_merge_commit: @@ -84447,7 +83989,7 @@ paths: - string - 'null' format: uri - text_matches: *553 + text_matches: *550 related: type: - array @@ -84642,7 +84184,7 @@ paths: - followers - repositories - joined - - *554 + - *551 - *4 - *5 responses: @@ -84752,7 +84294,7 @@ paths: type: - boolean - 'null' - text_matches: *553 + text_matches: *550 blog: type: - string @@ -84950,7 +84492,7 @@ paths: description: Response content: application/json: - schema: &559 + schema: &556 type: object properties: status: @@ -84970,7 +84512,7 @@ paths: - name - number examples: - default: &560 + default: &557 value: status: scheduled scheduled_time: Tuesday, January 22 at 15:34 -0800 @@ -85015,9 +84557,9 @@ paths: description: Response content: application/json: - schema: *559 + schema: *556 examples: - default: *560 + default: *557 '401': description: Unauthorized requestBody: @@ -85610,7 +85152,7 @@ paths: application/json: schema: type: array - items: &561 + items: &558 type: object properties: key: @@ -85618,7 +85160,7 @@ paths: pretty-print: type: string examples: - default: &562 + default: &559 value: - key: ssh-rsa AAAAB3NzaC1yc2EAAAAB... pretty-print: ssh-rsa 01:14:0f:f2:0f:e2:fe:e8:f4:72:62:af:75:f7:1a:88:3e:04:92:64 @@ -85661,9 +85203,9 @@ paths: application/json: schema: type: array - items: *561 + items: *558 examples: - default: *562 + default: *559 '401': description: Unauthorized requestBody: @@ -85715,9 +85257,9 @@ paths: application/json: schema: type: array - items: *561 + items: *558 examples: - default: *562 + default: *559 '401': description: Unauthorized requestBody: @@ -86018,226 +85560,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-server@3.14/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-server@3.14/rest/teams/discussions#list-discussions-legacy - parameters: - - *7 - - *9 - - *4 - - *5 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: *277 - examples: - default: *563 - headers: - Link: *6 - 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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/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-server@3.14/rest/teams/discussions#create-a-discussion-legacy - parameters: - - *7 - 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: *277 - examples: - default: *278 - 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-server@3.14/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-server@3.14/rest/teams/discussions#get-a-discussion-legacy - parameters: - - *7 - - *279 - responses: - '200': - description: Response - content: - application/json: - schema: *277 - examples: - default: *278 - 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-server@3.14/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-server@3.14/rest/teams/discussions#update-a-discussion-legacy - parameters: - - *7 - - *279 - 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: *277 - examples: - default: *564 - 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-server@3.14/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-server@3.14/rest/teams/discussions#delete-a-discussion-legacy - parameters: - - *7 - - *279 - 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}/members": get: summary: List team members (Legacy) @@ -86425,9 +85747,9 @@ paths: description: Response content: application/json: - schema: *284 + schema: *281 examples: - response-if-user-is-a-team-maintainer: *565 + response-if-user-is-a-team-maintainer: *560 '404': *24 x-github: githubCloudOnly: false @@ -86486,9 +85808,9 @@ paths: description: Response content: application/json: - schema: *284 + schema: *281 examples: - response-if-users-membership-with-team-is-now-pending: *566 + response-if-users-membership-with-team-is-now-pending: *561 '403': description: Forbidden if team synchronization is set up '422': @@ -86561,9 +85883,9 @@ paths: application/json: schema: type: array - items: *285 + items: *282 examples: - default: *567 + default: *562 headers: Link: *6 '404': *24 @@ -86590,15 +85912,15 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/teams/teams#check-team-permissions-for-a-project-legacy parameters: - *7 - - *286 + - *283 responses: '200': description: Response content: application/json: - schema: *285 + schema: *282 examples: - default: *568 + default: *563 '404': description: Not Found if project is not managed by this team x-github: @@ -86623,7 +85945,7 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/teams/teams#add-or-update-team-project-permissions-legacy parameters: - *7 - - *286 + - *283 requestBody: required: false content: @@ -86692,7 +86014,7 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/teams/teams#remove-a-project-from-a-team-legacy parameters: - *7 - - *286 + - *283 responses: '204': description: Response @@ -86762,14 +86084,14 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/teams/teams#check-team-permissions-for-a-repository-legacy parameters: - *7 - - *287 - - *288 + - *284 + - *285 responses: '200': description: Alternative response with extra repository information content: application/json: - schema: *569 + schema: *564 examples: alternative-response-with-extra-repository-information: value: @@ -86921,8 +86243,8 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/teams/teams#add-or-update-team-repository-permissions-legacy parameters: - *7 - - *287 - - *288 + - *284 + - *285 requestBody: required: false content: @@ -86973,8 +86295,8 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/teams/teams#remove-a-repository-from-a-team-legacy parameters: - *7 - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -87009,9 +86331,9 @@ paths: application/json: schema: type: array - items: *289 + items: *286 examples: - response-if-child-teams-exist: *570 + response-if-child-teams-exist: *565 headers: Link: *6 '404': *24 @@ -87044,7 +86366,7 @@ paths: application/json: schema: oneOf: - - &572 + - &567 title: Private User description: Private User type: object @@ -87294,7 +86616,7 @@ paths: - private_gists - total_private_repos - two_factor_authentication - - *571 + - *566 examples: response-with-public-and-private-profile-information: summary: Response with public and private profile information @@ -87452,7 +86774,7 @@ paths: description: Response content: application/json: - schema: *572 + schema: *567 examples: default: value: @@ -87530,7 +86852,7 @@ paths: type: array items: *214 examples: - default: &582 + default: &577 value: - id: 197 name: hello_docker @@ -87617,7 +86939,7 @@ paths: application/json: schema: type: array - items: &573 + items: &568 title: Email description: Email type: object @@ -87647,7 +86969,7 @@ paths: - verified - visibility examples: - default: &584 + default: &579 value: - email: octocat@github.com verified: true @@ -87724,7 +87046,7 @@ paths: application/json: schema: type: array - items: *573 + items: *568 examples: default: value: @@ -87982,7 +87304,7 @@ paths: application/json: schema: type: array - items: &574 + items: &569 title: GPG Key description: A unique encryption key type: object @@ -88127,7 +87449,7 @@ paths: - subkeys - revoked examples: - default: &594 + default: &589 value: - id: 3 name: Octocat's GPG Key @@ -88212,9 +87534,9 @@ paths: description: Response content: application/json: - schema: *574 + schema: *569 examples: - default: &575 + default: &570 value: id: 3 name: Octocat's GPG Key @@ -88271,7 +87593,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/users/gpg-keys#get-a-gpg-key-for-the-authenticated-user parameters: - - &576 + - &571 name: gpg_key_id description: The unique identifier of the GPG key. in: path @@ -88283,9 +87605,9 @@ paths: description: Response content: application/json: - schema: *574 + schema: *569 examples: - default: *575 + default: *570 '404': *24 '304': *40 '403': *41 @@ -88308,7 +87630,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/users/gpg-keys#delete-a-gpg-key-for-the-authenticated-user parameters: - - *576 + - *571 responses: '204': description: Response @@ -88499,7 +87821,7 @@ paths: type: array items: *82 examples: - default: *577 + default: *572 headers: Link: *6 '404': *24 @@ -88675,7 +87997,7 @@ paths: application/json: schema: type: array - items: &578 + items: &573 title: Key description: Key type: object @@ -88778,9 +88100,9 @@ paths: description: Response content: application/json: - schema: *578 + schema: *573 examples: - default: &579 + default: &574 value: key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 id: 2 @@ -88813,15 +88135,15 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/users/keys#get-a-public-ssh-key-for-the-authenticated-user parameters: - - *469 + - *466 responses: '200': description: Response content: application/json: - schema: *578 + schema: *573 examples: - default: *579 + default: *574 '404': *24 '304': *40 '403': *41 @@ -88844,7 +88166,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/users/keys#delete-a-public-ssh-key-for-the-authenticated-user parameters: - - *469 + - *466 responses: '204': description: Response @@ -89673,7 +88995,7 @@ paths: type: array items: *68 examples: - default: *580 + default: *575 headers: Link: *6 '304': *40 @@ -89715,7 +89037,7 @@ paths: - docker - nuget - container - - *581 + - *576 - *5 - *4 responses: @@ -89727,8 +89049,8 @@ paths: type: array items: *214 examples: - default: *582 - '400': *583 + default: *577 + '400': *578 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -89757,7 +89079,7 @@ paths: application/json: schema: *214 examples: - default: &595 + default: &590 value: id: 40201 name: octo-name @@ -90210,9 +89532,9 @@ paths: application/json: schema: type: array - items: *573 + items: *568 examples: - default: *584 + default: *579 headers: Link: *6 '304': *40 @@ -90325,7 +89647,7 @@ paths: type: array items: *82 examples: - default: &591 + default: &586 summary: Default response value: - id: 1296269 @@ -90643,9 +89965,9 @@ paths: description: Response content: application/json: - schema: *298 + schema: *295 examples: - default: *300 + default: *297 headers: Location: example: https://api.github.com/repos/octocat/Hello-World @@ -90683,9 +90005,9 @@ paths: application/json: schema: type: array - items: *443 + items: *440 examples: - default: *585 + default: *580 headers: Link: *6 '304': *40 @@ -90708,7 +90030,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/invitations#accept-a-repository-invitation parameters: - - *444 + - *441 responses: '204': description: Response @@ -90731,7 +90053,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/collaborators/invitations#decline-a-repository-invitation parameters: - - *444 + - *441 responses: '204': description: Response @@ -90764,7 +90086,7 @@ paths: application/json: schema: type: array - items: &586 + items: &581 title: Social account description: Social media account type: object @@ -90781,7 +90103,7 @@ paths: - provider - url examples: - default: &587 + default: &582 value: - provider: twitter url: https://twitter.com/github @@ -90844,9 +90166,9 @@ paths: application/json: schema: type: array - items: *586 + items: *581 examples: - default: *587 + default: *582 '422': *33 '304': *40 '404': *24 @@ -90934,7 +90256,7 @@ paths: application/json: schema: type: array - items: &588 + items: &583 title: SSH Signing Key description: A public SSH key used to sign Git commits type: object @@ -90954,7 +90276,7 @@ paths: - title - created_at examples: - default: &596 + default: &591 value: - id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -91019,9 +90341,9 @@ paths: description: Response content: application/json: - schema: *588 + schema: *583 examples: - default: &589 + default: &584 value: id: 2 key: 2Sg8iYjAxxmI2LvUXpJjkYrMxURPc8r+dB7TJyvv1234 @@ -91051,7 +90373,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/users/ssh-signing-keys#get-an-ssh-signing-key-for-the-authenticated-user parameters: - - &590 + - &585 name: ssh_signing_key_id description: The unique identifier of the SSH signing key. in: path @@ -91063,9 +90385,9 @@ paths: description: Response content: application/json: - schema: *588 + schema: *583 examples: - default: *589 + default: *584 '404': *24 '304': *40 '403': *41 @@ -91088,7 +90410,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/users/ssh-signing-keys#delete-an-ssh-signing-key-for-the-authenticated-user parameters: - - *590 + - *585 responses: '204': description: Response @@ -91117,7 +90439,7 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/starring#list-repositories-starred-by-the-authenticated-user parameters: - - &597 + - &592 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 @@ -91142,11 +90464,11 @@ paths: type: array items: *82 examples: - default-response: *591 + default-response: *586 application/vnd.github.v3.star+json: schema: type: array - items: &598 + items: &593 title: Starred Repository description: Starred Repository type: object @@ -91302,8 +90624,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/starring#check-if-a-repository-is-starred-by-the-authenticated-user parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response if this repository is starred by you @@ -91331,8 +90653,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/starring#star-a-repository-for-the-authenticated-user parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -91356,8 +90678,8 @@ paths: description: API method documentation url: https://docs.github.com/enterprise-server@3.14/rest/activity/starring#unstar-a-repository-for-the-authenticated-user parameters: - - *287 - - *288 + - *284 + - *285 responses: '204': description: Response @@ -91516,10 +90838,10 @@ paths: application/json: schema: oneOf: - - *572 - - *571 + - *567 + - *566 examples: - default-response: &592 + default-response: &587 summary: Default response value: login: octocat @@ -91554,7 +90876,7 @@ paths: following: 0 created_at: '2008-01-14T04:33:35Z' updated_at: '2008-01-14T04:33:35Z' - response-with-git-hub-plan-information: &593 + response-with-git-hub-plan-information: &588 summary: Response with GitHub plan information value: login: octocat @@ -91666,11 +90988,11 @@ paths: application/json: schema: oneOf: - - *572 - - *571 + - *567 + - *566 examples: - default-response: *592 - response-with-git-hub-plan-information: *593 + default-response: *587 + response-with-git-hub-plan-information: *588 '404': *24 x-github: githubCloudOnly: false @@ -91701,7 +91023,7 @@ paths: type: array items: *214 examples: - default: *582 + default: *577 '403': *41 '401': *39 x-github: @@ -92114,9 +91436,9 @@ paths: application/json: schema: type: array - items: *574 + items: *569 examples: - default: *594 + default: *589 headers: Link: *6 x-github: @@ -92220,7 +91542,7 @@ paths: application/json: schema: *37 examples: - default: *442 + default: *439 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -92306,7 +91628,7 @@ paths: type: array items: *68 examples: - default: *580 + default: *575 headers: Link: *6 x-github: @@ -92345,7 +91667,7 @@ paths: - docker - nuget - container - - *581 + - *576 - *8 - *5 - *4 @@ -92358,10 +91680,10 @@ paths: type: array items: *214 examples: - default: *582 + default: *577 '403': *41 '401': *39 - '400': *583 + '400': *578 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -92391,7 +91713,7 @@ paths: application/json: schema: *214 examples: - default: *595 + default: *590 x-github: githubCloudOnly: false enabledForGitHubApps: false @@ -93020,9 +92342,9 @@ paths: application/json: schema: type: array - items: *586 + items: *581 examples: - default: *587 + default: *582 headers: Link: *6 x-github: @@ -93052,9 +92374,9 @@ paths: application/json: schema: type: array - items: *588 + items: *583 examples: - default: *596 + default: *591 headers: Link: *6 x-github: @@ -93079,7 +92401,7 @@ paths: url: https://docs.github.com/enterprise-server@3.14/rest/activity/starring#list-repositories-starred-by-a-user parameters: - *8 - - *597 + - *592 - *9 - *4 - *5 @@ -93091,11 +92413,11 @@ paths: schema: anyOf: - type: array - items: *598 + items: *593 - type: array items: *82 examples: - default-response: *591 + default-response: *586 headers: Link: *6 x-github: @@ -93307,7 +92629,7 @@ webhooks: type: string enum: - disabled - enterprise: &599 + enterprise: &594 title: Enterprise description: |- An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -93376,7 +92698,7 @@ webhooks: - created_at - updated_at - avatar_url - installation: &600 + installation: &595 title: Simple Installation description: |- The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured @@ -93397,7 +92719,7 @@ webhooks: required: - id - node_id - organization: &601 + organization: &596 title: Organization Simple description: |- A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -93470,7 +92792,7 @@ webhooks: - public_members_url - avatar_url - description - repository: &602 + repository: &597 title: Repository description: |- The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -94383,10 +93705,10 @@ webhooks: type: string enum: - enabled - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -94472,11 +93794,11 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - rule: &603 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + rule: &598 title: branch protection rule description: The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/enterprise-server@3.14/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) @@ -94693,11 +94015,11 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - rule: *603 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + rule: *598 sender: *17 required: - action @@ -94875,11 +94197,11 @@ webhooks: - everyone required: - from - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - rule: *603 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + rule: *598 sender: *17 required: - action @@ -94960,11 +94282,11 @@ webhooks: type: string enum: - cancelled - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - exemption_request: &604 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + exemption_request: &599 title: Exemption Request description: A request from a user to be exempted from a set of rules. @@ -95238,7 +94560,7 @@ webhooks: - array - 'null' description: The responses to the exemption request. - items: &605 + items: &600 title: Exemption response description: A response to an exemption request by a delegated bypasser. @@ -95358,11 +94680,11 @@ webhooks: type: string enum: - completed - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - exemption_request: *604 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + exemption_request: *599 sender: *17 required: - action @@ -95442,11 +94764,11 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - exemption_request: *604 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + exemption_request: *599 sender: *17 required: - action @@ -95526,12 +94848,12 @@ webhooks: type: string enum: - response_dismissed - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - exemption_request: *604 - exemption_response: *605 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + exemption_request: *599 + exemption_response: *600 sender: *17 required: - action @@ -95613,12 +94935,12 @@ webhooks: type: string enum: - response_submitted - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - exemption_request: *604 - exemption_response: *605 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + exemption_request: *599 + exemption_response: *600 sender: *17 required: - action @@ -95703,12 +95025,12 @@ webhooks: type: string cache_location: type: string - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 ref: type: string - repository: *602 + repository: *597 sender: *17 required: - cache_location @@ -95802,7 +95124,7 @@ webhooks: type: string enum: - completed - check_run: &607 + check_run: &602 title: CheckRun description: A check performed on the code of a given code change type: object @@ -95867,7 +95189,7 @@ webhooks: - MDEwOkNoZWNrU3VpdGU1 pull_requests: type: array - items: *356 + items: *353 repository: *152 status: type: string @@ -95912,7 +95234,7 @@ webhooks: - examples: - neutral - deployment: *606 + deployment: *601 details_url: type: string examples: @@ -95972,7 +95294,7 @@ webhooks: - annotations_url pull_requests: type: array - items: *356 + items: *353 started_at: type: string format: date-time @@ -96010,10 +95332,10 @@ webhooks: - output - app - pull_requests - installation: *600 - enterprise: *599 - organization: *601 - repository: *602 + installation: *595 + enterprise: *594 + organization: *596 + repository: *597 sender: *17 required: - check_run @@ -96416,11 +95738,11 @@ webhooks: type: string enum: - created - check_run: *607 - installation: *600 - enterprise: *599 - organization: *601 - repository: *602 + check_run: *602 + installation: *595 + enterprise: *594 + organization: *596 + repository: *597 sender: *17 required: - check_run @@ -96826,11 +96148,11 @@ webhooks: type: string enum: - requested_action - check_run: *607 - installation: *600 - enterprise: *599 - organization: *601 - repository: *602 + check_run: *602 + installation: *595 + enterprise: *594 + organization: *596 + repository: *597 requested_action: description: The action requested by the user. type: object @@ -97245,11 +96567,11 @@ webhooks: type: string enum: - rerequested - check_run: *607 - installation: *600 - enterprise: *599 - organization: *601 - repository: *602 + check_run: *602 + installation: *595 + enterprise: *594 + organization: *596 + repository: *597 sender: *17 required: - check_run @@ -98251,10 +97573,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -98973,10 +98295,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -99689,10 +99011,10 @@ webhooks: - latest_check_runs_count - check_runs_url - head_commit - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -99871,7 +99193,7 @@ webhooks: required: - login - id - dismissed_comment: *368 + dismissed_comment: *365 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -100023,20 +99345,20 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: &608 + commit_oid: &603 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: *599 - installation: *600 - organization: *601 - ref: &609 + enterprise: *594 + installation: *595 + organization: *596 + ref: &604 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: *602 + repository: *597 sender: *17 required: - action @@ -100213,7 +99535,7 @@ webhooks: required: - login - id - dismissed_comment: *368 + dismissed_comment: *365 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -100454,12 +99776,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *608 - enterprise: *599 - installation: *600 - organization: *601 - ref: *609 - repository: *602 + commit_oid: *603 + enterprise: *594 + installation: *595 + organization: *596 + ref: *604 + repository: *597 sender: *17 required: - action @@ -100567,7 +99889,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *368 + dismissed_comment: *365 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -100752,12 +100074,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *608 - enterprise: *599 - installation: *600 - organization: *601 - ref: *609 - repository: *602 + commit_oid: *603 + enterprise: *594 + installation: *595 + organization: *596 + ref: *604 + repository: *597 sender: *17 required: - action @@ -100936,7 +100258,7 @@ webhooks: required: - login - id - dismissed_comment: *368 + dismissed_comment: *365 dismissed_reason: description: The reason for dismissing or closing the alert. type: @@ -101113,12 +100435,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *608 - enterprise: *599 - installation: *600 - organization: *601 - ref: *609 - repository: *602 + commit_oid: *603 + enterprise: *594 + installation: *595 + organization: *596 + ref: *604 + repository: *597 sender: *17 required: - action @@ -101229,7 +100551,7 @@ webhooks: type: - object - 'null' - dismissed_comment: *368 + dismissed_comment: *365 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -101418,9 +100740,9 @@ webhooks: type: - string - 'null' - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 ref: description: The Git reference of the code scanning alert. When the action is `reopened_by_user` or `closed_by_user`, the event @@ -101428,7 +100750,7 @@ webhooks: type: - string - 'null' - repository: *602 + repository: *597 sender: *17 required: - action @@ -101537,7 +100859,7 @@ webhooks: dismissed_by: type: - 'null' - dismissed_comment: *368 + dismissed_comment: *365 dismissed_reason: description: 'The reason for dismissing or closing the alert. Can be one of: `false positive`, `won''t fix`, and `used in @@ -101684,12 +101006,12 @@ webhooks: - dismissed_reason - rule - tool - commit_oid: *608 - enterprise: *599 - installation: *600 - organization: *601 - ref: *609 - repository: *602 + commit_oid: *603 + enterprise: *594 + installation: *595 + organization: *596 + ref: *604 + repository: *597 sender: *17 required: - action @@ -101961,10 +101283,10 @@ webhooks: - updated_at - author_association - body - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -102055,18 +101377,18 @@ webhooks: type: - string - 'null' - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 master_branch: description: The name of the repository's default branch (usually `main`). type: string - organization: *601 - pusher_type: &610 + organization: *596 + pusher_type: &605 description: The pusher type for the event. Can be either `user` or a deploy key. type: string - ref: &611 + ref: &606 description: The [`git ref`](https://docs.github.com/enterprise-server@3.14/rest/git/refs#get-a-reference) resource. type: string @@ -102076,7 +101398,7 @@ webhooks: enum: - tag - branch - repository: *602 + repository: *597 sender: *17 required: - ref @@ -102159,9 +101481,9 @@ webhooks: enum: - created definition: *234 - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 sender: *17 required: - action @@ -102246,9 +101568,9 @@ webhooks: description: The name of the property that was deleted. required: - property_name - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 sender: *17 required: - action @@ -102326,9 +101648,9 @@ webhooks: enum: - updated definition: *234 - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 sender: *17 required: - action @@ -102405,10 +101727,10 @@ webhooks: type: string enum: - updated - enterprise: *599 - installation: *600 - repository: *602 - organization: *601 + enterprise: *594 + installation: *595 + repository: *597 + organization: *596 sender: *17 new_property_values: type: array @@ -102503,18 +101825,18 @@ webhooks: title: delete event type: object properties: - enterprise: *599 - installation: *600 - organization: *601 - pusher_type: *610 - ref: *611 + enterprise: *594 + installation: *595 + organization: *596 + pusher_type: *605 + ref: *606 ref_type: description: The type of Git ref object deleted in the repository. type: string enum: - tag - branch - repository: *602 + repository: *597 sender: *17 required: - ref @@ -102608,11 +101930,11 @@ webhooks: type: string enum: - auto_dismissed - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -102706,11 +102028,11 @@ webhooks: type: string enum: - auto_reopened - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -102804,11 +102126,11 @@ webhooks: type: string enum: - created - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -102900,11 +102222,11 @@ webhooks: type: string enum: - dismissed - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -102996,11 +102318,11 @@ webhooks: type: string enum: - fixed - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -103093,11 +102415,11 @@ webhooks: type: string enum: - reintroduced - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -103189,11 +102511,11 @@ webhooks: type: string enum: - reopened - alert: *405 - installation: *600 - organization: *601 - enterprise: *599 - repository: *602 + alert: *402 + installation: *595 + organization: *596 + enterprise: *594 + repository: *597 sender: *17 required: - action @@ -103280,9 +102602,9 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - key: &612 + enterprise: *594 + installation: *595 + key: &607 description: The [`deploy key`](https://docs.github.com/enterprise-server@3.14/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. type: object @@ -103318,8 +102640,8 @@ webhooks: - verified - created_at - read_only - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -103406,11 +102728,11 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - key: *612 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + key: *607 + organization: *596 + repository: *597 sender: *17 required: - action @@ -103992,12 +103314,12 @@ webhooks: - updated_at - statuses_url - repository_url - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - workflow: &616 + workflow: &611 title: Workflow type: - object @@ -104745,13 +104067,13 @@ webhooks: description: The URL to review the deployment protection rule. type: string format: uri - deployment: *411 + deployment: *408 pull_requests: type: array items: *111 - repository: *602 - organization: *601 - installation: *600 + repository: *597 + organization: *596 + installation: *595 sender: *17 responses: '200': @@ -104832,7 +104154,7 @@ webhooks: type: string enum: - approved - approver: &613 + approver: &608 type: object properties: avatar_url: @@ -104875,11 +104197,11 @@ webhooks: type: string comment: type: string - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - reviewers: &614 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + reviewers: &609 type: array items: type: object @@ -104960,7 +104282,7 @@ webhooks: sender: *17 since: type: string - workflow_job_run: &615 + workflow_job_run: &610 type: object properties: conclusion: @@ -105716,18 +105038,18 @@ webhooks: type: string enum: - rejected - approver: *613 + approver: *608 comment: type: string - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - reviewers: *614 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + reviewers: *609 sender: *17 since: type: string - workflow_job_run: *615 + workflow_job_run: *610 workflow_job_runs: type: array items: @@ -106454,13 +105776,13 @@ webhooks: type: string enum: - requested - enterprise: *599 + enterprise: *594 environment: type: string - installation: *600 - organization: *601 - repository: *602 - requestor: &621 + installation: *595 + organization: *596 + repository: *597 + requestor: &616 title: User type: - object @@ -108413,12 +107735,12 @@ webhooks: - updated_at - deployment_url - repository_url - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - workflow: *616 + workflow: *611 workflow_run: title: Deployment Workflow Run type: @@ -109119,7 +108441,7 @@ webhooks: type: string enum: - answered - answer: &619 + answer: &614 type: object properties: author_association: @@ -109279,7 +108601,7 @@ webhooks: - created_at - updated_at - body - discussion: &617 + discussion: &612 title: Discussion description: A Discussion in a repository. type: object @@ -109596,10 +108918,10 @@ webhooks: - updated_at - active_lock_reason - body - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -109736,11 +109058,11 @@ webhooks: - from required: - category - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -109833,11 +109155,11 @@ webhooks: type: string enum: - closed - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -109929,7 +109251,7 @@ webhooks: type: string enum: - created - comment: &618 + comment: &613 type: object properties: author_association: @@ -110089,11 +109411,11 @@ webhooks: - updated_at - body - reactions - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110186,12 +109508,12 @@ webhooks: type: string enum: - deleted - comment: *618 - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + comment: *613 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110296,12 +109618,12 @@ webhooks: - from required: - body - comment: *618 - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + comment: *613 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110395,11 +109717,11 @@ webhooks: type: string enum: - created - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110491,11 +109813,11 @@ webhooks: type: string enum: - deleted - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110605,11 +109927,11 @@ webhooks: type: string required: - from - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110701,10 +110023,10 @@ webhooks: type: string enum: - labeled - discussion: *617 - enterprise: *599 - installation: *600 - label: &620 + discussion: *612 + enterprise: *594 + installation: *595 + label: &615 title: Label type: object properties: @@ -110737,8 +110059,8 @@ webhooks: - color - default - description - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110831,11 +110153,11 @@ webhooks: type: string enum: - locked - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -110927,11 +110249,11 @@ webhooks: type: string enum: - pinned - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111023,11 +110345,11 @@ webhooks: type: string enum: - reopened - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111122,16 +110444,16 @@ webhooks: changes: type: object properties: - new_discussion: *617 - new_repository: *602 + new_discussion: *612 + new_repository: *597 required: - new_discussion - new_repository - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111224,10 +110546,10 @@ webhooks: type: string enum: - unanswered - discussion: *617 - old_answer: *619 - organization: *601 - repository: *602 + discussion: *612 + old_answer: *614 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111319,12 +110641,12 @@ webhooks: type: string enum: - unlabeled - discussion: *617 - enterprise: *599 - installation: *600 - label: *620 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111417,11 +110739,11 @@ webhooks: type: string enum: - unlocked - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111513,11 +110835,11 @@ webhooks: type: string enum: - unpinned - discussion: *617 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + discussion: *612 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -111758,7 +111080,7 @@ webhooks: description: A user forks a repository. type: object properties: - enterprise: *599 + enterprise: *594 forkee: description: The created [`repository`](https://docs.github.com/enterprise-server@3.14/rest/repos/repos#get-a-repository) resource. @@ -112436,9 +111758,9 @@ webhooks: type: integer watchers_count: type: integer - installation: *600 - organization: *601 - repository: *602 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - forkee @@ -112604,9 +111926,9 @@ webhooks: title: gollum event type: object properties: - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pages: description: The pages that were updated. type: array @@ -112644,7 +111966,7 @@ webhooks: - action - sha - html_url - repository: *602 + repository: *597 sender: *17 required: - pages @@ -112730,10 +112052,10 @@ webhooks: type: string enum: - created - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories: &622 + organization: *596 + repositories: &617 description: An array of repository objects that the installation can access. type: array @@ -112759,8 +112081,8 @@ webhooks: - name - full_name - private - repository: *602 - requester: *621 + repository: *597 + requester: *616 sender: *17 required: - action @@ -112845,11 +112167,11 @@ webhooks: type: string enum: - deleted - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories: *622 - repository: *602 + organization: *596 + repositories: *617 + repository: *597 requester: type: - 'null' @@ -112936,11 +112258,11 @@ webhooks: type: string enum: - new_permissions_accepted - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories: *622 - repository: *602 + organization: *596 + repositories: *617 + repository: *597 requester: type: - 'null' @@ -113027,10 +112349,10 @@ webhooks: type: string enum: - added - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories_added: &623 + organization: *596 + repositories_added: &618 description: An array of repository objects, which were added to the installation. type: array @@ -113076,15 +112398,15 @@ webhooks: private: description: Whether the repository is private or public. type: boolean - repository: *602 - repository_selection: &624 + repository: *597 + repository_selection: &619 description: Describe whether all repositories have been selected or there's a selection involved type: string enum: - all - selected - requester: *621 + requester: *616 sender: *17 required: - action @@ -113173,10 +112495,10 @@ webhooks: type: string enum: - removed - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories_added: *623 + organization: *596 + repositories_added: *618 repositories_removed: description: An array of repository objects, which were removed from the installation. @@ -113203,9 +112525,9 @@ webhooks: - name - full_name - private - repository: *602 - repository_selection: *624 - requester: *621 + repository: *597 + repository_selection: *619 + requester: *616 sender: *17 required: - action @@ -113294,11 +112616,11 @@ webhooks: type: string enum: - suspend - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories: *622 - repository: *602 + organization: *596 + repositories: *617 + repository: *597 requester: type: - 'null' @@ -113491,10 +112813,10 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 target_type: type: string @@ -113583,11 +112905,11 @@ webhooks: type: string enum: - unsuspend - enterprise: *599 + enterprise: *594 installation: *37 - organization: *601 - repositories: *622 - repository: *602 + organization: *596 + repositories: *617 + repository: *597 requester: type: - 'null' @@ -113845,8 +113167,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) the comment belongs to. @@ -114663,8 +113985,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 state: description: State of the issue; either 'open' or 'closed' type: string @@ -114681,7 +114003,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -115025,8 +114347,8 @@ webhooks: - state - locked - assignee - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -115116,7 +114438,7 @@ webhooks: type: string enum: - deleted - comment: &625 + comment: &620 title: issue comment description: The [comment](https://docs.github.com/enterprise-server@3.14/rest/issues/comments#get-an-issue-comment) itself. @@ -115283,8 +114605,8 @@ webhooks: - performed_via_github_app - body - reactions - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) the comment belongs to. @@ -116097,8 +115419,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 state: description: State of the issue; either 'open' or 'closed' type: string @@ -116115,7 +115437,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -116461,8 +115783,8 @@ webhooks: - state - locked - assignee - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -116552,7 +115874,7 @@ webhooks: type: string enum: - edited - changes: &646 + changes: &641 description: The changes to the comment. type: object properties: @@ -116564,9 +115886,9 @@ webhooks: type: string required: - from - comment: *625 - enterprise: *599 - installation: *600 + comment: *620 + enterprise: *594 + installation: *595 issue: description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) the comment belongs to. @@ -117382,8 +116704,8 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 state: description: State of the issue; either 'open' or 'closed' type: string @@ -117400,7 +116722,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -117744,8 +117066,8 @@ webhooks: - state - locked - assignee - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -117837,10 +117159,10 @@ webhooks: type: string enum: - assigned - assignee: *621 - enterprise: *599 - installation: *600 - issue: &628 + assignee: *616 + enterprise: *594 + installation: *595 + issue: &623 title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) itself. @@ -118652,11 +117974,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -118673,7 +117995,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -118776,8 +118098,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -118867,8 +118189,8 @@ webhooks: type: string enum: - closed - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) itself. @@ -119685,11 +119007,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -119706,7 +119028,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -119952,8 +119274,8 @@ webhooks: required: - state - closed_at - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -120042,8 +119364,8 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -120851,11 +120173,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -120872,7 +120194,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -120974,8 +120296,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -121064,8 +120386,8 @@ webhooks: type: string enum: - demilestoned - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -121896,11 +121218,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -121917,7 +121239,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -121998,7 +121320,7 @@ webhooks: format: uri user_view_type: type: string - milestone: &626 + milestone: &621 title: Milestone description: A collection of related issues and pull requests. type: object @@ -122141,8 +121463,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -122251,8 +121573,8 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -123064,11 +122386,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -123082,7 +122404,7 @@ webhooks: timeline_url: type: string format: uri - type: *558 + type: *555 title: description: Title of the issue type: string @@ -123188,9 +122510,9 @@ webhooks: - active_lock_reason - body - reactions - label: *620 - organization: *601 - repository: *602 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -123280,8 +122602,8 @@ webhooks: type: string enum: - labeled - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -124092,11 +123414,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -124110,7 +123432,7 @@ webhooks: timeline_url: type: string format: uri - type: *558 + type: *555 title: description: Title of the issue type: string @@ -124216,9 +123538,9 @@ webhooks: - active_lock_reason - body - reactions - label: *620 - organization: *601 - repository: *602 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -124308,8 +123630,8 @@ webhooks: type: string enum: - locked - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -125145,11 +124467,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -125163,7 +124485,7 @@ webhooks: timeline_url: type: string format: uri - type: *558 + type: *555 title: description: Title of the issue type: string @@ -125246,8 +124568,8 @@ webhooks: format: uri user_view_type: type: string - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -125336,8 +124658,8 @@ webhooks: type: string enum: - milestoned - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -126167,11 +125489,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -126188,7 +125510,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -126268,9 +125590,9 @@ webhooks: format: uri user_view_type: type: string - milestone: *626 - organization: *601 - repository: *602 + milestone: *621 + organization: *596 + repository: *597 sender: *17 required: - action @@ -127172,11 +126494,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -127272,7 +126594,7 @@ webhooks: required: - login - id - type: *558 + type: *555 required: - id - number @@ -127753,8 +127075,8 @@ webhooks: required: - old_issue - old_repository - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -128566,11 +127888,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -128587,7 +127909,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -128689,8 +128011,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -128780,9 +128102,9 @@ webhooks: type: string enum: - pinned - enterprise: *599 - installation: *600 - issue: &627 + enterprise: *594 + installation: *595 + issue: &622 title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) itself. @@ -129588,11 +128910,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -129609,7 +128931,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -129711,8 +129033,8 @@ webhooks: - active_lock_reason - body - reactions - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -129801,8 +129123,8 @@ webhooks: type: string enum: - reopened - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -130636,11 +129958,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -130737,9 +130059,9 @@ webhooks: format: uri user_view_type: type: string - type: *558 - organization: *601 - repository: *602 + type: *555 + organization: *596 + repository: *597 sender: *17 required: - action @@ -131638,11 +130960,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -131659,7 +130981,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -132241,11 +131563,11 @@ webhooks: required: - new_issue - new_repository - enterprise: *599 - installation: *600 - issue: *627 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + issue: *622 + organization: *596 + repository: *597 sender: *17 required: - action @@ -132336,7 +131658,7 @@ webhooks: type: string enum: - unassigned - assignee: &649 + assignee: &644 title: User type: - object @@ -132408,11 +131730,11 @@ webhooks: required: - login - id - enterprise: *599 - installation: *600 - issue: *628 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + issue: *623 + organization: *596 + repository: *597 sender: *17 required: - action @@ -132501,12 +131823,12 @@ webhooks: type: string enum: - unlabeled - enterprise: *599 - installation: *600 - issue: *628 - label: *620 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + issue: *623 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -132596,8 +131918,8 @@ webhooks: type: string enum: - unlocked - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 issue: title: Issue description: The [issue](https://docs.github.com/enterprise-server@3.14/rest/issues/issues#get-an-issue) @@ -133431,11 +132753,11 @@ webhooks: repository_url: type: string format: uri - sub_issues_summary: *555 - issue_dependencies_summary: *556 + sub_issues_summary: *552 + issue_dependencies_summary: *553 issue_field_values: type: array - items: *557 + items: *554 state: description: State of the issue; either 'open' or 'closed' type: string @@ -133452,7 +132774,7 @@ webhooks: title: description: Title of the issue type: string - type: *558 + type: *555 updated_at: type: string format: date-time @@ -133532,8 +132854,8 @@ webhooks: format: uri user_view_type: type: string - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -133623,11 +132945,11 @@ webhooks: type: string enum: - unpinned - enterprise: *599 - installation: *600 - issue: *627 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + issue: *622 + organization: *596 + repository: *597 sender: *17 required: - action @@ -133716,11 +133038,11 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - label: *620 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -133808,11 +133130,11 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - label: *620 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -133932,11 +133254,11 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - label: *620 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + label: *615 + organization: *596 + repository: *597 sender: *17 required: - action @@ -134050,11 +133372,11 @@ webhooks: type: string required: - to - enterprise: *599 - installation: *600 - member: *621 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + member: *616 + organization: *596 + repository: *597 sender: *17 required: - action @@ -134166,11 +133488,11 @@ webhooks: type: - string - 'null' - enterprise: *599 - installation: *600 - member: *621 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + member: *616 + organization: *596 + repository: *597 sender: *17 required: - action @@ -134259,11 +133581,11 @@ webhooks: type: string enum: - removed - enterprise: *599 - installation: *600 - member: *621 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + member: *616 + organization: *596 + repository: *597 sender: *17 required: - action @@ -134351,11 +133673,11 @@ webhooks: type: string enum: - added - enterprise: *599 - installation: *600 - member: *621 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + member: *616 + organization: *596 + repository: *597 scope: description: The scope of the membership. Currently, can only be `team`. @@ -134433,7 +133755,7 @@ webhooks: required: - login - id - team: &629 + team: &624 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -134673,11 +133995,11 @@ webhooks: type: string enum: - removed - enterprise: *599 - installation: *600 - member: *621 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + member: *616 + organization: *596 + repository: *597 scope: description: The scope of the membership. Currently, can only be `team`. @@ -134756,7 +134078,7 @@ webhooks: required: - login - id - team: *629 + team: *624 required: - action - scope @@ -134844,7 +134166,7 @@ webhooks: type: string enum: - deleted - enterprise: *599 + enterprise: *594 hook: description: 'The deleted webhook. This will contain different keys based on the type of webhook it is: repository, organization, @@ -134953,12 +134275,12 @@ webhooks: hook_id: description: The id of the modified webhook. type: integer - installation: *600 - organization: *601 + installation: *595 + organization: *596 repository: anyOf: - type: 'null' - - *602 + - *597 sender: *17 required: - action @@ -135048,11 +134370,11 @@ webhooks: type: string enum: - closed - enterprise: *599 - installation: *600 - milestone: *626 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + milestone: *621 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135141,9 +134463,9 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - milestone: &630 + enterprise: *594 + installation: *595 + milestone: &625 title: Milestone description: A collection of related issues and pull requests. type: object @@ -135285,8 +134607,8 @@ webhooks: - updated_at - due_on - closed_at - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135375,11 +134697,11 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - milestone: *626 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + milestone: *621 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135499,11 +134821,11 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - milestone: *626 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + milestone: *621 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135593,11 +134915,11 @@ webhooks: type: string enum: - opened - enterprise: *599 - installation: *600 - milestone: *630 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + milestone: *625 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135686,9 +135008,9 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - membership: &631 + enterprise: *594 + installation: *595 + membership: &626 title: Membership description: The membership between the user and the organization. Not present when the action is `member_invited`. @@ -135798,8 +135120,8 @@ webhooks: - role - organization_url - user - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135887,11 +135209,11 @@ webhooks: type: string enum: - member_added - enterprise: *599 - installation: *600 - membership: *631 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + membership: *626 + organization: *596 + repository: *597 sender: *17 required: - action @@ -135980,8 +135302,8 @@ webhooks: type: string enum: - member_invited - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 invitation: description: The invitation for the user or email if the action is `member_invited`. @@ -136103,10 +135425,10 @@ webhooks: - inviter - team_count - invitation_teams_url - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 - user: *621 + user: *616 required: - action - invitation @@ -136194,11 +135516,11 @@ webhooks: type: string enum: - member_removed - enterprise: *599 - installation: *600 - membership: *631 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + membership: *626 + organization: *596 + repository: *597 sender: *17 required: - action @@ -136295,11 +135617,11 @@ webhooks: properties: from: type: string - enterprise: *599 - installation: *600 - membership: *631 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + membership: *626 + organization: *596 + repository: *597 sender: *17 required: - action @@ -136385,9 +135707,9 @@ webhooks: type: string enum: - published - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 package: description: Information about the package. type: object @@ -136910,7 +136232,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: &632 + items: &627 title: Ruby Gems metadata type: object properties: @@ -137007,7 +136329,7 @@ webhooks: - owner - package_version - registry - repository: *602 + repository: *597 sender: *17 required: - action @@ -137093,9 +136415,9 @@ webhooks: type: string enum: - updated - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 package: description: Information about the package. type: object @@ -137457,7 +136779,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *632 + items: *627 source_url: type: string format: uri @@ -137528,7 +136850,7 @@ webhooks: - owner - package_version - registry - repository: *602 + repository: *597 sender: *17 required: - action @@ -137719,12 +137041,12 @@ webhooks: - duration - created_at - updated_at - enterprise: *599 + enterprise: *594 id: type: integer - installation: *600 - organization: *601 - repository: *602 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - id @@ -137801,7 +137123,7 @@ webhooks: type: string enum: - approved - personal_access_token_request: &633 + personal_access_token_request: &628 title: Personal Access Token Request description: Details of a Personal Access Token Request. type: object @@ -137951,10 +137273,10 @@ webhooks: - token_expired - token_expires_at - token_last_used_at - enterprise: *599 - organization: *601 + enterprise: *594 + organization: *596 sender: *17 - installation: *600 + installation: *595 required: - action - personal_access_token_request @@ -138031,11 +137353,11 @@ webhooks: type: string enum: - cancelled - personal_access_token_request: *633 - enterprise: *599 - organization: *601 + personal_access_token_request: *628 + enterprise: *594 + organization: *596 sender: *17 - installation: *600 + installation: *595 required: - action - personal_access_token_request @@ -138111,11 +137433,11 @@ webhooks: type: string enum: - created - personal_access_token_request: *633 - enterprise: *599 - organization: *601 + personal_access_token_request: *628 + enterprise: *594 + organization: *596 sender: *17 - installation: *600 + installation: *595 required: - action - personal_access_token_request @@ -138190,11 +137512,11 @@ webhooks: type: string enum: - denied - personal_access_token_request: *633 - organization: *601 - enterprise: *599 + personal_access_token_request: *628 + organization: *596 + enterprise: *594 sender: *17 - installation: *600 + installation: *595 required: - action - personal_access_token_request @@ -138309,7 +137631,7 @@ webhooks: id: description: Unique identifier of the webhook. type: integer - last_response: *634 + last_response: *629 name: description: The type of webhook. The only valid value is 'web'. type: string @@ -138341,8 +137663,8 @@ webhooks: hook_id: description: The ID of the webhook that triggered the ping. type: integer - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 zen: description: Random string of GitHub zen. @@ -138597,10 +137919,10 @@ webhooks: - from required: - note - enterprise: *599 - installation: *600 - organization: *601 - project_card: &635 + enterprise: *594 + installation: *595 + organization: *596 + project_card: &630 title: Project Card type: object properties: @@ -138723,7 +138045,7 @@ webhooks: - creator - created_at - updated_at - repository: *602 + repository: *597 sender: *17 required: - action @@ -138814,11 +138136,11 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - project_card: *635 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project_card: *630 + repository: *597 sender: *17 required: - action @@ -138908,9 +138230,9 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 project_card: title: Project Card type: object @@ -139040,7 +138362,7 @@ webhooks: repository: anyOf: - type: 'null' - - *602 + - *597 sender: *17 required: - action @@ -139144,11 +138466,11 @@ webhooks: - from required: - note - enterprise: *599 - installation: *600 - organization: *601 - project_card: *635 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project_card: *630 + repository: *597 sender: *17 required: - action @@ -139252,9 +138574,9 @@ webhooks: - from required: - column_id - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 project_card: allOf: - title: Project Card @@ -139451,7 +138773,7 @@ webhooks: type: string required: - after_id - repository: *602 + repository: *597 sender: *17 required: - action @@ -139541,10 +138863,10 @@ webhooks: type: string enum: - closed - enterprise: *599 - installation: *600 - organization: *601 - project: &637 + enterprise: *594 + installation: *595 + organization: *596 + project: &632 title: Project type: object properties: @@ -139671,7 +138993,7 @@ webhooks: - creator - created_at - updated_at - repository: *602 + repository: *597 sender: *17 required: - action @@ -139761,10 +139083,10 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - project_column: &636 + enterprise: *594 + installation: *595 + organization: *596 + project_column: &631 title: Project Column type: object properties: @@ -139804,7 +139126,7 @@ webhooks: - name - created_at - updated_at - repository: *602 + repository: *597 sender: *17 required: - action @@ -139893,14 +139215,14 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - project_column: *636 + enterprise: *594 + installation: *595 + organization: *596 + project_column: *631 repository: anyOf: - type: 'null' - - *602 + - *597 sender: *17 required: - action @@ -139999,11 +139321,11 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - organization: *601 - project_column: *636 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project_column: *631 + repository: *597 sender: *17 required: - action @@ -140093,11 +139415,11 @@ webhooks: type: string enum: - moved - enterprise: *599 - installation: *600 - organization: *601 - project_column: *636 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project_column: *631 + repository: *597 sender: *17 required: - action @@ -140187,11 +139509,11 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - project: *637 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project: *632 + repository: *597 sender: *17 required: - action @@ -140281,14 +139603,14 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - project: *637 + enterprise: *594 + installation: *595 + organization: *596 + project: *632 repository: anyOf: - type: 'null' - - *602 + - *597 sender: *17 required: - action @@ -140399,11 +139721,11 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - organization: *601 - project: *637 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project: *632 + repository: *597 sender: *17 required: - action @@ -140492,11 +139814,11 @@ webhooks: type: string enum: - reopened - enterprise: *599 - installation: *600 - organization: *601 - project: *637 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + project: *632 + repository: *597 sender: *17 required: - action @@ -140587,9 +139909,9 @@ webhooks: type: string enum: - closed - installation: *600 - organization: *601 - projects_v2: &638 + installation: *595 + organization: *596 + projects_v2: &633 title: Projects v2 Project description: A projects v2 project type: object @@ -140836,9 +140158,9 @@ webhooks: type: string enum: - created - installation: *600 - organization: *601 - projects_v2: *638 + installation: *595 + organization: *596 + projects_v2: *633 sender: *17 required: - action @@ -140929,9 +140251,9 @@ webhooks: type: string enum: - deleted - installation: *600 - organization: *601 - projects_v2: *638 + installation: *595 + organization: *596 + projects_v2: *633 sender: *17 required: - action @@ -141062,9 +140384,9 @@ webhooks: type: string to: type: string - installation: *600 - organization: *601 - projects_v2: *638 + installation: *595 + organization: *596 + projects_v2: *633 sender: *17 required: - action @@ -141157,7 +140479,7 @@ webhooks: type: string enum: - archived - changes: &642 + changes: &637 type: object properties: archived_at: @@ -141173,9 +140495,9 @@ webhooks: - string - 'null' format: date-time - installation: *600 - organization: *601 - projects_v2_item: &639 + installation: *595 + organization: *596 + projects_v2_item: &634 title: Projects v2 Item description: An item belonging to a project type: object @@ -141332,9 +140654,9 @@ webhooks: - 'null' to: type: string - installation: *600 - organization: *601 - projects_v2_item: *639 + installation: *595 + organization: *596 + projects_v2_item: *634 sender: *17 required: - action @@ -141426,9 +140748,9 @@ webhooks: type: string enum: - created - installation: *600 - organization: *601 - projects_v2_item: *639 + installation: *595 + organization: *596 + projects_v2_item: *634 sender: *17 required: - action @@ -141519,9 +140841,9 @@ webhooks: type: string enum: - deleted - installation: *600 - organization: *601 - projects_v2_item: *639 + installation: *595 + organization: *596 + projects_v2_item: *634 sender: *17 required: - action @@ -141636,7 +140958,7 @@ webhooks: oneOf: - type: string - type: integer - - &640 + - &635 title: Projects v2 Single Select Option description: An option for a single select field type: object @@ -141660,7 +140982,7 @@ webhooks: required: - id - name - - &641 + - &636 title: Projects v2 Iteration Setting description: An iteration setting for an iteration field type: object @@ -141700,8 +141022,8 @@ webhooks: oneOf: - type: string - type: integer - - *640 - - *641 + - *635 + - *636 type: - 'null' - string @@ -141724,9 +141046,9 @@ webhooks: - 'null' required: - body - installation: *600 - organization: *601 - projects_v2_item: *639 + installation: *595 + organization: *596 + projects_v2_item: *634 sender: *17 required: - action @@ -141833,9 +141155,9 @@ webhooks: type: - string - 'null' - installation: *600 - organization: *601 - projects_v2_item: *639 + installation: *595 + organization: *596 + projects_v2_item: *634 sender: *17 required: - action @@ -141928,10 +141250,10 @@ webhooks: type: string enum: - restored - changes: *642 - installation: *600 - organization: *601 - projects_v2_item: *639 + changes: *637 + installation: *595 + organization: *596 + projects_v2_item: *634 sender: *17 required: - action @@ -142023,9 +141345,9 @@ webhooks: type: string enum: - reopened - installation: *600 - organization: *601 - projects_v2: *638 + installation: *595 + organization: *596 + projects_v2: *633 sender: *17 required: - action @@ -142106,10 +141428,10 @@ webhooks: title: public event type: object properties: - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - repository @@ -142196,13 +141518,13 @@ webhooks: type: string enum: - assigned - assignee: *621 - enterprise: *599 - installation: *600 - number: &643 + assignee: *616 + enterprise: *594 + installation: *595 + number: &638 description: The pull request number. type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -144551,7 +143873,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -144643,11 +143965,11 @@ webhooks: type: string enum: - auto_merge_disabled - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 number: type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -146989,7 +146311,7 @@ webhooks: - draft reason: type: string - repository: *602 + repository: *597 sender: *17 required: - action @@ -147081,11 +146403,11 @@ webhooks: type: string enum: - auto_merge_enabled - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 number: type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -149427,7 +148749,7 @@ webhooks: - draft reason: type: string - repository: *602 + repository: *597 sender: *17 required: - action @@ -149519,11 +148841,11 @@ webhooks: type: string enum: - closed - enterprise: *599 - installation: *600 - number: *643 - organization: *601 - pull_request: &644 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 + pull_request: &639 allOf: - *111 - type: object @@ -149587,7 +148909,7 @@ webhooks: Please use `squash_merge_commit_title` instead.** type: boolean default: false - repository: *602 + repository: *597 sender: *17 required: - action @@ -149678,12 +149000,12 @@ webhooks: type: string enum: - converted_to_draft - enterprise: *599 - installation: *600 - number: *643 - organization: *601 - pull_request: *644 - repository: *602 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 + pull_request: *639 + repository: *597 sender: *17 required: - action @@ -149773,11 +149095,11 @@ webhooks: type: string enum: - demilestoned - enterprise: *599 + enterprise: *594 milestone: *109 - number: *643 - organization: *601 - pull_request: &645 + number: *638 + organization: *596 + pull_request: &640 title: Pull Request type: object properties: @@ -152104,7 +151426,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -152236,12 +151558,12 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - number: *643 - organization: *601 - pull_request: *644 - repository: *602 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 + pull_request: *639 + repository: *597 sender: *17 required: - action @@ -152331,11 +151653,11 @@ webhooks: type: string enum: - labeled - enterprise: *599 - installation: *600 - label: *620 - number: *643 - organization: *601 + enterprise: *594 + installation: *595 + label: *615 + number: *638 + organization: *596 pull_request: title: Pull Request type: object @@ -154683,7 +154005,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -154774,10 +154096,10 @@ webhooks: type: string enum: - locked - enterprise: *599 - installation: *600 - number: *643 - organization: *601 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 pull_request: title: Pull Request type: object @@ -157123,7 +156445,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -157213,12 +156535,12 @@ webhooks: type: string enum: - milestoned - enterprise: *599 + enterprise: *594 milestone: *109 - number: *643 - organization: *601 - pull_request: *645 - repository: *602 + number: *638 + organization: *596 + pull_request: *640 + repository: *597 sender: *17 required: - action @@ -157307,12 +156629,12 @@ webhooks: type: string enum: - opened - enterprise: *599 - installation: *600 - number: *643 - organization: *601 - pull_request: *644 - repository: *602 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 + pull_request: *639 + repository: *597 sender: *17 required: - action @@ -157403,12 +156725,12 @@ webhooks: type: string enum: - ready_for_review - enterprise: *599 - installation: *600 - number: *643 - organization: *601 - pull_request: *644 - repository: *602 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 + pull_request: *639 + repository: *597 sender: *17 required: - action @@ -157498,12 +156820,12 @@ webhooks: type: string enum: - reopened - enterprise: *599 - installation: *600 - number: *643 - organization: *601 - pull_request: *644 - repository: *602 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 + pull_request: *639 + repository: *597 sender: *17 required: - action @@ -157888,9 +157210,9 @@ webhooks: - start_side - side - reactions - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: type: object properties: @@ -160120,7 +159442,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *602 + repository: *597 sender: *17 required: - action @@ -160210,7 +159532,7 @@ webhooks: type: string enum: - deleted - comment: &647 + comment: &642 title: Pull Request Review Comment description: The [comment](https://docs.github.com/enterprise-server@3.14/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. @@ -160503,9 +159825,9 @@ webhooks: - start_side - side - reactions - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: type: object properties: @@ -162723,7 +162045,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *602 + repository: *597 sender: *17 required: - action @@ -162813,11 +162135,11 @@ webhooks: type: string enum: - edited - changes: *646 - comment: *647 - enterprise: *599 - installation: *600 - organization: *601 + changes: *641 + comment: *642 + enterprise: *594 + installation: *595 + organization: *596 pull_request: type: object properties: @@ -165038,7 +164360,7 @@ webhooks: - _links - author_association - active_lock_reason - repository: *602 + repository: *597 sender: *17 required: - action @@ -165129,9 +164451,9 @@ webhooks: type: string enum: - dismissed - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: title: Simple Pull Request type: object @@ -167364,7 +166686,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *602 + repository: *597 review: description: The review that was affected. type: object @@ -167625,9 +166947,9 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: title: Simple Pull Request type: object @@ -169741,8 +169063,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *602 - review: &648 + repository: *597 + review: &643 description: The review that was affected. type: object properties: @@ -169990,12 +169312,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 number: description: The pull request number. type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -172342,7 +171664,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 requested_reviewer: title: User type: @@ -172428,12 +171750,12 @@ webhooks: type: string enum: - review_request_removed - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 number: description: The pull request number. type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -174787,7 +174109,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 requested_team: title: Team description: Groups of organization members that gives permissions @@ -174992,12 +174314,12 @@ webhooks: type: string enum: - review_requested - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 number: description: The pull request number. type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -177346,7 +176668,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 requested_reviewer: title: User type: @@ -177433,12 +176755,12 @@ webhooks: type: string enum: - review_requested - enterprise: *599 - installation: *600 + enterprise: *594 + installation: *595 number: description: The pull request number. type: integer - organization: *601 + organization: *596 pull_request: title: Pull Request type: object @@ -179778,7 +179100,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 requested_team: title: Team description: Groups of organization members that gives permissions @@ -179972,9 +179294,9 @@ webhooks: type: string enum: - submitted - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: title: Simple Pull Request type: object @@ -182210,8 +181532,8 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *602 - review: *648 + repository: *597 + review: *643 sender: *17 required: - action @@ -182301,9 +181623,9 @@ webhooks: type: string enum: - resolved - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: title: Simple Pull Request type: object @@ -184434,7 +183756,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *602 + repository: *597 sender: *17 thread: type: object @@ -184841,9 +184163,9 @@ webhooks: type: string enum: - unresolved - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 pull_request: title: Simple Pull Request type: object @@ -186957,7 +186279,7 @@ webhooks: - author_association - auto_merge - active_lock_reason - repository: *602 + repository: *597 sender: *17 thread: type: object @@ -187366,10 +186688,10 @@ webhooks: type: string before: type: string - enterprise: *599 - installation: *600 - number: *643 - organization: *601 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 pull_request: title: Pull Request type: object @@ -189704,7 +189026,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -189796,11 +189118,11 @@ webhooks: type: string enum: - unassigned - assignee: *649 - enterprise: *599 - installation: *600 - number: *643 - organization: *601 + assignee: *644 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 pull_request: title: Pull Request type: object @@ -192150,7 +191472,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -192239,11 +191561,11 @@ webhooks: type: string enum: - unlabeled - enterprise: *599 - installation: *600 - label: *620 - number: *643 - organization: *601 + enterprise: *594 + installation: *595 + label: *615 + number: *638 + organization: *596 pull_request: title: Pull Request type: object @@ -194582,7 +193904,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -194673,10 +193995,10 @@ webhooks: type: string enum: - unlocked - enterprise: *599 - installation: *600 - number: *643 - organization: *601 + enterprise: *594 + installation: *595 + number: *638 + organization: *596 pull_request: title: Pull Request type: object @@ -197005,7 +196327,7 @@ webhooks: - auto_merge - active_lock_reason - draft - repository: *602 + repository: *597 sender: *17 required: - action @@ -197218,7 +196540,7 @@ webhooks: deleted: description: Whether this push deleted the `ref`. type: boolean - enterprise: *599 + enterprise: *594 forced: description: Whether this push was a force push of the `ref`. type: boolean @@ -197313,8 +196635,8 @@ webhooks: - url - author - committer - installation: *600 - organization: *601 + installation: *595 + organization: *596 pusher: title: Committer description: Metaproperties for Git author/committer information. @@ -197912,9 +197234,9 @@ webhooks: type: string enum: - published - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 registry_package: type: object properties: @@ -198391,7 +197713,7 @@ webhooks: type: string rubygems_metadata: type: array - items: *632 + items: *627 summary: type: string tag_name: @@ -198447,7 +197769,7 @@ webhooks: - owner - package_version - registry - repository: *602 + repository: *597 sender: *17 required: - action @@ -198535,9 +197857,9 @@ webhooks: type: string enum: - updated - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 registry_package: type: object properties: @@ -198849,7 +198171,7 @@ webhooks: - published_at rubygems_metadata: type: array - items: *632 + items: *627 summary: type: string tag_name: @@ -198899,7 +198221,7 @@ webhooks: - owner - package_version - registry - repository: *602 + repository: *597 sender: *17 required: - action @@ -198986,10 +198308,10 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - release: &650 + enterprise: *594 + installation: *595 + organization: *596 + release: &645 title: Release description: The [release](https://docs.github.com/enterprise-server@3.14/rest/releases/releases/#get-a-release) object. @@ -199320,7 +198642,7 @@ webhooks: - updated_at - zipball_url - body - repository: *602 + repository: *597 sender: *17 required: - action @@ -199407,11 +198729,11 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - release: *650 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + release: *645 + repository: *597 sender: *17 required: - action @@ -199538,11 +198860,11 @@ webhooks: type: boolean required: - to - enterprise: *599 - installation: *600 - organization: *601 - release: *650 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + release: *645 + repository: *597 sender: *17 required: - action @@ -199630,9 +198952,9 @@ webhooks: type: string enum: - prereleased - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 release: title: Release description: The [release](https://docs.github.com/enterprise-server@3.14/rest/releases/releases/#get-a-release) @@ -199968,7 +199290,7 @@ webhooks: - string - 'null' format: uri - repository: *602 + repository: *597 sender: *17 required: - action @@ -200054,10 +199376,10 @@ webhooks: type: string enum: - published - enterprise: *599 - installation: *600 - organization: *601 - release: &651 + enterprise: *594 + installation: *595 + organization: *596 + release: &646 title: Release description: The [release](https://docs.github.com/enterprise-server@3.14/rest/releases/releases/#get-a-release) object. @@ -200390,7 +199712,7 @@ webhooks: - string - 'null' format: uri - repository: *602 + repository: *597 sender: *17 required: - action @@ -200476,11 +199798,11 @@ webhooks: type: string enum: - released - enterprise: *599 - installation: *600 - organization: *601 - release: *650 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + release: *645 + repository: *597 sender: *17 required: - action @@ -200566,11 +199888,11 @@ webhooks: type: string enum: - unpublished - enterprise: *599 - installation: *600 - organization: *601 - release: *651 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + release: *646 + repository: *597 sender: *17 required: - action @@ -200656,10 +199978,10 @@ webhooks: type: string enum: - anonymous_access_disabled - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -200744,10 +200066,10 @@ webhooks: type: string enum: - anonymous_access_enabled - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -200832,10 +200154,10 @@ webhooks: type: string enum: - archived - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -200922,10 +200244,10 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201013,10 +200335,10 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201111,10 +200433,10 @@ webhooks: additionalProperties: true description: The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201239,10 +200561,10 @@ webhooks: - 'null' items: type: string - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201330,10 +200652,10 @@ webhooks: type: string enum: - privatized - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201420,10 +200742,10 @@ webhooks: type: string enum: - publicized - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201527,10 +200849,10 @@ webhooks: - name required: - repository - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -201610,10 +200932,10 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 repository_ruleset: *261 sender: *17 required: @@ -201692,10 +201014,10 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 repository_ruleset: *261 sender: *17 required: @@ -201774,10 +201096,10 @@ webhooks: type: string enum: - edited - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 repository_ruleset: *261 changes: type: object @@ -201839,16 +201161,16 @@ webhooks: properties: added: type: array - items: *509 + items: *506 deleted: type: array - items: *509 + items: *506 updated: type: array items: type: object properties: - rule: *509 + rule: *506 changes: type: object properties: @@ -202095,10 +201417,10 @@ webhooks: - from required: - owner - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -202186,10 +201508,10 @@ webhooks: type: string enum: - unarchived - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -202277,7 +201599,7 @@ webhooks: type: string enum: - create - alert: &652 + alert: &647 title: Repository Vulnerability Alert Alert description: The security alert of the vulnerable dependency. type: object @@ -202401,10 +201723,10 @@ webhooks: type: string enum: - open - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -202624,10 +201946,10 @@ webhooks: type: string enum: - dismissed - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -202715,11 +202037,11 @@ webhooks: type: string enum: - reopen - alert: *652 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + alert: *647 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -202931,10 +202253,10 @@ webhooks: enum: - fixed - open - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -203022,7 +202344,7 @@ webhooks: type: string enum: - created - alert: &653 + alert: &648 type: object properties: number: *91 @@ -203099,10 +202421,10 @@ webhooks: format: date-time description: 'The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.' - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -203193,11 +202515,11 @@ webhooks: type: string enum: - created - alert: *653 - installation: *600 - location: *654 - organization: *601 - repository: *602 + alert: *648 + installation: *595 + location: *649 + organization: *596 + repository: *597 sender: *17 required: - location @@ -203440,11 +202762,11 @@ webhooks: type: string enum: - reopened - alert: *653 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + alert: *648 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -203532,11 +202854,11 @@ webhooks: type: string enum: - resolved - alert: *653 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + alert: *648 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -203624,11 +202946,11 @@ webhooks: type: string enum: - validated - alert: *653 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + alert: *648 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -203714,11 +203036,11 @@ webhooks: type: string enum: - published - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - security_advisory: &655 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + security_advisory: &650 description: The details of the security advisory, including summary, description, and severity. type: object @@ -203914,11 +203236,11 @@ webhooks: type: string enum: - updated - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 - security_advisory: *655 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 + security_advisory: *650 sender: *17 required: - action @@ -204001,10 +203323,10 @@ webhooks: type: string enum: - withdrawn - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 security_advisory: description: The details of the security advisory, including summary, description, and severity. @@ -204201,10 +203523,10 @@ webhooks: type: object properties: security_and_analysis: *239 - enterprise: *599 - installation: *600 - organization: *601 - repository: *298 + enterprise: *594 + installation: *595 + organization: *596 + repository: *295 sender: *17 required: - changes @@ -204292,12 +203614,12 @@ webhooks: type: string enum: - cancelled - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - sponsorship: &656 + sponsorship: &651 type: object properties: created_at: @@ -204612,12 +203934,12 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - sponsorship: *656 + sponsorship: *651 required: - action - sponsorship @@ -204715,12 +204037,12 @@ webhooks: type: string required: - from - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - sponsorship: *656 + sponsorship: *651 required: - action - changes @@ -204807,17 +204129,17 @@ webhooks: type: string enum: - pending_cancellation - effective_date: &657 + effective_date: &652 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: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - sponsorship: *656 + sponsorship: *651 required: - action - sponsorship @@ -204901,7 +204223,7 @@ webhooks: type: string enum: - pending_tier_change - changes: &658 + changes: &653 type: object properties: tier: @@ -204945,13 +204267,13 @@ webhooks: - from required: - tier - effective_date: *657 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + effective_date: *652 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - sponsorship: *656 + sponsorship: *651 required: - action - changes @@ -205038,13 +204360,13 @@ webhooks: type: string enum: - tier_changed - changes: *658 - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + changes: *653 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - sponsorship: *656 + sponsorship: *651 required: - action - changes @@ -205128,10 +204450,10 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 starred_at: description: 'The time the star was created. This is a timestamp @@ -205225,10 +204547,10 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 starred_at: description: 'The time the star was created. This is a timestamp @@ -205667,15 +204989,15 @@ webhooks: type: - string - 'null' - enterprise: *599 + enterprise: *594 id: description: The unique identifier of the status. type: integer - installation: *600 + installation: *595 name: type: string - organization: *601 - repository: *602 + organization: *596 + repository: *597 sender: *17 sha: description: The Commit SHA. @@ -205788,12 +205110,12 @@ webhooks: title: team_add event type: object properties: - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - team: &659 + team: &654 title: Team description: Groups of organization members that gives permissions on specified repositories. @@ -206033,9 +205355,9 @@ webhooks: type: string enum: - added_to_repository - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 repository: title: Repository description: A git repository @@ -206505,7 +205827,7 @@ webhooks: - topics - visibility sender: *17 - team: *659 + team: *654 required: - action - team @@ -206591,9 +205913,9 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 repository: title: Repository description: A git repository @@ -207063,7 +206385,7 @@ webhooks: - topics - visibility sender: *17 - team: *659 + team: *654 required: - action - team @@ -207150,9 +206472,9 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 repository: title: Repository description: A git repository @@ -207622,7 +206944,7 @@ webhooks: - topics - visibility sender: *17 - team: *659 + team: *654 required: - action - team @@ -207776,9 +207098,9 @@ webhooks: - from required: - permissions - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 repository: title: Repository description: A git repository @@ -208248,7 +207570,7 @@ webhooks: - topics - visibility sender: *17 - team: *659 + team: *654 required: - action - changes @@ -208336,9 +207658,9 @@ webhooks: type: string enum: - removed_from_repository - enterprise: *599 - installation: *600 - organization: *601 + enterprise: *594 + installation: *595 + organization: *596 repository: title: Repository description: A git repository @@ -208808,7 +208130,7 @@ webhooks: - topics - visibility sender: *17 - team: *659 + team: *654 required: - action - team @@ -208891,12 +208213,12 @@ webhooks: type: string enum: - created - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - user: *621 + user: *616 required: - action responses: @@ -208974,12 +208296,12 @@ webhooks: type: string enum: - deleted - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - user: *621 + user: *616 required: - action responses: @@ -209060,10 +208382,10 @@ webhooks: type: string enum: - started - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 required: - action @@ -209146,17 +208468,17 @@ webhooks: title: workflow_dispatch event type: object properties: - enterprise: *599 + enterprise: *594 inputs: type: - object - 'null' additionalProperties: true - installation: *600 - organization: *601 + installation: *595 + organization: *596 ref: type: string - repository: *602 + repository: *597 sender: *17 workflow: type: string @@ -209248,10 +208570,10 @@ webhooks: type: string enum: - completed - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 workflow_job: allOf: @@ -209507,7 +208829,7 @@ webhooks: type: string required: - conclusion - deployment: *411 + deployment: *408 required: - action - repository @@ -209596,10 +208918,10 @@ webhooks: type: string enum: - in_progress - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 workflow_job: allOf: @@ -209881,7 +209203,7 @@ webhooks: required: - status - steps - deployment: *411 + deployment: *408 required: - action - repository @@ -209970,10 +209292,10 @@ webhooks: type: string enum: - queued - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 workflow_job: type: object @@ -210119,7 +209441,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *411 + deployment: *408 required: - action - repository @@ -210208,10 +209530,10 @@ webhooks: type: string enum: - waiting - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 workflow_job: type: object @@ -210358,7 +209680,7 @@ webhooks: - workflow_name - head_branch - created_at - deployment: *411 + deployment: *408 required: - action - repository @@ -210448,12 +209770,12 @@ webhooks: type: string enum: - completed - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - workflow: *616 + workflow: *611 workflow_run: title: Workflow Run type: object @@ -211482,12 +210804,12 @@ webhooks: type: string enum: - in_progress - enterprise: *599 - installation: *600 - organization: *601 - repository: *602 + enterprise: *594 + installation: *595 + organization: *596 + repository: *597 sender: *17 - workflow: *616 + workflow: *611 workflow_run: title: Workflow Run type: object @@ -212501,12 +211823,12 @@ webhooks:{"code":"internal","msg":"git-diff-tree: context deadline exceeded","meta":{"cause":"*fmt.wrapError"}}