summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn L. Villalovos <john@sodarock.com>2023-02-02 17:09:36 -0800
committerNejc Habjan <hab.nejc@gmail.com>2023-02-03 09:25:50 +0100
commit929e07d94d9a000e6470f530bfde20bb9c0f2637 (patch)
treea10d5c373b1732e9c078a093a55c93589a2b4b7a
parent43f5ac5b12b9d17292b65e3d1322f0211c31780d (diff)
downloadgitlab-929e07d94d9a000e6470f530bfde20bb9c0f2637.tar.gz
feat(cli): add setting of `allow_force_push` for protected branch
For the CLI: add `allow_force_push` as an optional argument for creating a protected branch. API reference: https://docs.gitlab.com/ee/api/protected_branches.html#protect-repository-branches Closes: #2466
-rw-r--r--gitlab/v4/objects/branches.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/v4/objects/branches.py b/gitlab/v4/objects/branches.py
index 8c6e86c..9befe79 100644
--- a/gitlab/v4/objects/branches.py
+++ b/gitlab/v4/objects/branches.py
@@ -42,6 +42,7 @@ class ProjectProtectedBranchManager(NoUpdateMixin, RESTManager):
"push_access_level",
"merge_access_level",
"unprotect_access_level",
+ "allow_force_push",
"allowed_to_push",
"allowed_to_merge",
"allowed_to_unprotect",