From 0ec7c3f48ff784a9bb39730dad68e093acd7ade0 Mon Sep 17 00:00:00 2001 From: github-openapi-bot <69533958+github-openapi-bot@users.noreply.github.com> Date: Mon, 8 Feb 2021 13:34:56 -0500 Subject: [PATCH] Update OpenAPI Descriptions --- lib/rest/static/decorated/ghes-2.18.json | 6 +- lib/rest/static/decorated/ghes-2.19.json | 6 +- lib/rest/static/decorated/ghes-2.20.json | 6 +- lib/rest/static/decorated/github.ae.json | 132 -- .../dereferenced/api.github.com.deref.json | 175 +- .../static/dereferenced/ghes-2.18.deref.json | 2 - .../static/dereferenced/ghes-2.19.deref.json | 2 - .../static/dereferenced/ghes-2.20.deref.json | 2 - .../static/dereferenced/github.ae.deref.json | 1501 ----------------- 9 files changed, 56 insertions(+), 1776 deletions(-) diff --git a/lib/rest/static/decorated/ghes-2.18.json b/lib/rest/static/decorated/ghes-2.18.json index 0c8a2d588f..ba86f10f82 100644 --- a/lib/rest/static/decorated/ghes-2.18.json +++ b/lib/rest/static/decorated/ghes-2.18.json @@ -47662,7 +47662,6 @@ } ], "summary": "Merge a pull request", - "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.18/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", "tags": [ "pulls" ], @@ -47736,7 +47735,7 @@ "category": "pulls", "categoryLabel": "Pulls", "notes": [], - "descriptionHTML": "
This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See \"Abuse rate limits\" and \"Dealing with abuse rate limits\" for details.
", + "descriptionHTML": "", "bodyParameters": [ { "type": "string", @@ -47961,7 +47960,6 @@ } ], "summary": "Request reviewers for a pull request", - "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.18/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", "tags": [ "pulls" ], @@ -48029,7 +48027,7 @@ "subcategory": "review-requests", "subcategoryLabel": "Review requests", "notes": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See \"Abuse rate limits\" and \"Dealing with abuse rate limits\" for details.
", + "descriptionHTML": "", "bodyParameters": [ { "type": "array of strings", diff --git a/lib/rest/static/decorated/ghes-2.19.json b/lib/rest/static/decorated/ghes-2.19.json index 35c2ea4b5e..c142cd248b 100644 --- a/lib/rest/static/decorated/ghes-2.19.json +++ b/lib/rest/static/decorated/ghes-2.19.json @@ -48464,7 +48464,6 @@ } ], "summary": "Merge a pull request", - "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.19/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", "tags": [ "pulls" ], @@ -48538,7 +48537,7 @@ "category": "pulls", "categoryLabel": "Pulls", "notes": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See \"Abuse rate limits\" and \"Dealing with abuse rate limits\" for details.
", + "descriptionHTML": "", "bodyParameters": [ { "type": "string", @@ -48763,7 +48762,6 @@ } ], "summary": "Request reviewers for a pull request", - "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.19/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", "tags": [ "pulls" ], @@ -48831,7 +48829,7 @@ "subcategory": "review-requests", "subcategoryLabel": "Review requests", "notes": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See \"Abuse rate limits\" and \"Dealing with abuse rate limits\" for details.
", + "descriptionHTML": "", "bodyParameters": [ { "type": "array of strings", diff --git a/lib/rest/static/decorated/ghes-2.20.json b/lib/rest/static/decorated/ghes-2.20.json index d44fb8af91..edf0669fd3 100644 --- a/lib/rest/static/decorated/ghes-2.20.json +++ b/lib/rest/static/decorated/ghes-2.20.json @@ -49118,7 +49118,6 @@ } ], "summary": "Merge a pull request", - "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.20/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", "tags": [ "pulls" ], @@ -49192,7 +49191,7 @@ "category": "pulls", "categoryLabel": "Pulls", "notes": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See \"Abuse rate limits\" and \"Dealing with abuse rate limits\" for details.
", + "descriptionHTML": "", "bodyParameters": [ { "type": "string", @@ -49417,7 +49416,6 @@ } ], "summary": "Request reviewers for a pull request", - "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.20/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.", "tags": [ "pulls" ], @@ -49485,7 +49483,7 @@ "subcategory": "review-requests", "subcategoryLabel": "Review requests", "notes": [], - "descriptionHTML": "This endpoint triggers notifications. Creating content too quickly using this endpoint may result in abuse rate limiting. See \"Abuse rate limits\" and \"Dealing with abuse rate limits\" for details.
", + "descriptionHTML": "", "bodyParameters": [ { "type": "array of strings", diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json index a471116efd..e752ba12f2 100644 --- a/lib/rest/static/decorated/github.ae.json +++ b/lib/rest/static/decorated/github.ae.json @@ -26505,138 +26505,6 @@ } ] }, - { - "verb": "post", - "requestPath": "/repos/{owner}/{repo}/branches/{branch}/rename", - "serverUrl": "https://api.github.com", - "parameters": [ - { - "name": "owner", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "descriptionHTML": "" - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "descriptionHTML": "" - }, - { - "name": "branch", - "description": "The name of the branch.", - "in": "path", - "required": true, - "schema": { - "type": "string" - }, - "x-multi-segment": true, - "descriptionHTML": "The name of the branch.
" - } - ], - "x-codeSamples": [ - { - "lang": "Shell", - "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/branches/BRANCH/rename \\\n -d '{\"new_name\":\"new_name\"}'", - "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n https://api.github.com/repos/octocat/hello-world/branches/BRANCH/rename \\\n -d '{\"new_name\":\"new_name\"}'"
- },
- {
- "lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/branches/{branch}/rename', {\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n new_name: 'new_name'\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/branches/{branch}/rename', {\n owner: 'octocat',\n repo: 'hello-world',\n branch: 'branch',\n new_name: 'new_name'\n})\n"
- }
- ],
- "summary": "Rename a branch",
- "description": "Renames a branch in a repository.\n\n**Note:** Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see \"[Renaming a branch](https://docs.github.com/github-ae@latest/github/administering-a-repository/renaming-a-branch)\".\n\nThe permissions required to use this endpoint depends on whether you are renaming the default branch.\n\nTo rename a non-default branch:\n\n* Users must have push access.\n* GitHub Apps must have the `contents:write` repository permission.\n\nTo rename the default branch:\n\n* Users must have admin or owner permissions.\n* GitHub Apps must have the `administration:write` repository permission.",
- "tags": [
- "repos"
- ],
- "operationId": "repos/rename-branch",
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#rename-a-branch"
- },
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "new_name": {
- "type": "string",
- "description": "Required. The new name of the branch.
", - "name": "new_name", - "in": "body", - "rawType": "string", - "rawDescription": "The new name of the branch.", - "childParamsGroups": [] - } - }, - "required": [ - "new_name" - ] - }, - "example": { - "new_name": "my_renamed_branch" - } - } - } - }, - "x-github": { - "githubCloudOnly": false, - "enabledForGitHubApps": true, - "previews": [], - "category": "repos", - "subcategory": "branches" - }, - "slug": "rename-a-branch", - "category": "repos", - "categoryLabel": "Repos", - "subcategory": "branches", - "subcategoryLabel": "Branches", - "notes": [], - "descriptionHTML": "Renames a branch in a repository.
\nNote: Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see \"Renaming a branch\".
\nThe permissions required to use this endpoint depends on whether you are renaming the default branch.
\nTo rename a non-default branch:
\ncontents:write repository permission.To rename the default branch:
\nadministration:write repository permission.Required. The new name of the branch.
", - "name": "new_name", - "in": "body", - "rawType": "string", - "rawDescription": "The new name of the branch.", - "childParamsGroups": [] - } - ], - "responses": [ - { - "httpStatusCode": "201", - "httpStatusMessage": "Created", - "description": "Default response", - "payload": "{\n \"name\": \"master\",\n \"commit\": {\n \"sha\": \"7fd1a60b01f91b314f59955a4e4d4e80d8edf11d\",\n \"node_id\": \"MDY6Q29tbWl0N2ZkMWE2MGIwMWY5MWIzMTRmNTk5NTVhNGU0ZDRlODBkOGVkZjExZA==\",\n \"commit\": {\n \"author\": {\n \"name\": \"The Octocat\",\n \"date\": \"2012-03-06T15:06:50-08:00\",\n \"email\": \"octocat@nowhere.com\"\n },\n \"url\": \"https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d\",\n \"message\": \"Merge pull request #6 from Spaceghost/patch-1\\n\\nNew line at end of file.\",\n \"tree\": {\n \"sha\": \"b4eecafa9be2f2006ce1b709d6857b07069b4608\",\n \"url\": \"https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608\"\n },\n \"committer\": {\n \"name\": \"The Octocat\",\n \"date\": \"2012-03-06T15:06:50-08:00\",\n \"email\": \"octocat@nowhere.com\"\n },\n \"verification\": {\n \"verified\": false,\n \"reason\": \"unsigned\",\n \"signature\": null,\n \"payload\": null\n },\n \"comment_count\": 0\n },\n \"author\": {\n \"gravatar_id\": \"\",\n \"avatar_url\": \"https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"id\": 583231,\n \"login\": \"octocat\",\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": true\n },\n \"parents\": [\n {\n \"sha\": \"553c2077f0edc3d5dc5d17262f6aa498e69d6f8e\",\n \"url\": \"https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e\"\n },\n {\n \"sha\": \"762941318ee16e59dabbacb1b4049eec22f0d303\",\n \"url\": \"https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303\"\n }\n ],\n \"url\": \"https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d\",\n \"committer\": {\n \"gravatar_id\": \"\",\n \"avatar_url\": \"https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"id\": 583231,\n \"login\": \"octocat\",\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": true\n },\n \"html_url\": \"https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e\",\n \"comments_url\": \"https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments\"\n },\n \"_links\": {\n \"html\": \"https://github.com/octocat/Hello-World/tree/master\",\n \"self\": \"https://api.github.com/repos/octocat/Hello-World/branches/master\"\n },\n \"protected\": true,\n \"protection\": {\n \"enabled\": true,\n \"required_status_checks\": {\n \"enforcement_level\": \"non_admins\",\n \"contexts\": [\n \"ci-test\",\n \"linter\"\n ]\n }\n },\n \"protection_url\": \"https://api.github.com/repos/octocat/hello-world/branches/master/protection\"\n}\n"
- },
- {
- "httpStatusCode": "403",
- "httpStatusMessage": "Forbidden",
- "description": "Forbidden"
- },
- {
- "httpStatusCode": "404",
- "httpStatusMessage": "Not Found",
- "description": "Resource not found"
- },
- {
- "httpStatusCode": "422",
- "httpStatusMessage": "Unprocessable Entity",
- "description": "Validation failed"
- }
- ]
- },
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/check-runs",
diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json
index d6b3ec1d2e..fe32ef89f3 100644
--- a/lib/rest/static/dereferenced/api.github.com.deref.json
+++ b/lib/rest/static/dereferenced/api.github.com.deref.json
@@ -77907,34 +77907,19 @@
"description": "a description of the group",
"example": "A group of Developers working on AzureAD SAML SSO",
"type": "string"
+ },
+ "status": {
+ "description": "synchronization status for this group mapping",
+ "example": "unsynced",
+ "type": "string"
+ },
+ "synced_at": {
+ "description": "the time of the last sync for this group-mapping",
+ "example": "2019-06-03 22:27:15:000 -700",
+ "type": "string"
}
}
}
- },
- "group_id": {
- "description": "The ID of the group",
- "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa",
- "type": "string"
- },
- "group_name": {
- "description": "The name of the group",
- "example": "saml-azuread-test",
- "type": "string"
- },
- "group_description": {
- "description": "a description of the group",
- "example": "A group of Developers working on AzureAD SAML SSO",
- "type": "string"
- },
- "status": {
- "description": "synchronization status for this group mapping",
- "example": "unsynced",
- "type": "string"
- },
- "synced_at": {
- "description": "the time of the last sync for this group-mapping",
- "example": "2019-06-03 22:27:15:000 -700",
- "type": "string"
}
}
},
@@ -90268,34 +90253,19 @@
"description": "a description of the group",
"example": "A group of Developers working on AzureAD SAML SSO",
"type": "string"
+ },
+ "status": {
+ "description": "synchronization status for this group mapping",
+ "example": "unsynced",
+ "type": "string"
+ },
+ "synced_at": {
+ "description": "the time of the last sync for this group-mapping",
+ "example": "2019-06-03 22:27:15:000 -700",
+ "type": "string"
}
}
}
- },
- "group_id": {
- "description": "The ID of the group",
- "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa",
- "type": "string"
- },
- "group_name": {
- "description": "The name of the group",
- "example": "saml-azuread-test",
- "type": "string"
- },
- "group_description": {
- "description": "a description of the group",
- "example": "A group of Developers working on AzureAD SAML SSO",
- "type": "string"
- },
- "status": {
- "description": "synchronization status for this group mapping",
- "example": "unsynced",
- "type": "string"
- },
- "synced_at": {
- "description": "the time of the last sync for this group-mapping",
- "example": "2019-06-03 22:27:15:000 -700",
- "type": "string"
}
}
},
@@ -90457,34 +90427,19 @@
"description": "a description of the group",
"example": "A group of Developers working on AzureAD SAML SSO",
"type": "string"
+ },
+ "status": {
+ "description": "synchronization status for this group mapping",
+ "example": "unsynced",
+ "type": "string"
+ },
+ "synced_at": {
+ "description": "the time of the last sync for this group-mapping",
+ "example": "2019-06-03 22:27:15:000 -700",
+ "type": "string"
}
}
}
- },
- "group_id": {
- "description": "The ID of the group",
- "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa",
- "type": "string"
- },
- "group_name": {
- "description": "The name of the group",
- "example": "saml-azuread-test",
- "type": "string"
- },
- "group_description": {
- "description": "a description of the group",
- "example": "A group of Developers working on AzureAD SAML SSO",
- "type": "string"
- },
- "status": {
- "description": "synchronization status for this group mapping",
- "example": "unsynced",
- "type": "string"
- },
- "synced_at": {
- "description": "the time of the last sync for this group-mapping",
- "example": "2019-06-03 22:27:15:000 -700",
- "type": "string"
}
}
},
@@ -293049,34 +293004,19 @@
"description": "a description of the group",
"example": "A group of Developers working on AzureAD SAML SSO",
"type": "string"
+ },
+ "status": {
+ "description": "synchronization status for this group mapping",
+ "example": "unsynced",
+ "type": "string"
+ },
+ "synced_at": {
+ "description": "the time of the last sync for this group-mapping",
+ "example": "2019-06-03 22:27:15:000 -700",
+ "type": "string"
}
}
}
- },
- "group_id": {
- "description": "The ID of the group",
- "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa",
- "type": "string"
- },
- "group_name": {
- "description": "The name of the group",
- "example": "saml-azuread-test",
- "type": "string"
- },
- "group_description": {
- "description": "a description of the group",
- "example": "A group of Developers working on AzureAD SAML SSO",
- "type": "string"
- },
- "status": {
- "description": "synchronization status for this group mapping",
- "example": "unsynced",
- "type": "string"
- },
- "synced_at": {
- "description": "the time of the last sync for this group-mapping",
- "example": "2019-06-03 22:27:15:000 -700",
- "type": "string"
}
}
},
@@ -293289,34 +293229,19 @@
"description": "a description of the group",
"example": "A group of Developers working on AzureAD SAML SSO",
"type": "string"
+ },
+ "status": {
+ "description": "synchronization status for this group mapping",
+ "example": "unsynced",
+ "type": "string"
+ },
+ "synced_at": {
+ "description": "the time of the last sync for this group-mapping",
+ "example": "2019-06-03 22:27:15:000 -700",
+ "type": "string"
}
}
}
- },
- "group_id": {
- "description": "The ID of the group",
- "example": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa",
- "type": "string"
- },
- "group_name": {
- "description": "The name of the group",
- "example": "saml-azuread-test",
- "type": "string"
- },
- "group_description": {
- "description": "a description of the group",
- "example": "A group of Developers working on AzureAD SAML SSO",
- "type": "string"
- },
- "status": {
- "description": "synchronization status for this group mapping",
- "example": "unsynced",
- "type": "string"
- },
- "synced_at": {
- "description": "the time of the last sync for this group-mapping",
- "example": "2019-06-03 22:27:15:000 -700",
- "type": "string"
}
}
},
diff --git a/lib/rest/static/dereferenced/ghes-2.18.deref.json b/lib/rest/static/dereferenced/ghes-2.18.deref.json
index 55d190723f..ae7289b28c 100644
--- a/lib/rest/static/dereferenced/ghes-2.18.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.18.deref.json
@@ -182489,7 +182489,6 @@
},
"put": {
"summary": "Merge a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.18/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -183103,7 +183102,6 @@
},
"post": {
"summary": "Request reviewers for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.18/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.18/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.",
"tags": [
"pulls"
],
diff --git a/lib/rest/static/dereferenced/ghes-2.19.deref.json b/lib/rest/static/dereferenced/ghes-2.19.deref.json
index 0c664d2ee5..a682e5f081 100644
--- a/lib/rest/static/dereferenced/ghes-2.19.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.19.deref.json
@@ -185888,7 +185888,6 @@
},
"put": {
"summary": "Merge a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.19/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -186502,7 +186501,6 @@
},
"post": {
"summary": "Request reviewers for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.19/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.19/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.",
"tags": [
"pulls"
],
diff --git a/lib/rest/static/dereferenced/ghes-2.20.deref.json b/lib/rest/static/dereferenced/ghes-2.20.deref.json
index 57e1a62318..686000b37f 100644
--- a/lib/rest/static/dereferenced/ghes-2.20.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.20.deref.json
@@ -188857,7 +188857,6 @@
},
"put": {
"summary": "Merge a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.20/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.",
"tags": [
"pulls"
],
@@ -189471,7 +189470,6 @@
},
"post": {
"summary": "Request reviewers for a pull request",
- "description": "This endpoint triggers [notifications](https://docs.github.com/enterprise-server@2.20/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in abuse rate limiting. See \"[Abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/overview/resources-in-the-rest-api#abuse-rate-limits)\" and \"[Dealing with abuse rate limits](https://docs.github.com/enterprise-server@2.20/rest/guides/best-practices-for-integrators#dealing-with-abuse-rate-limits)\" for details.",
"tags": [
"pulls"
],
diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json
index c66fee9620..807841c0cb 100644
--- a/lib/rest/static/dereferenced/github.ae.deref.json
+++ b/lib/rest/static/dereferenced/github.ae.deref.json
@@ -87435,1507 +87435,6 @@
}
}
},
- "/repos/{owner}/{repo}/branches/{branch}/rename": {
- "post": {
- "summary": "Rename a branch",
- "description": "Renames a branch in a repository.\n\n**Note:** Although the API responds immediately, the branch rename process might take some extra time to complete in the background. You won't be able to push to the old branch name while the rename process is in progress. For more information, see \"[Renaming a branch](https://docs.github.com/github-ae@latest/github/administering-a-repository/renaming-a-branch)\".\n\nThe permissions required to use this endpoint depends on whether you are renaming the default branch.\n\nTo rename a non-default branch:\n\n* Users must have push access.\n* GitHub Apps must have the `contents:write` repository permission.\n\nTo rename the default branch:\n\n* Users must have admin or owner permissions.\n* GitHub Apps must have the `administration:write` repository permission.",
- "tags": [
- "repos"
- ],
- "operationId": "repos/rename-branch",
- "externalDocs": {
- "description": "API method documentation",
- "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#rename-a-branch"
- },
- "parameters": [
- {
- "name": "owner",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "repo",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- }
- },
- {
- "name": "branch",
- "description": "The name of the branch.",
- "in": "path",
- "required": true,
- "schema": {
- "type": "string"
- },
- "x-multi-segment": true
- }
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "object",
- "properties": {
- "new_name": {
- "type": "string",
- "description": "The new name of the branch."
- }
- },
- "required": [
- "new_name"
- ]
- },
- "example": {
- "new_name": "my_renamed_branch"
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "response",
- "content": {
- "application/json": {
- "schema": {
- "title": "Branch With Protection",
- "description": "Branch With Protection",
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "commit": {
- "title": "Commit",
- "description": "Commit",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- },
- "sha": {
- "type": "string",
- "example": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
- },
- "node_id": {
- "type": "string",
- "example": "MDY6Q29tbWl0NmRjYjA5YjViNTc4NzVmMzM0ZjYxYWViZWQ2OTVlMmU0MTkzZGI1ZQ=="
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- },
- "comments_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments"
- },
- "commit": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e"
- },
- "author": {
- "nullable": true,
- "allOf": [
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "example": "\"Chris Wanstrath\""
- },
- "email": {
- "type": "string",
- "example": "\"chris@ozmm.org\""
- },
- "date": {
- "type": "string",
- "example": "\"2007-10-29T02:42:39.000-07:00\""
- }
- }
- }
- ]
- },
- "committer": {
- "nullable": true,
- "allOf": [
- {
- "title": "Git User",
- "description": "Metaproperties for Git author/committer information.",
- "type": "object",
- "properties": {
- "name": {
- "type": "string",
- "example": "\"Chris Wanstrath\""
- },
- "email": {
- "type": "string",
- "example": "\"chris@ozmm.org\""
- },
- "date": {
- "type": "string",
- "example": "\"2007-10-29T02:42:39.000-07:00\""
- }
- }
- }
- ]
- },
- "message": {
- "type": "string",
- "example": "Fix all the bugs"
- },
- "comment_count": {
- "type": "integer",
- "example": 0
- },
- "tree": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string",
- "example": "827efc6d56897b048c772eb4087f854f46256132"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/tree/827efc6d56897b048c772eb4087f854f46256132"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- },
- "verification": {
- "title": "Verification",
- "type": "object",
- "properties": {
- "verified": {
- "type": "boolean"
- },
- "reason": {
- "type": "string"
- },
- "payload": {
- "type": "string",
- "nullable": true
- },
- "signature": {
- "type": "string",
- "nullable": true
- }
- },
- "required": [
- "verified",
- "reason",
- "payload",
- "signature"
- ]
- }
- },
- "required": [
- "author",
- "committer",
- "comment_count",
- "message",
- "tree",
- "url"
- ]
- },
- "author": {
- "nullable": true,
- "allOf": [
- {
- "title": "Simple User",
- "description": "Simple User",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "example": "octocat"
- },
- "id": {
- "type": "integer",
- "example": 1
- },
- "node_id": {
- "type": "string",
- "example": "MDQ6VXNlcjE="
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/images/error/octocat_happy.gif"
- },
- "gravatar_id": {
- "type": "string",
- "example": "41d064eb2195891e12d0413f63227ea7",
- "nullable": true
- },
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/octocat"
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/followers"
- },
- "following_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/following{/other_user}"
- },
- "gists_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/gists{/gist_id}"
- },
- "starred_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/subscriptions"
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/orgs"
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/repos"
- },
- "events_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/events{/privacy}"
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/received_events"
- },
- "type": {
- "type": "string",
- "example": "User"
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "example": "\"2020-07-09T00:17:55Z\""
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ],
- "nullable": true
- }
- ]
- },
- "committer": {
- "nullable": true,
- "allOf": [
- {
- "title": "Simple User",
- "description": "Simple User",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "example": "octocat"
- },
- "id": {
- "type": "integer",
- "example": 1
- },
- "node_id": {
- "type": "string",
- "example": "MDQ6VXNlcjE="
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/images/error/octocat_happy.gif"
- },
- "gravatar_id": {
- "type": "string",
- "example": "41d064eb2195891e12d0413f63227ea7",
- "nullable": true
- },
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/octocat"
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/followers"
- },
- "following_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/following{/other_user}"
- },
- "gists_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/gists{/gist_id}"
- },
- "starred_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/subscriptions"
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/orgs"
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/repos"
- },
- "events_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/events{/privacy}"
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/received_events"
- },
- "type": {
- "type": "string",
- "example": "User"
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "example": "\"2020-07-09T00:17:55Z\""
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ],
- "nullable": true
- }
- ]
- },
- "parents": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "sha": {
- "type": "string",
- "example": "7638417db6d59f3c431d3e1f261cc637155684cd"
- },
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/commits/7638417db6d59f3c431d3e1f261cc637155684cd"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/octocat/Hello-World/commit/7638417db6d59f3c431d3e1f261cc637155684cd"
- }
- },
- "required": [
- "sha",
- "url"
- ]
- }
- },
- "stats": {
- "type": "object",
- "properties": {
- "additions": {
- "type": "integer"
- },
- "deletions": {
- "type": "integer"
- },
- "total": {
- "type": "integer"
- }
- }
- },
- "files": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "filename": {
- "type": "string"
- },
- "additions": {
- "type": "integer"
- },
- "deletions": {
- "type": "integer"
- },
- "changes": {
- "type": "integer"
- },
- "status": {
- "type": "string"
- },
- "raw_url": {
- "type": "string"
- },
- "blob_url": {
- "type": "string"
- },
- "patch": {
- "type": "string"
- },
- "sha": {
- "type": "string",
- "example": "\"1e8e60ce9733d5283f7836fa602b6365a66b2567\""
- },
- "contents_url": {
- "type": "string",
- "example": "\"https://api.github.com/repos/owner-3d68404b07d25daeb2d4a6bf/AAA_Public_Repo/contents/geometry.js?ref=c3956841a7cb7e8ba4a6fd923568d86958f01573\""
- },
- "previous_filename": {
- "type": "string",
- "example": "\"subdir/before_name.txt\""
- }
- }
- }
- }
- },
- "required": [
- "url",
- "sha",
- "node_id",
- "html_url",
- "comments_url",
- "commit",
- "author",
- "committer",
- "parents"
- ]
- },
- "_links": {
- "type": "object",
- "properties": {
- "html": {
- "type": "string"
- },
- "self": {
- "type": "string",
- "format": "uri"
- }
- },
- "required": [
- "html",
- "self"
- ]
- },
- "protected": {
- "type": "boolean"
- },
- "protection": {
- "title": "Branch Protection",
- "description": "Branch Protection",
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "required_status_checks": {
- "type": "object",
- "properties": {
- "url": {
- "type": "string"
- },
- "enforcement_level": {
- "type": "string"
- },
- "contexts": {
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "contexts_url": {
- "type": "string"
- }
- },
- "required": [
- "enforcement_level",
- "contexts"
- ]
- },
- "enforce_admins": {
- "title": "Protected Branch Admin Enforced",
- "description": "Protected Branch Admin Enforced",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/enforce_admins"
- },
- "enabled": {
- "type": "boolean",
- "example": true
- }
- },
- "required": [
- "url",
- "enabled"
- ]
- },
- "required_pull_request_reviews": {
- "title": "Protected Branch Pull Request Review",
- "description": "Protected Branch Pull Request Review",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/repos/octocat/Hello-World/branches/master/protection/dismissal_restrictions"
- },
- "dismissal_restrictions": {
- "type": "object",
- "properties": {
- "users": {
- "description": "The list of users with review dismissal access.",
- "type": "array",
- "items": {
- "title": "Simple User",
- "description": "Simple User",
- "type": "object",
- "properties": {
- "login": {
- "type": "string",
- "example": "octocat"
- },
- "id": {
- "type": "integer",
- "example": 1
- },
- "node_id": {
- "type": "string",
- "example": "MDQ6VXNlcjE="
- },
- "avatar_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/images/error/octocat_happy.gif"
- },
- "gravatar_id": {
- "type": "string",
- "example": "41d064eb2195891e12d0413f63227ea7",
- "nullable": true
- },
- "url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/octocat"
- },
- "followers_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/followers"
- },
- "following_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/following{/other_user}"
- },
- "gists_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/gists{/gist_id}"
- },
- "starred_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/starred{/owner}{/repo}"
- },
- "subscriptions_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/subscriptions"
- },
- "organizations_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/orgs"
- },
- "repos_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/repos"
- },
- "events_url": {
- "type": "string",
- "example": "https://api.github.com/users/octocat/events{/privacy}"
- },
- "received_events_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/users/octocat/received_events"
- },
- "type": {
- "type": "string",
- "example": "User"
- },
- "site_admin": {
- "type": "boolean"
- },
- "starred_at": {
- "type": "string",
- "example": "\"2020-07-09T00:17:55Z\""
- }
- },
- "required": [
- "avatar_url",
- "events_url",
- "followers_url",
- "following_url",
- "gists_url",
- "gravatar_id",
- "html_url",
- "id",
- "node_id",
- "login",
- "organizations_url",
- "received_events_url",
- "repos_url",
- "site_admin",
- "starred_url",
- "subscriptions_url",
- "type",
- "url"
- ],
- "nullable": true
- }
- },
- "teams": {
- "description": "The list of teams with review dismissal access.",
- "type": "array",
- "items": {
- "title": "Team",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string",
- "nullable": true
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "url": {
- "type": "string",
- "format": "uri"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/orgs/rails/teams/core"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri"
- },
- "parent": {
- "nullable": true,
- "allOf": [
- {
- "title": "Team Simple",
- "description": "Groups of organization members that gives permissions on specified repositories.",
- "type": "object",
- "properties": {
- "id": {
- "description": "Unique identifier of the team",
- "type": "integer",
- "example": 1
- },
- "node_id": {
- "type": "string",
- "example": "MDQ6VGVhbTE="
- },
- "url": {
- "description": "URL for the team",
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/organizations/1/team/1"
- },
- "members_url": {
- "type": "string",
- "example": "https://api.github.com/organizations/1/team/1/members{/member}"
- },
- "name": {
- "description": "Name of the team",
- "type": "string",
- "example": "Justice League"
- },
- "description": {
- "description": "Description of the team",
- "type": "string",
- "nullable": true,
- "example": "A great team."
- },
- "permission": {
- "description": "Permission that the team will have for its repositories",
- "type": "string",
- "example": "admin"
- },
- "privacy": {
- "description": "The level of privacy this team should have",
- "type": "string",
- "example": "closed"
- },
- "html_url": {
- "type": "string",
- "format": "uri",
- "example": "https://github.com/orgs/rails/teams/core"
- },
- "repositories_url": {
- "type": "string",
- "format": "uri",
- "example": "https://api.github.com/organizations/1/team/1/repos"
- },
- "slug": {
- "type": "string",
- "example": "justice-league"
- },
- "ldap_dn": {
- "description": "Distinguished Name (DN) that team maps to within LDAP environment",
- "example": "uid=example,ou=users,dc=github,dc=com",
- "type": "string"
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug"
- ],
- "nullable": true
- }
- ]
- }
- },
- "required": [
- "id",
- "node_id",
- "url",
- "members_url",
- "name",
- "description",
- "permission",
- "html_url",
- "repositories_url",
- "slug"
- ]
- }
- },
- "url": {
- "type": "string",
- "example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions\""
- },
- "users_url": {
- "type": "string",
- "example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/users\""
- },
- "teams_url": {
- "type": "string",
- "example": "\"https://api.github.com/repos/the-org/an-org-repo/branches/master/protection/dismissal_restrictions/teams\""
- }
- }
- },
- "dismiss_stale_reviews": {
- "type": "boolean",
- "example": true
- },
- "require_code_owner_reviews": {
- "type": "boolean",
- "example": true
- },
- "required_approving_review_count": {
- "type": "integer",
- "minimum": 1,
- "maximum": 6,
- "example": 2
- }
- },
- "required": [
- "dismiss_stale_reviews",
- "require_code_owner_reviews"
- ]
- },
- "restrictions": {
- "title": "Branch Restriction Policy",
- "description": "Branch Restriction Policy",
- "type": "object",
- "properties": {
- "url": {
- "type": "string",
- "format": "uri"
- },
- "users_url": {
- "type": "string",
- "format": "uri"
- },
- "teams_url": {
- "type": "string",
- "format": "uri"
- },
- "apps_url": {
- "type": "string",
- "format": "uri"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "followers_url": {
- "type": "string"
- },
- "following_url": {
- "type": "string"
- },
- "gists_url": {
- "type": "string"
- },
- "starred_url": {
- "type": "string"
- },
- "subscriptions_url": {
- "type": "string"
- },
- "organizations_url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "received_events_url": {
- "type": "string"
- },
- "type": {
- "type": "string"
- },
- "site_admin": {
- "type": "boolean"
- }
- }
- }
- },
- "teams": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "slug": {
- "type": "string"
- },
- "description": {
- "type": "string",
- "nullable": true
- },
- "privacy": {
- "type": "string"
- },
- "permission": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "repositories_url": {
- "type": "string"
- },
- "parent": {
- "type": "string",
- "nullable": true
- }
- }
- }
- },
- "apps": {
- "type": "array",
- "items": {
- "type": "object",
- "properties": {
- "id": {
- "type": "integer"
- },
- "slug": {
- "type": "string"
- },
- "node_id": {
- "type": "string"
- },
- "owner": {
- "type": "object",
- "properties": {
- "login": {
- "type": "string"
- },
- "id": {
- "type": "integer"
- },
- "node_id": {
- "type": "string"
- },
- "url": {
- "type": "string"
- },
- "repos_url": {
- "type": "string"
- },
- "events_url": {
- "type": "string"
- },
- "hooks_url": {
- "type": "string"
- },
- "issues_url": {
- "type": "string"
- },
- "members_url": {
- "type": "string"
- },
- "public_members_url": {
- "type": "string"
- },
- "avatar_url": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "gravatar_id": {
- "type": "string",
- "example": "\"\""
- },
- "html_url": {
- "type": "string",
- "example": "\"https://github.com/testorg-ea8ec76d71c3af4b\""
- },
- "followers_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/followers\""
- },
- "following_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/following{/other_user}\""
- },
- "gists_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/gists{/gist_id}\""
- },
- "starred_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/starred{/owner}{/repo}\""
- },
- "subscriptions_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/subscriptions\""
- },
- "organizations_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/orgs\""
- },
- "received_events_url": {
- "type": "string",
- "example": "\"https://api.github.com/users/testorg-ea8ec76d71c3af4b/received_events\""
- },
- "type": {
- "type": "string",
- "example": "\"Organization\""
- }
- }
- },
- "name": {
- "type": "string"
- },
- "description": {
- "type": "string"
- },
- "external_url": {
- "type": "string"
- },
- "html_url": {
- "type": "string"
- },
- "created_at": {
- "type": "string"
- },
- "updated_at": {
- "type": "string"
- },
- "permissions": {
- "type": "object",
- "properties": {
- "metadata": {
- "type": "string"
- },
- "contents": {
- "type": "string"
- },
- "issues": {
- "type": "string"
- },
- "single_file": {
- "type": "string"
- }
- }
- },
- "events": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "required": [
- "url",
- "users_url",
- "teams_url",
- "apps_url",
- "users",
- "teams",
- "apps"
- ]
- },
- "required_linear_history": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "allow_force_pushes": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "allow_deletions": {
- "type": "object",
- "properties": {
- "enabled": {
- "type": "boolean"
- }
- }
- },
- "enabled": {
- "type": "boolean"
- },
- "name": {
- "type": "string",
- "example": "\"branch/with/protection\""
- },
- "protection_url": {
- "type": "string",
- "example": "\"https://api.github.com/repos/owner-79e94e2d36b3fd06a32bb213/AAA_Public_Repo/branches/branch/with/protection/protection\""
- }
- },
- "required": [
- "enabled",
- "required_status_checks"
- ]
- },
- "protection_url": {
- "type": "string",
- "format": "uri"
- },
- "pattern": {
- "type": "string",
- "example": "\"mas*\""
- },
- "required_approving_review_count": {
- "type": "integer",
- "example": 1
- }
- },
- "required": [
- "name",
- "commit",
- "_links",
- "protection",
- "protected",
- "protection_url"
- ]
- },
- "examples": {
- "default": {
- "value": {
- "name": "master",
- "commit": {
- "sha": "7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
- "node_id": "MDY6Q29tbWl0N2ZkMWE2MGIwMWY5MWIzMTRmNTk5NTVhNGU0ZDRlODBkOGVkZjExZA==",
- "commit": {
- "author": {
- "name": "The Octocat",
- "date": "2012-03-06T15:06:50-08:00",
- "email": "octocat@nowhere.com"
- },
- "url": "https://api.github.com/repos/octocat/Hello-World/git/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
- "message": "Merge pull request #6 from Spaceghost/patch-1\n\nNew line at end of file.",
- "tree": {
- "sha": "b4eecafa9be2f2006ce1b709d6857b07069b4608",
- "url": "https://api.github.com/repos/octocat/Hello-World/git/trees/b4eecafa9be2f2006ce1b709d6857b07069b4608"
- },
- "committer": {
- "name": "The Octocat",
- "date": "2012-03-06T15:06:50-08:00",
- "email": "octocat@nowhere.com"
- },
- "verification": {
- "verified": false,
- "reason": "unsigned",
- "signature": null,
- "payload": null
- },
- "comment_count": 0
- },
- "author": {
- "gravatar_id": "",
- "avatar_url": "https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
- "url": "https://api.github.com/users/octocat",
- "id": 583231,
- "login": "octocat",
- "node_id": "MDQ6VXNlcjE=",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
- },
- "parents": [
- {
- "sha": "553c2077f0edc3d5dc5d17262f6aa498e69d6f8e",
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/553c2077f0edc3d5dc5d17262f6aa498e69d6f8e"
- },
- {
- "sha": "762941318ee16e59dabbacb1b4049eec22f0d303",
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/762941318ee16e59dabbacb1b4049eec22f0d303"
- }
- ],
- "url": "https://api.github.com/repos/octocat/Hello-World/commits/7fd1a60b01f91b314f59955a4e4d4e80d8edf11d",
- "committer": {
- "gravatar_id": "",
- "avatar_url": "https://secure.gravatar.com/avatar/7ad39074b0584bc555d0417ae3e7d974?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
- "url": "https://api.github.com/users/octocat",
- "id": 583231,
- "login": "octocat",
- "node_id": "MDQ6VXNlcjE=",
- "html_url": "https://github.com/octocat",
- "followers_url": "https://api.github.com/users/octocat/followers",
- "following_url": "https://api.github.com/users/octocat/following{/other_user}",
- "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
- "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
- "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
- "organizations_url": "https://api.github.com/users/octocat/orgs",
- "repos_url": "https://api.github.com/users/octocat/repos",
- "events_url": "https://api.github.com/users/octocat/events{/privacy}",
- "received_events_url": "https://api.github.com/users/octocat/received_events",
- "type": "User",
- "site_admin": true
- },
- "html_url": "https://github.com/octocat/Hello-World/commit/6dcb09b5b57875f334f61aebed695e2e4193db5e",
- "comments_url": "https://api.github.com/repos/octocat/Hello-World/commits/6dcb09b5b57875f334f61aebed695e2e4193db5e/comments"
- },
- "_links": {
- "html": "https://github.com/octocat/Hello-World/tree/master",
- "self": "https://api.github.com/repos/octocat/Hello-World/branches/master"
- },
- "protected": true,
- "protection": {
- "enabled": true,
- "required_status_checks": {
- "enforcement_level": "non_admins",
- "contexts": [
- "ci-test",
- "linter"
- ]
- }
- },
- "protection_url": "https://api.github.com/repos/octocat/hello-world/branches/master/protection"
- }
- }
- }
- }
- }
- },
- "403": {
- "description": "Forbidden",
- "content": {
- "application/json": {
- "schema": {
- "title": "Basic Error",
- "description": "Basic Error",
- "type": "object",
- "properties": {
- "message": {
- "type": "string"
- },
- "documentation_url": {
- "type": "string"
- }
- }
- }
- }
- }
- },
- "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"
- }
- }
- }
- }
- }
- },
- "422": {
- "description": "Validation Failed",
- "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",
- "nullable": true
- },
- {
- "type": "integer",
- "nullable": true
- },
- {
- "type": "array",
- "nullable": true,
- "items": {
- "type": "string"
- }
- }
- ]
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "x-github": {
- "githubCloudOnly": false,
- "enabledForGitHubApps": true,
- "previews": [
-
- ],
- "category": "repos",
- "subcategory": "branches"
- }
- }
- },
"/repos/{owner}/{repo}/check-runs": {
"post": {
"summary": "Create a check run",