diff --git a/lib/redirects/static/client-side-rest-api-redirects.json b/lib/redirects/static/client-side-rest-api-redirects.json index 5a52f01a95..b74131ae9c 100644 --- a/lib/redirects/static/client-side-rest-api-redirects.json +++ b/lib/redirects/static/client-side-rest-api-redirects.json @@ -538,8 +538,44 @@ "/rest/repos#autolinks": "/rest/repos/autolinks", "/rest/repos#enable-automated-security-fixes": "/rest/repos/repos#enable-automated-security-fixes", "/rest/repos#disable-automated-security-fixes": "/rest/repos/repos#disable-automated-security-fixes", + "/rest/branches/branches#list-branches": "/rest/branches/branches#list-branches", "/rest/branches#branches": "/rest/branches/branches", + "/rest/branches/branches#get-a-branch": "/rest/branches/branches#get-a-branch", + "/rest/branches/branch-protection#get-branch-protection": "/rest/branches/branch-protection#get-branch-protection", "/rest/branches#branch-protection": "/rest/branches/branch-protection", + "/rest/branches/branch-protection#update-branch-protection": "/rest/branches/branch-protection#update-branch-protection", + "/rest/branches/branch-protection#delete-branch-protection": "/rest/branches/branch-protection#delete-branch-protection", + "/rest/branches/branch-protection#get-admin-branch-protection": "/rest/branches/branch-protection#get-admin-branch-protection", + "/rest/branches/branch-protection#set-admin-branch-protection": "/rest/branches/branch-protection#set-admin-branch-protection", + "/rest/branches/branch-protection#delete-admin-branch-protection": "/rest/branches/branch-protection#delete-admin-branch-protection", + "/rest/branches/branch-protection#get-pull-request-review-protection": "/rest/branches/branch-protection#get-pull-request-review-protection", + "/rest/branches/branch-protection#update-pull-request-review-protection": "/rest/branches/branch-protection#update-pull-request-review-protection", + "/rest/branches/branch-protection#delete-pull-request-review-protection": "/rest/branches/branch-protection#delete-pull-request-review-protection", + "/rest/branches/branch-protection#get-commit-signature-protection": "/rest/branches/branch-protection#get-commit-signature-protection", + "/rest/branches/branch-protection#create-commit-signature-protection": "/rest/branches/branch-protection#create-commit-signature-protection", + "/rest/branches/branch-protection#delete-commit-signature-protection": "/rest/branches/branch-protection#delete-commit-signature-protection", + "/rest/branches/branch-protection#get-status-checks-protection": "/rest/branches/branch-protection#get-status-checks-protection", + "/rest/branches/branch-protection#update-status-check-protection": "/rest/branches/branch-protection#update-status-check-protection", + "/rest/branches/branch-protection#remove-status-check-protection": "/rest/branches/branch-protection#remove-status-check-protection", + "/rest/branches/branch-protection#get-all-status-check-contexts": "/rest/branches/branch-protection#get-all-status-check-contexts", + "/rest/branches/branch-protection#add-status-check-contexts": "/rest/branches/branch-protection#add-status-check-contexts", + "/rest/branches/branch-protection#set-status-check-contexts": "/rest/branches/branch-protection#set-status-check-contexts", + "/rest/branches/branch-protection#remove-status-check-contexts": "/rest/branches/branch-protection#remove-status-check-contexts", + "/rest/branches/branch-protection#get-access-restrictions": "/rest/branches/branch-protection#get-access-restrictions", + "/rest/branches/branch-protection#delete-access-restrictions": "/rest/branches/branch-protection#delete-access-restrictions", + "/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch": "/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch", + "/rest/branches/branch-protection#add-app-access-restrictions": "/rest/branches/branch-protection#add-app-access-restrictions", + "/rest/branches/branch-protection#set-app-access-restrictions": "/rest/branches/branch-protection#set-app-access-restrictions", + "/rest/branches/branch-protection#remove-app-access-restrictions": "/rest/branches/branch-protection#remove-app-access-restrictions", + "/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch": "/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch", + "/rest/branches/branch-protection#add-team-access-restrictions": "/rest/branches/branch-protection#add-team-access-restrictions", + "/rest/branches/branch-protection#set-team-access-restrictions": "/rest/branches/branch-protection#set-team-access-restrictions", + "/rest/branches/branch-protection#remove-team-access-restrictions": "/rest/branches/branch-protection#remove-team-access-restrictions", + "/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch": "/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch", + "/rest/branches/branch-protection#add-user-access-restrictions": "/rest/branches/branch-protection#add-user-access-restrictions", + "/rest/branches/branch-protection#set-user-access-restrictions": "/rest/branches/branch-protection#set-user-access-restrictions", + "/rest/branches/branch-protection#remove-user-access-restrictions": "/rest/branches/branch-protection#remove-user-access-restrictions", + "/rest/branches/branches#rename-a-branch": "/rest/branches/branches#rename-a-branch", "/rest/checks#create-a-check-run": "/rest/checks/runs#create-a-check-run", "/rest/checks#runs": "/rest/checks/runs", "/rest/checks#get-a-check-run": "/rest/checks/runs#get-a-check-run", @@ -710,6 +746,8 @@ "/rest/repos#enable-git-lfs-for-a-repository": "/rest/repos/lfs#enable-git-lfs-for-a-repository", "/rest/repos#lfs": "/rest/repos/lfs", "/rest/repos#disable-git-lfs-for-a-repository": "/rest/repos/lfs#disable-git-lfs-for-a-repository", + "/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository": "/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository", + "/rest/branches/branches#merge-a-branch": "/rest/branches/branches#merge-a-branch", "/rest/issues#list-milestones": "/rest/issues/milestones#list-milestones", "/rest/issues#milestones": "/rest/issues/milestones", "/rest/issues#create-a-milestone": "/rest/issues/milestones#create-a-milestone", diff --git a/lib/rest/static/decorated/api.github.com.json b/lib/rest/static/decorated/api.github.com.json index d413a3f36a..4159c44a83 100644 --- a/lib/rest/static/decorated/api.github.com.json +++ b/lib/rest/static/decorated/api.github.com.json @@ -110543,7 +110543,12 @@ }, "response": { "statusCode": "202", - "description": "
Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -174917,7 +174922,7 @@ "enabledForGitHubApps": false, "codeExamples": [ { - "key": "202", + "key": "default", "request": { "description": "Example", "acceptHeader": "application/vnd.github.v3+json", @@ -174927,7 +174932,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -184753,7 +184763,7 @@ "enabledForGitHubApps": false, "codeExamples": [ { - "key": "202", + "key": "default", "request": { "description": "Example", "acceptHeader": "application/vnd.github.v3+json", @@ -184765,7 +184775,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -351967,7 +351982,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -460392,7 +460412,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -507645,7 +507670,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/ghec.json b/lib/rest/static/decorated/ghec.json index e0181c2181..ffbd4ddccd 100644 --- a/lib/rest/static/decorated/ghec.json +++ b/lib/rest/static/decorated/ghec.json @@ -110993,7 +110993,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -175367,7 +175372,7 @@ "enabledForGitHubApps": false, "codeExamples": [ { - "key": "202", + "key": "default", "request": { "description": "Example", "acceptHeader": "application/vnd.github.v3+json", @@ -175377,7 +175382,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -185203,7 +185213,7 @@ "enabledForGitHubApps": false, "codeExamples": [ { - "key": "202", + "key": "default", "request": { "description": "Example", "acceptHeader": "application/vnd.github.v3+json", @@ -185215,7 +185225,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -353945,7 +353960,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -462370,7 +462390,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -513677,7 +513702,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/ghes-3.3.json b/lib/rest/static/decorated/ghes-3.3.json index ab6a32dbde..8f5917fc55 100644 --- a/lib/rest/static/decorated/ghes-3.3.json +++ b/lib/rest/static/decorated/ghes-3.3.json @@ -98551,7 +98551,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -283785,7 +283790,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -379654,7 +379664,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -422054,7 +422069,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/ghes-3.4.json b/lib/rest/static/decorated/ghes-3.4.json index b7d74eda91..428c433623 100644 --- a/lib/rest/static/decorated/ghes-3.4.json +++ b/lib/rest/static/decorated/ghes-3.4.json @@ -98530,7 +98530,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -301996,7 +302001,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -398015,7 +398025,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -441605,7 +441620,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/ghes-3.5.json b/lib/rest/static/decorated/ghes-3.5.json index c948c3de5c..a94e603710 100644 --- a/lib/rest/static/decorated/ghes-3.5.json +++ b/lib/rest/static/decorated/ghes-3.5.json @@ -104202,7 +104202,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -309158,7 +309163,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -405314,7 +405324,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -449273,7 +449288,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/ghes-3.6.json b/lib/rest/static/decorated/ghes-3.6.json index caab3b54ff..7e7df5445c 100644 --- a/lib/rest/static/decorated/ghes-3.6.json +++ b/lib/rest/static/decorated/ghes-3.6.json @@ -106719,7 +106719,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -318509,7 +318514,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -416456,7 +416466,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -462612,7 +462627,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/ghes-3.7.json b/lib/rest/static/decorated/ghes-3.7.json index 063d535852..954d3ab941 100644 --- a/lib/rest/static/decorated/ghes-3.7.json +++ b/lib/rest/static/decorated/ghes-3.7.json @@ -107693,7 +107693,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -321959,7 +321964,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -420282,7 +420292,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -466998,7 +467013,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json index 54ca1bbcd6..134a484132 100644 --- a/lib/rest/static/decorated/github.ae.json +++ b/lib/rest/static/decorated/github.ae.json @@ -73162,7 +73162,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -261139,7 +261144,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -355082,7 +355092,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], @@ -398119,7 +398134,12 @@ }, "response": { "statusCode": "202", - "description": "Accepted
" + "contentType": "application/json", + "description": "Accepted
", + "example": null, + "schema": { + "type": "object" + } } } ], diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json index 98c3c2a52f..0a9e1cb7f7 100644 --- a/lib/rest/static/dereferenced/api.github.com.deref.json +++ b/lib/rest/static/dereferenced/api.github.com.deref.json @@ -2289,6 +2289,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -88475,6 +88480,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -98398,6 +98408,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -177183,7 +177198,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#list-branches" + "url": "https://docs.github.com/rest/branches/branches#list-branches" }, "parameters": [ { @@ -179304,8 +179319,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -179319,7 +179333,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -182218,8 +182232,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -182233,7 +182246,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -184469,8 +184482,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -184482,7 +184495,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -186921,8 +186934,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -186934,7 +186947,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -187000,8 +187013,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -187015,7 +187028,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -187091,8 +187104,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -187104,7 +187117,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -187180,8 +187193,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -187193,7 +187206,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -187259,8 +187272,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -187274,7 +187287,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -188880,8 +188893,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -188893,7 +188906,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -190689,8 +190702,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -190702,7 +190715,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -190768,8 +190781,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -190783,7 +190796,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -190885,8 +190898,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -190898,7 +190911,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -191000,8 +191013,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -191013,7 +191026,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -191079,8 +191092,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -191094,7 +191107,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -191243,8 +191256,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -191256,7 +191269,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -191534,8 +191547,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -191547,7 +191560,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -191587,8 +191600,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -191602,7 +191615,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -191685,8 +191698,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -191698,7 +191711,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -191933,8 +191946,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -191946,7 +191959,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -192153,8 +192166,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -192166,7 +192179,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -192372,8 +192385,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -192387,7 +192400,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -192851,8 +192864,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -192864,7 +192877,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -192904,8 +192917,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -192919,7 +192932,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -193364,8 +193377,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -193377,7 +193390,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -193918,8 +193931,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -193931,7 +193944,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -194472,8 +194485,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -194485,7 +194498,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -195025,8 +195038,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -195040,7 +195053,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -195333,8 +195346,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -195346,7 +195359,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -195737,8 +195750,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -195750,7 +195763,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -196141,8 +196154,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -196154,7 +196167,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -196544,8 +196557,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -196559,7 +196572,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -196819,8 +196832,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -196832,7 +196845,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -197189,8 +197202,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -197202,7 +197215,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -197559,8 +197572,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -197572,7 +197585,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -197928,8 +197941,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -197943,7 +197956,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -200938,8 +200951,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -278437,6 +278449,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -351599,6 +351616,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -351904,7 +351926,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -352000,8 +352022,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -352015,7 +352036,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -352975,8 +352996,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -415370,6 +415390,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -415493,6 +415518,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -415809,6 +415839,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -458975,6 +459010,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/ghec.deref.json b/lib/rest/static/dereferenced/ghec.deref.json index 30e0507615..a2b1780ea7 100644 --- a/lib/rest/static/dereferenced/ghec.deref.json +++ b/lib/rest/static/dereferenced/ghec.deref.json @@ -2297,6 +2297,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -90700,6 +90705,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -100623,6 +100633,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -180696,7 +180711,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#list-branches" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#list-branches" }, "parameters": [ { @@ -182817,8 +182832,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -182832,7 +182846,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -185731,8 +185745,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -185746,7 +185759,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -187982,8 +187995,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -187995,7 +188008,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -190434,8 +190447,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -190447,7 +190460,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -190513,8 +190526,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -190528,7 +190541,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -190604,8 +190617,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -190617,7 +190630,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -190693,8 +190706,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -190706,7 +190719,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -190772,8 +190785,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -190787,7 +190800,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -192393,8 +192406,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -192406,7 +192419,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -194202,8 +194215,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -194215,7 +194228,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -194281,8 +194294,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -194296,7 +194309,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -194398,8 +194411,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -194411,7 +194424,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -194513,8 +194526,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -194526,7 +194539,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -194592,8 +194605,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -194607,7 +194620,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -194756,8 +194769,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -194769,7 +194782,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -195047,8 +195060,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -195060,7 +195073,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -195100,8 +195113,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -195115,7 +195128,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -195198,8 +195211,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -195211,7 +195224,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -195446,8 +195459,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -195459,7 +195472,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -195666,8 +195679,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -195679,7 +195692,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -195885,8 +195898,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -195900,7 +195913,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -196364,8 +196377,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -196377,7 +196390,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -196417,8 +196430,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -196432,7 +196445,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -196877,8 +196890,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -196890,7 +196903,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -197431,8 +197444,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -197444,7 +197457,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -197985,8 +197998,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -197998,7 +198011,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -198538,8 +198551,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -198553,7 +198566,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -198846,8 +198859,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -198859,7 +198872,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -199250,8 +199263,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -199263,7 +199276,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -199654,8 +199667,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -199667,7 +199680,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -200057,8 +200070,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -200072,7 +200085,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -200332,8 +200345,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -200345,7 +200358,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -200702,8 +200715,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -200715,7 +200728,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -201072,8 +201085,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -201085,7 +201098,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -201441,8 +201454,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -201456,7 +201469,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -204451,8 +204464,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -281950,6 +281962,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -355112,6 +355129,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -355417,7 +355439,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -355513,8 +355535,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -355528,7 +355549,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-cloud@latest//rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/enterprise-cloud@latest//rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -356488,8 +356509,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -418883,6 +418903,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -419006,6 +419031,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -419322,6 +419352,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -466787,6 +466822,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/ghes-3.3.deref.json b/lib/rest/static/dereferenced/ghes-3.3.deref.json index c8d991c44a..8c00d8627d 100644 --- a/lib/rest/static/dereferenced/ghes-3.3.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.3.deref.json @@ -8759,6 +8759,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -83738,6 +83743,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -146728,7 +146738,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#list-branches" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branches#list-branches" }, "parameters": [ { @@ -148095,8 +148105,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -148110,7 +148119,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -150255,8 +150264,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -150270,7 +150278,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -151745,8 +151753,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -151758,7 +151766,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -153396,8 +153404,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -153409,7 +153417,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -153475,8 +153483,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -153490,7 +153498,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -153566,8 +153574,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -153579,7 +153587,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -153655,8 +153663,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -153668,7 +153676,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -153734,8 +153742,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -153749,7 +153757,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -154642,8 +154650,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -154655,7 +154663,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -155705,8 +155713,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -155718,7 +155726,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -155784,8 +155792,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -155799,7 +155807,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -155901,8 +155909,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -155914,7 +155922,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -156016,8 +156024,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -156029,7 +156037,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -156095,8 +156103,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -156110,7 +156118,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -156234,8 +156242,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -156247,7 +156255,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -156480,8 +156488,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -156493,7 +156501,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -156533,8 +156541,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -156548,7 +156556,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -156631,8 +156639,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -156644,7 +156652,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -156879,8 +156887,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -156892,7 +156900,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -157099,8 +157107,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -157112,7 +157120,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -157318,8 +157326,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -157333,7 +157341,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -157797,8 +157805,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -157810,7 +157818,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -157850,8 +157858,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -157865,7 +157873,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -158310,8 +158318,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -158323,7 +158331,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -158864,8 +158872,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -158877,7 +158885,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -159418,8 +159426,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -159431,7 +159439,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -159971,8 +159979,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -159986,7 +159994,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -160279,8 +160287,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -160292,7 +160300,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -160683,8 +160691,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -160696,7 +160704,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -161087,8 +161095,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -161100,7 +161108,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -161490,8 +161498,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -161505,7 +161513,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -161765,8 +161773,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -161778,7 +161786,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -162135,8 +162143,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -162148,7 +162156,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -162505,8 +162513,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -162518,7 +162526,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -162874,8 +162882,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -162889,7 +162897,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -165130,8 +165138,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -229460,6 +229467,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -299424,6 +299436,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -299729,7 +299746,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -299825,8 +299842,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -299840,7 +299856,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.3/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/enterprise-server@3.3/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -300800,8 +300816,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -358076,6 +358091,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -358199,6 +358219,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -358515,6 +358540,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/ghes-3.4.deref.json b/lib/rest/static/dereferenced/ghes-3.4.deref.json index 6e62bc1f4c..940592ddea 100644 --- a/lib/rest/static/dereferenced/ghes-3.4.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.4.deref.json @@ -8735,6 +8735,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -86580,6 +86585,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -156549,7 +156559,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-branches" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branches#list-branches" }, "parameters": [ { @@ -158642,8 +158652,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -158657,7 +158666,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -161528,8 +161537,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -161543,7 +161551,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -163744,8 +163752,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -163757,7 +163765,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -166144,8 +166152,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -166157,7 +166165,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -166223,8 +166231,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -166238,7 +166246,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -166314,8 +166322,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -166327,7 +166335,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -166403,8 +166411,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -166416,7 +166424,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -166482,8 +166490,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -166497,7 +166505,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -168094,8 +168102,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -168107,7 +168115,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -169888,8 +169896,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -169901,7 +169909,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -169967,8 +169975,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -169982,7 +169990,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -170084,8 +170092,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -170097,7 +170105,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -170199,8 +170207,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -170212,7 +170220,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -170278,8 +170286,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -170293,7 +170301,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -170442,8 +170450,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -170455,7 +170463,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -170733,8 +170741,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -170746,7 +170754,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -170786,8 +170794,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -170801,7 +170809,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -170884,8 +170892,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -170897,7 +170905,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -171132,8 +171140,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -171145,7 +171153,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -171352,8 +171360,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -171365,7 +171373,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -171571,8 +171579,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -171586,7 +171594,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -172050,8 +172058,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -172063,7 +172071,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -172103,8 +172111,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -172118,7 +172126,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -172563,8 +172571,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -172576,7 +172584,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -173117,8 +173125,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -173130,7 +173138,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -173671,8 +173679,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -173684,7 +173692,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -174224,8 +174232,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -174239,7 +174247,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -174532,8 +174540,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -174545,7 +174553,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -174936,8 +174944,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -174949,7 +174957,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -175340,8 +175348,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -175353,7 +175361,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -175743,8 +175751,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -175758,7 +175766,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -176018,8 +176026,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -176031,7 +176039,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -176388,8 +176396,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -176401,7 +176409,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -176758,8 +176766,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -176771,7 +176779,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -177127,8 +177135,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -177142,7 +177150,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -180109,8 +180117,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -244687,6 +244694,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -314643,6 +314655,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -314948,7 +314965,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -315044,8 +315061,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -315059,7 +315075,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.4/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/enterprise-server@3.4/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -316019,8 +316035,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -373494,6 +373509,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -373617,6 +373637,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -373933,6 +373958,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/ghes-3.5.deref.json b/lib/rest/static/dereferenced/ghes-3.5.deref.json index 86c8eb7e44..8c83b5b405 100644 --- a/lib/rest/static/dereferenced/ghes-3.5.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.5.deref.json @@ -8735,6 +8735,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -88914,6 +88919,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -163674,7 +163684,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#list-branches" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branches#list-branches" }, "parameters": [ { @@ -165767,8 +165777,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -165782,7 +165791,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -168653,8 +168662,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -168668,7 +168676,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -170869,8 +170877,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -170882,7 +170890,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -173269,8 +173277,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -173282,7 +173290,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -173348,8 +173356,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -173363,7 +173371,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -173439,8 +173447,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -173452,7 +173460,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -173528,8 +173536,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -173541,7 +173549,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -173607,8 +173615,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -173622,7 +173630,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -175219,8 +175227,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -175232,7 +175240,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -177013,8 +177021,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -177026,7 +177034,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -177092,8 +177100,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -177107,7 +177115,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -177209,8 +177217,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -177222,7 +177230,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -177324,8 +177332,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -177337,7 +177345,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -177403,8 +177411,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -177418,7 +177426,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -177567,8 +177575,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -177580,7 +177588,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -177858,8 +177866,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -177871,7 +177879,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -177911,8 +177919,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -177926,7 +177934,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -178009,8 +178017,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -178022,7 +178030,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -178257,8 +178265,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -178270,7 +178278,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -178477,8 +178485,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -178490,7 +178498,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -178696,8 +178704,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -178711,7 +178719,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -179175,8 +179183,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -179188,7 +179196,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -179228,8 +179236,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -179243,7 +179251,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -179688,8 +179696,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -179701,7 +179709,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -180242,8 +180250,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -180255,7 +180263,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -180796,8 +180804,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -180809,7 +180817,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -181349,8 +181357,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -181364,7 +181372,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -181657,8 +181665,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -181670,7 +181678,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -182061,8 +182069,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -182074,7 +182082,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -182465,8 +182473,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -182478,7 +182486,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -182868,8 +182876,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -182883,7 +182891,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -183143,8 +183151,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -183156,7 +183164,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -183513,8 +183521,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -183526,7 +183534,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -183883,8 +183891,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -183896,7 +183904,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -184252,8 +184260,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -184267,7 +184275,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -187234,8 +187242,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -252050,6 +252057,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -322018,6 +322030,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -322323,7 +322340,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -322419,8 +322436,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -322434,7 +322450,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.5/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/enterprise-server@3.5/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -323394,8 +323410,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -380889,6 +380904,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -381012,6 +381032,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -381328,6 +381353,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/ghes-3.6.deref.json b/lib/rest/static/dereferenced/ghes-3.6.deref.json index 32521ba213..5dab09e28d 100644 --- a/lib/rest/static/dereferenced/ghes-3.6.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.6.deref.json @@ -8735,6 +8735,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -90595,6 +90600,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -167708,7 +167718,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#list-branches" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branches#list-branches" }, "parameters": [ { @@ -169801,8 +169811,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -169816,7 +169825,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -172687,8 +172696,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -172702,7 +172710,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -174903,8 +174911,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -174916,7 +174924,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -177303,8 +177311,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -177316,7 +177324,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -177382,8 +177390,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -177397,7 +177405,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -177473,8 +177481,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -177486,7 +177494,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -177562,8 +177570,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -177575,7 +177583,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -177641,8 +177649,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -177656,7 +177664,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -179253,8 +179261,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -179266,7 +179274,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -181047,8 +181055,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -181060,7 +181068,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -181126,8 +181134,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -181141,7 +181149,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -181243,8 +181251,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -181256,7 +181264,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -181358,8 +181366,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -181371,7 +181379,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -181437,8 +181445,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -181452,7 +181460,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -181601,8 +181609,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -181614,7 +181622,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -181892,8 +181900,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -181905,7 +181913,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -181945,8 +181953,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -181960,7 +181968,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -182043,8 +182051,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -182056,7 +182064,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -182291,8 +182299,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -182304,7 +182312,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -182511,8 +182519,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -182524,7 +182532,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -182730,8 +182738,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -182745,7 +182753,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -183209,8 +183217,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -183222,7 +183230,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -183262,8 +183270,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -183277,7 +183285,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -183722,8 +183730,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -183735,7 +183743,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -184276,8 +184284,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -184289,7 +184297,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -184830,8 +184838,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -184843,7 +184851,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -185383,8 +185391,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -185398,7 +185406,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -185691,8 +185699,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -185704,7 +185712,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -186095,8 +186103,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -186108,7 +186116,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -186499,8 +186507,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -186512,7 +186520,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -186902,8 +186910,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -186917,7 +186925,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -187177,8 +187185,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -187190,7 +187198,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -187547,8 +187555,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -187560,7 +187568,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -187917,8 +187925,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -187930,7 +187938,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -188286,8 +188294,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -188301,7 +188309,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -191268,8 +191276,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -257015,6 +257022,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -327733,6 +327745,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -328038,7 +328055,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -328134,8 +328151,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -328149,7 +328165,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.6/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/enterprise-server@3.6/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -329109,8 +329125,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -387699,6 +387714,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -387822,6 +387842,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -388138,6 +388163,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/ghes-3.7.deref.json b/lib/rest/static/dereferenced/ghes-3.7.deref.json index 4a5f7ded56..61ad468724 100644 --- a/lib/rest/static/dereferenced/ghes-3.7.deref.json +++ b/lib/rest/static/dereferenced/ghes-3.7.deref.json @@ -8756,6 +8756,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -92455,6 +92460,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -170947,7 +170957,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#list-branches" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branches#list-branches" }, "parameters": [ { @@ -173040,8 +173050,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -173055,7 +173064,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -175926,8 +175935,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -175941,7 +175949,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -178142,8 +178150,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -178155,7 +178163,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -180542,8 +180550,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -180555,7 +180563,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -180621,8 +180629,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -180636,7 +180644,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -180712,8 +180720,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -180725,7 +180733,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -180801,8 +180809,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -180814,7 +180822,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -180880,8 +180888,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -180895,7 +180903,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -182492,8 +182500,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -182505,7 +182513,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -184286,8 +184294,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -184299,7 +184307,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -184365,8 +184373,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -184380,7 +184388,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -184482,8 +184490,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -184495,7 +184503,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -184597,8 +184605,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -184610,7 +184618,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -184676,8 +184684,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -184691,7 +184699,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -184840,8 +184848,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -184853,7 +184861,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -185131,8 +185139,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -185144,7 +185152,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -185184,8 +185192,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -185199,7 +185207,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -185282,8 +185290,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -185295,7 +185303,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -185530,8 +185538,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -185543,7 +185551,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -185750,8 +185758,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -185763,7 +185771,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -185969,8 +185977,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -185984,7 +185992,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -186448,8 +186456,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -186461,7 +186469,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -186501,8 +186509,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -186516,7 +186524,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -186961,8 +186969,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -186974,7 +186982,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -187515,8 +187523,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -187528,7 +187536,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -188069,8 +188077,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -188082,7 +188090,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -188622,8 +188630,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -188637,7 +188645,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -188930,8 +188938,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -188943,7 +188951,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -189334,8 +189342,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -189347,7 +189355,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -189738,8 +189746,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -189751,7 +189759,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -190141,8 +190149,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -190156,7 +190164,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -190416,8 +190424,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -190429,7 +190437,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -190786,8 +190794,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -190799,7 +190807,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -191156,8 +191164,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -191169,7 +191177,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -191525,8 +191533,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -191540,7 +191548,7 @@ "operationId": "repos/rename-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#rename-a-branch" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branches#rename-a-branch" }, "parameters": [ { @@ -194507,8 +194515,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -260770,6 +260777,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -331617,6 +331629,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -331922,7 +331939,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -332018,8 +332035,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -332033,7 +332049,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.7/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/enterprise-server@3.7/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -332993,8 +333009,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -391959,6 +391974,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -392082,6 +392102,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -392398,6 +392423,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json index 95b0e1b176..20c420e052 100644 --- a/lib/rest/static/dereferenced/github.ae.deref.json +++ b/lib/rest/static/dereferenced/github.ae.deref.json @@ -6864,6 +6864,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -60573,6 +60578,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -131035,7 +131045,7 @@ "operationId": "repos/list-branches", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#list-branches" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branches#list-branches" }, "parameters": [ { @@ -133128,8 +133138,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -133143,7 +133152,7 @@ "operationId": "repos/get-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-a-branch" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branches#get-a-branch" }, "parameters": [ { @@ -136014,8 +136023,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -136029,7 +136037,7 @@ "operationId": "repos/get-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-branch-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-branch-protection" }, "parameters": [ { @@ -138230,8 +138238,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -138243,7 +138251,7 @@ "operationId": "repos/update-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#update-branch-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#update-branch-protection" }, "parameters": [ { @@ -140630,8 +140638,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -140643,7 +140651,7 @@ "operationId": "repos/delete-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#delete-branch-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#delete-branch-protection" }, "parameters": [ { @@ -140709,8 +140717,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -140724,7 +140732,7 @@ "operationId": "repos/get-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-admin-branch-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-admin-branch-protection" }, "parameters": [ { @@ -140800,8 +140808,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -140813,7 +140821,7 @@ "operationId": "repos/set-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#set-admin-branch-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#set-admin-branch-protection" }, "parameters": [ { @@ -140889,8 +140897,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -140902,7 +140910,7 @@ "operationId": "repos/delete-admin-branch-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#delete-admin-branch-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#delete-admin-branch-protection" }, "parameters": [ { @@ -140968,8 +140976,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -140983,7 +140991,7 @@ "operationId": "repos/get-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-pull-request-review-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-pull-request-review-protection" }, "parameters": [ { @@ -142580,8 +142588,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -142593,7 +142601,7 @@ "operationId": "repos/update-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#update-pull-request-review-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#update-pull-request-review-protection" }, "parameters": [ { @@ -144374,8 +144382,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -144387,7 +144395,7 @@ "operationId": "repos/delete-pull-request-review-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#delete-pull-request-review-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#delete-pull-request-review-protection" }, "parameters": [ { @@ -144453,8 +144461,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -144468,7 +144476,7 @@ "operationId": "repos/get-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-commit-signature-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-commit-signature-protection" }, "parameters": [ { @@ -144570,8 +144578,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -144583,7 +144591,7 @@ "operationId": "repos/create-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#create-commit-signature-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#create-commit-signature-protection" }, "parameters": [ { @@ -144685,8 +144693,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -144698,7 +144706,7 @@ "operationId": "repos/delete-commit-signature-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#delete-commit-signature-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#delete-commit-signature-protection" }, "parameters": [ { @@ -144764,8 +144772,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -144779,7 +144787,7 @@ "operationId": "repos/get-status-checks-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-status-checks-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-status-checks-protection" }, "parameters": [ { @@ -144928,8 +144936,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "patch": { @@ -144941,7 +144949,7 @@ "operationId": "repos/update-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#update-status-check-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#update-status-check-protection" }, "parameters": [ { @@ -145219,8 +145227,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -145232,7 +145240,7 @@ "operationId": "repos/remove-status-check-protection", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#remove-status-check-protection" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#remove-status-check-protection" }, "parameters": [ { @@ -145272,8 +145280,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -145287,7 +145295,7 @@ "operationId": "repos/get-all-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-all-status-check-contexts" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-all-status-check-contexts" }, "parameters": [ { @@ -145370,8 +145378,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -145383,7 +145391,7 @@ "operationId": "repos/add-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#add-status-check-contexts" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#add-status-check-contexts" }, "parameters": [ { @@ -145618,8 +145626,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -145631,7 +145639,7 @@ "operationId": "repos/set-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#set-status-check-contexts" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#set-status-check-contexts" }, "parameters": [ { @@ -145838,8 +145846,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -145851,7 +145859,7 @@ "operationId": "repos/remove-status-check-contexts", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#remove-status-check-contexts" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#remove-status-check-contexts" }, "parameters": [ { @@ -146057,8 +146065,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "contexts", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -146072,7 +146080,7 @@ "operationId": "repos/get-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#get-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#get-access-restrictions" }, "parameters": [ { @@ -146536,8 +146544,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -146549,7 +146557,7 @@ "operationId": "repos/delete-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#delete-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#delete-access-restrictions" }, "parameters": [ { @@ -146589,8 +146597,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -146604,7 +146612,7 @@ "operationId": "repos/get-apps-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#list-apps-with-access-to-the-protected-branch" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#list-apps-with-access-to-the-protected-branch" }, "parameters": [ { @@ -147049,8 +147057,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -147062,7 +147070,7 @@ "operationId": "repos/add-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#add-app-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#add-app-access-restrictions" }, "parameters": [ { @@ -147603,8 +147611,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -147616,7 +147624,7 @@ "operationId": "repos/set-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#set-app-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#set-app-access-restrictions" }, "parameters": [ { @@ -148157,8 +148165,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -148170,7 +148178,7 @@ "operationId": "repos/remove-app-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#remove-app-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#remove-app-access-restrictions" }, "parameters": [ { @@ -148710,8 +148718,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "apps", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -148725,7 +148733,7 @@ "operationId": "repos/get-teams-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#list-teams-with-access-to-the-protected-branch" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#list-teams-with-access-to-the-protected-branch" }, "parameters": [ { @@ -149018,8 +149026,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -149031,7 +149039,7 @@ "operationId": "repos/add-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#add-team-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#add-team-access-restrictions" }, "parameters": [ { @@ -149422,8 +149430,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -149435,7 +149443,7 @@ "operationId": "repos/set-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#set-team-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#set-team-access-restrictions" }, "parameters": [ { @@ -149826,8 +149834,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -149839,7 +149847,7 @@ "operationId": "repos/remove-team-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#remove-team-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#remove-team-access-restrictions" }, "parameters": [ { @@ -150229,8 +150237,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "teams", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -150244,7 +150252,7 @@ "operationId": "repos/get-users-with-access-to-protected-branch", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#list-users-with-access-to-the-protected-branch" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#list-users-with-access-to-the-protected-branch" }, "parameters": [ { @@ -150504,8 +150512,8 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "post": { @@ -150517,7 +150525,7 @@ "operationId": "repos/add-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#add-user-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#add-user-access-restrictions" }, "parameters": [ { @@ -150874,8 +150882,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "put": { @@ -150887,7 +150895,7 @@ "operationId": "repos/set-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#set-user-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#set-user-access-restrictions" }, "parameters": [ { @@ -151244,8 +151252,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } }, "delete": { @@ -151257,7 +151265,7 @@ "operationId": "repos/remove-user-access-restrictions", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#remove-user-access-restrictions" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branch-protection#remove-user-access-restrictions" }, "parameters": [ { @@ -151613,8 +151621,8 @@ "githubCloudOnly": false, "enabledForGitHubApps": true, "requestBodyParameterName": "users", - "category": "repos", - "subcategory": "branches" + "category": "branches", + "subcategory": "branch-protection" } } }, @@ -216099,6 +216107,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -286160,6 +286173,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -286465,7 +286483,7 @@ "operationId": "repos/merge-upstream", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#sync-a-fork-branch-with-the-upstream-repository" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository" }, "parameters": [ { @@ -286561,8 +286579,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "branches" + "category": "branches" } } }, @@ -286576,7 +286593,7 @@ "operationId": "repos/merge", "externalDocs": { "description": "API method documentation", - "url": "https://docs.github.com/github-ae@latest/rest/reference/repos#merge-a-branch" + "url": "https://docs.github.com/github-ae@latest/rest/branches/branches#merge-a-branch" }, "parameters": [ { @@ -287536,8 +287553,7 @@ "x-github": { "githubCloudOnly": false, "enabledForGitHubApps": true, - "category": "repos", - "subcategory": "merging" + "category": "branches" } } }, @@ -344403,6 +344419,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -344526,6 +344547,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } } @@ -344842,6 +344868,11 @@ "application/json": { "schema": { "type": "object" + }, + "examples": { + "default": { + "value": null + } } } }