Title: cli syntax issue · Issue #1732 · python-gitlab/python-gitlab · GitHub
Open Graph Title: cli syntax issue · Issue #1732 · python-gitlab/python-gitlab
X Title: cli syntax issue · Issue #1732 · python-gitlab/python-gitlab
Description: 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 righ...
Open Graph Description: 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-gi...
X Description: 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-gi...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cli syntax issue","articleBody":"## Description of the problem, including code/CLI snippet\r\nHello, \r\nFirst of all thank you for the work done in this project, it is helpful.\r\n\r\nI 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 :\r\n\r\n--allowed-to-push \r\n--allowed-to-merge\r\n\r\nCan someone help me ?\r\n\r\n**The syntax below does not work\r\n```shell\r\n gitlab project-protected-branch create --project-id xxx\\\r\n --name master \\\r\n --allowed-to-merge='user_id: xxx' \\\r\n --code-owner-approval-required=true \\\r\n --push-access-level=0 \\\r\n --merge-access-level=0\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/angegar","@type":"Person","name":"angegar"},"datePublished":"2021-12-06T15:01:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/1732/python-gitlab/issues/1732"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0edb2b8f-8c2a-aef8-27f0-b056b713917e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 879E:1A3A28:1A5A49B:22491D1:69744B4C |
| html-safe-nonce | bde9c7498fd6cbe3882177e399189a98f01f056daed3caf0b8c3b9006a9d02b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzlFOjFBM0EyODoxQTVBNDlCOjIyNDkxRDE6Njk3NDRCNEMiLCJ2aXNpdG9yX2lkIjoiOTM5MTkxNDAxMDEyNTQ2MzgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | aa9b9ee08475ffc5d8265515b67010d3f950d2499b7e4ef1d934d6c23dac2641 |
| hovercard-subject-tag | issue:1072253195 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-gitlab/python-gitlab/1732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/21cbba49aa57f5200b97e8ff8cbd8cd57cc7aa6b46e60cedcb3baabcb456ed52/python-gitlab/python-gitlab/issues/1732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/21cbba49aa57f5200b97e8ff8cbd8cd57cc7aa6b46e60cedcb3baabcb456ed52/python-gitlab/python-gitlab/issues/1732 |
| og:image:alt | 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-gi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | angegar |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git |
| octolytics-dimension-user_id | 28886265 |
| octolytics-dimension-user_login | python-gitlab |
| octolytics-dimension-repository_id | 8077625 |
| octolytics-dimension-repository_nwo | python-gitlab/python-gitlab |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8077625 |
| octolytics-dimension-repository_network_root_nwo | python-gitlab/python-gitlab |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width