FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(cli): add setting of `allow_force_push` for protected branch · python-gitlab/python-gitlab@929e07d · GitHub

Repository navigation

Commit 929e07d

Browse files
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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL