Skip to content

Commit

Permalink
feat: octokit.repos.addProtectedBranchAppRestrictions(), `octokit.r…
Browse files Browse the repository at this point in the history
…epos.removeProtectedBranchAppRestrictions()`, `octokit.repos.replaceProtectedBranchAppRestrictions()`
  • Loading branch information
gr2m committed Sep 19, 2019
1 parent 5896712 commit 542c7e7
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions plugins/rest-api-endpoints/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -6528,6 +6528,29 @@
},
"url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
},
"addProtectedBranchAppRestrictions": {
"method": "POST",
"params": {
"apps": {
"mapTo": "data",
"required": true,
"type": "string[]"
},
"branch": {
"required": true,
"type": "string"
},
"owner": {
"required": true,
"type": "string"
},
"repo": {
"required": true,
"type": "string"
}
},
"url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
"addProtectedBranchRequiredSignatures": {
"headers": {
"accept": "application/vnd.github.zzzax-preview+json"
Expand Down Expand Up @@ -9049,6 +9072,29 @@
},
"url": "/repos/:owner/:repo/branches/:branch/protection/enforce_admins"
},
"removeProtectedBranchAppRestrictions": {
"method": "DELETE",
"params": {
"apps": {
"mapTo": "data",
"required": true,
"type": "string[]"
},
"branch": {
"required": true,
"type": "string"
},
"owner": {
"required": true,
"type": "string"
},
"repo": {
"required": true,
"type": "string"
}
},
"url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
"removeProtectedBranchPullRequestReviewEnforcement": {
"method": "DELETE",
"params": {
Expand Down Expand Up @@ -9193,6 +9239,29 @@
},
"url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/users"
},
"replaceProtectedBranchAppRestrictions": {
"method": "PUT",
"params": {
"apps": {
"mapTo": "data",
"required": true,
"type": "string[]"
},
"branch": {
"required": true,
"type": "string"
},
"owner": {
"required": true,
"type": "string"
},
"repo": {
"required": true,
"type": "string"
}
},
"url": "/repos/:owner/:repo/branches/:branch/protection/restrictions/apps"
},
"replaceProtectedBranchRequiredStatusChecksContexts": {
"method": "PUT",
"params": {
Expand Down

0 comments on commit 542c7e7

Please sign in to comment.