From 929e07d94d9a000e6470f530bfde20bb9c0f2637 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 2 Feb 2023 17:09:36 -0800 Subject: 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 --- gitlab/v4/objects/branches.py | 1 + 1 file changed, 1 insertion(+) 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", -- cgit v1.2.1