Skip to content

Commit

Permalink
feat: new parameters for .repos.updateBranchProtection(): `allow_de…
Browse files Browse the repository at this point in the history
…letions`, `allow_force_pushes`, `required_linear_history`
  • Loading branch information
gr2m committed Jan 18, 2020
1 parent 9c71d18 commit c5632ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/rest-api-endpoints/routes.json
Expand Up @@ -5319,6 +5319,8 @@
"updateBranchProtection": {
"method": "PUT",
"params": {
"allow_deletions": { "type": "boolean" },
"allow_force_pushes": { "allowNull": true, "type": "boolean" },
"branch": { "required": true, "type": "string" },
"enforce_admins": {
"allowNull": true,
Expand All @@ -5327,6 +5329,7 @@
},
"owner": { "required": true, "type": "string" },
"repo": { "required": true, "type": "string" },
"required_linear_history": { "type": "boolean" },
"required_pull_request_reviews": {
"allowNull": true,
"required": true,
Expand Down

0 comments on commit c5632ff

Please sign in to comment.