From 604537c5fc6140568c62184d2cf33fe3c068647e Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Thu, 2 Feb 2023 17:09:36 -0800 Subject: [PATCH] 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 8c6e86ce5..9befe79a4 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",