Skip to content

Commit 929e07d

Browse files
JohnVillalovosnejch
authored andcommitted
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
1 parent 43f5ac5 commit 929e07d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab/v4/objects/branches.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class ProjectProtectedBranchManager(NoUpdateMixin, RESTManager):
4242
"push_access_level",
4343
"merge_access_level",
4444
"unprotect_access_level",
45+
"allow_force_push",
4546
"allowed_to_push",
4647
"allowed_to_merge",
4748
"allowed_to_unprotect",

0 commit comments

Comments
 (0)