Title: Protected Branches Group Level · Issue #3164 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Protected Branches Group Level · Issue #3164 · python-gitlab/python-gitlab
X Title: Protected Branches Group Level · Issue #3164 · python-gitlab/python-gitlab
Description: Group Protected Branches Feature Request to create the protected_branches attr for the Group class. The ability exists over API to query this: (docs) curl --header "PRIVATE-TOKEN:
Open Graph Description: Group Protected Branches Feature Request to create the protected_branches attr for the Group class. The ability exists over API to query this: (docs) curl --header "PRIVATE-TOKEN: X Description: Group Protected Branches Feature Request to create the protected_branches attr for the Group class. The ability exists over API to query this: (docs) curl --header "PRIVATE-TOKEN: <your_acc...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/3164
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Protected Branches Group Level","articleBody":"## Group Protected Branches\n\nFeature Request to create the `protected_branches` attr for the [Group](https://github.com/python-gitlab/python-gitlab/blob/1299440da1c323fcbf873e67c623ac2349c96e5b/gitlab/v4/objects/groups.py#L72) class.\n\nThe ability exists over API to query this: ([docs](https://docs.gitlab.com/api/group_protected_branches/))\n\n```shell\ncurl --header \"PRIVATE-TOKEN: \u003cyour_access_token\u003e\" \\\n --url \"https://gitlab.example.com/api/v4/groups/5/protected_branches\"\n```\n\ne.g.\n\n```python\n\u003e\u003e\u003e group = gl.groups.get('56')\n\u003e\u003e\u003e pb = group.protectedbranches.list(get_all=True)\n\u003e\u003e\u003e pb\n\n[\n {\n \"id\": 1,\n \"name\": \"main\",\n \"push_access_levels\": [\n {\n \"id\": 1,\n \"access_level\": 40,\n \"user_id\": null,\n \"group_id\": 1234,\n \"access_level_description\": \"Maintainers\"\n }\n ],\n \"merge_access_levels\": [\n {\n \"id\": 1,\n...\n```\n\nref: https://gitlab.com/gitlab-security-oss/cis/gitlabcis/-/issues/125\n\n## Specifications\n\n - python-gitlab version: `5.6.0`\n - Gitlab server version (or gitlab.com): `GitLab Enterprise Edition 17.11.0-pre` [76ac92593a5](https://gitlab.com/gitlab-org/gitlab/-/commits/76ac92593a5)\n","author":{"url":"https://github.com/xakepnz","@type":"Person","name":"xakepnz"},"datePublished":"2025-04-04T09:51:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3164/python-gitlab/issues/3164"}
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:fac52623-d98b-6602-c1bf-9f51c7e5088c current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id BB56:B3582:13D6ADB:1B25DFD:6972A4F4 html-safe-nonce b569313f8be475c1aa3d51645d7f4b8cb7c5acb4af38e0b24ab58124eb500262 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjU2OkIzNTgyOjEzRDZBREI6MUIyNURGRDo2OTcyQTRGNCIsInZpc2l0b3JfaWQiOiI1OTQ4MDgyMDI1MTA3OTg5NzQ4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 940ba8c0393ee873e97a0ebfdb4a31f69e29dbc4528a653c8788914da3e28b07 hovercard-subject-tag issue:2971852552 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/3164/issue_layout twitter:image https://opengraph.githubassets.com/72610f712ee08b66d8954d7749584a2b5b9c8b12f845c1a1cb9eaafc3634a8cb/python-gitlab/python-gitlab/issues/3164 twitter:card summary_large_image og:image https://opengraph.githubassets.com/72610f712ee08b66d8954d7749584a2b5b9c8b12f845c1a1cb9eaafc3634a8cb/python-gitlab/python-gitlab/issues/3164 og:image:alt Group Protected Branches Feature Request to create the protected_branches attr for the Group class. The ability exists over API to query this: (docs) curl --header "PRIVATE-TOKEN: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username xakepnz hostname github.com expected-hostname github.com None ae357919e9cc5fb635a01c9a2cc530478d3ac85f55090215eb70e1beca3385ac 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 625f1bd9f76a617a9c0729e2de91edb56b6ce42f ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.