Title: Add more options to branch.protect() function · Issue #1355 · python-gitlab/python-gitlab · GitHub
Open Graph Title: Add more options to branch.protect() function · Issue #1355 · python-gitlab/python-gitlab
X Title: Add more options to branch.protect() function · Issue #1355 · python-gitlab/python-gitlab
Description: The branch.protect() function currently supports two arguments: developers_can_push: bool developers_can_merge: bool per https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html Since gitlab allows for more granularity tha...
Open Graph Description: The branch.protect() function currently supports two arguments: developers_can_push: bool developers_can_merge: bool per https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html Sinc...
X Description: The branch.protect() function currently supports two arguments: developers_can_push: bool developers_can_merge: bool per https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html Sinc...
Opengraph URL: https://github.com/python-gitlab/python-gitlab/issues/1355
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add more options to branch.protect() function","articleBody":"The `branch.protect()` function currently supports two arguments:\r\n```\r\ndevelopers_can_push: bool\r\ndevelopers_can_merge: bool\r\n```\r\nper https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html\r\n\r\nSince gitlab allows for more granularity than this, I would propose adding the arguments:\r\n```\r\nmaintainers_can_push: bool\r\nmaintainers_can_merge: bool\r\n```\r\n\r\nThe documentation appears to support this by specifying a higher access level (60): https://docs.gitlab.com/ce/api/protected_branches.html#protected-branches-api","author":{"url":"https://github.com/anderslindho","@type":"Person","name":"anderslindho"},"datePublished":"2021-03-02T15:25:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/1355/python-gitlab/issues/1355"}
| 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:fe933e3e-61de-52fe-0bcd-651c983dde68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABFA:20FD81:98B8046:C5697F4:69770B23 |
| html-safe-nonce | 6926c866c3a7532bd080e5c079005e5c2331f7d0d6d2cb58de7d34c70d3c45fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkZBOjIwRkQ4MTo5OEI4MDQ2OkM1Njk3RjQ6Njk3NzBCMjMiLCJ2aXNpdG9yX2lkIjoiNjI2OTQxNzIzMTc4ODQ3NzIyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3781e3b3bcc6ad681653b8f9af57c89d53c4f362f526a29e68b7a01ebe312db0 |
| hovercard-subject-tag | issue:820122373 |
| 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/1355/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ef91f74cf00c0eca9a02d33db5bc0933f50db25cfa5393430fdbd12922209069/python-gitlab/python-gitlab/issues/1355 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ef91f74cf00c0eca9a02d33db5bc0933f50db25cfa5393430fdbd12922209069/python-gitlab/python-gitlab/issues/1355 |
| og:image:alt | The branch.protect() function currently supports two arguments: developers_can_push: bool developers_can_merge: bool per https://python-gitlab.readthedocs.io/en/stable/gl_objects/branches.html Sinc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anderslindho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width