← Winnitude! Search  ·  Reader Mode (1125 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 10 LINKS

cli syntax issue · Issue #1732 · python-gitlab/python-gitlab

Repository navigation

cli syntax issue  #1732


New issue

New issue

Closed as not planned

Closed as not planned
cli syntax issue #1732 Labels
cli

stale

Description

@angegar's profile angegar opened on Dec 6, 2021

Description of the problem, including code/CLI snippet

Hello,
First of all thank you for the work done in this project, it is helpful.

I am trying to manage some gitlab configuration with python-gitlab CLI, however I do not find the right syntax to protect a branch. I am struggling with the parameters :

--allowed-to-push
--allowed-to-merge

Can someone help me ?

**The syntax below does not work

   gitlab project-protected-branch create --project-id xxx\
      --name master \
      --allowed-to-merge='user_id: xxx' \
      --code-owner-approval-required=true \
      --push-access-level=0 \
      --merge-access-level=0

Metadata

Metadata

Assignees

No one assigned

    Labels


    cli

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions