summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-09-11 15:46:02 +0200
committerJohn Villalovos <john@sodarock.com>2021-10-06 12:09:22 -0700
commit9656a16f9f34a1aeb8ea0015564bad68ffb39c26 (patch)
treef7dfe71de5d125c467954f747f2eb119c5e58820 /docs
parentc59fbdb0e9311fa84190579769e3c5c6aeb07fe5 (diff)
downloadgitlab-9656a16f9f34a1aeb8ea0015564bad68ffb39c26.tar.gz
refactor(objects): remove deprecated branch protect methods
BREAKING CHANGE: remove deprecated branch protect methods in favor of the more complete protected branches API.
Diffstat (limited to 'docs')
-rw-r--r--docs/gl_objects/branches.rst17
1 files changed, 2 insertions, 15 deletions
diff --git a/docs/gl_objects/branches.rst b/docs/gl_objects/branches.rst
index 8860ff9..aeba8ea 100644
--- a/docs/gl_objects/branches.rst
+++ b/docs/gl_objects/branches.rst
@@ -35,21 +35,8 @@ Delete a repository branch::
# or
branch.delete()
-Protect/unprotect a repository branch::
-
- branch.protect()
- branch.unprotect()
-
-.. note::
-
- By default, developers are not authorized to push or merge into protected
- branches. This can be changed by passing ``developers_can_push`` or
- ``developers_can_merge``:
-
- .. code-block:: python
-
- branch.protect(developers_can_push=True, developers_can_merge=True)
-
Delete the merged branches for a project::
project.delete_merged_branches()
+
+To manage protected branches, see :doc:`/gl_objects/protected_branches`.