diff options
author | Eric <eric.yu@twosigma.com> | 2017-08-02 13:16:17 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-02 13:16:17 +0300 |
commit | fb5b2d8d0eb544630f97233731466a18380301c7 (patch) | |
tree | 692486a690ae1b8b5153fc72ccd4e0e860281159 /doc/api/branches.md | |
parent | 30413fd2fffb42424d83c68814a2e8e70bf94671 (diff) |
Extending API for protected branches
Diffstat (limited to 'doc/api/branches.md')
-rw-r--r-- | doc/api/branches.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/branches.md b/doc/api/branches.md index dfaa7d6fab7..80744258acb 100644 --- a/doc/api/branches.md +++ b/doc/api/branches.md @@ -95,6 +95,8 @@ Example response: ## Protect repository branch +>**Note:** This API endpoint is deprecated in favor of `POST /projects/:id/protected_branches`. + Protects a single project repository branch. This is an idempotent function, protecting an already protected repository branch still returns a `200 OK` status code. @@ -143,6 +145,8 @@ Example response: ## Unprotect repository branch +>**Note:** This API endpoint is deprecated in favor of `DELETE /projects/:id/protected_branches/:name` + Unprotects a single project repository branch. This is an idempotent function, unprotecting an already unprotected repository branch still returns a `200 OK` status code. |