René's URL Explorer Experiment


Title: feat: add protectedbranches to group class (#3164) by xakepnz · Pull Request #3170 · python-gitlab/python-gitlab · GitHub

Open Graph Title: feat: add protectedbranches to group class (#3164) by xakepnz · Pull Request #3170 · python-gitlab/python-gitlab

X Title: feat: add protectedbranches to group class (#3164) by xakepnz · Pull Request #3170 · python-gitlab/python-gitlab

Description: Changes Adds protectedbranches attr to the Group class objects. This allows one to retrieve (.list()) or set (.create()) protected branches to trickle downstream to sub-groups/projects. Ref: https://docs.gitlab.com/api/group_protected_branches/ Documentation and testing Please consider whether this PR needs documentation and tests. This is not required, but highly appreciated: Documentation in the matching docs section Unit tests and/or functional tests Closes #3164

Open Graph Description: Changes Adds protectedbranches attr to the Group class objects. This allows one to retrieve (.list()) or set (.create()) protected branches to trickle downstream to sub-groups/projects. Ref: htt...

X Description: Changes Adds protectedbranches attr to the Group class objects. This allows one to retrieve (.list()) or set (.create()) protected branches to trickle downstream to sub-groups/projects. Ref: htt...

Opengraph URL: https://github.com/python-gitlab/python-gitlab/pull/3170

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:7f6820c3-fb43-70cc-5dcb-64a83f959f6b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE48C:3DE401:35CA1BE:4950558:697387EB
html-safe-nonce9bb9f575a6562c049409971c8eac73f0622c7f8f4f199d70aa8bbc8918220c59
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDhDOjNERTQwMTozNUNBMUJFOjQ5NTA1NTg6Njk3Mzg3RUIiLCJ2aXNpdG9yX2lkIjoiNDQwOTc2NzAyMzM1NzQyOTczOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4e3e68a1535beb588b967b0e1c8de42ab6abafbf7588f664e3b38038cabca17b
hovercard-subject-tagpull_request:2453591702
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-gitlab/python-gitlab/pull/3170/files
twitter:imagehttps://avatars.githubusercontent.com/u/26149256?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/26149256?s=400&v=4
og:image:altChanges Adds protectedbranches attr to the Group class objects. This allows one to retrieve (.list()) or set (.create()) protected branches to trickle downstream to sub-groups/projects. Ref: htt...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonef0b5e2d1da32de5a0b7bcfbc5ba007c93e8e63098fba29e1200efb674aa72e66
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-gitlab/python-gitlab git https://github.com/python-gitlab/python-gitlab.git
octolytics-dimension-user_id28886265
octolytics-dimension-user_loginpython-gitlab
octolytics-dimension-repository_id8077625
octolytics-dimension-repository_nwopython-gitlab/python-gitlab
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id8077625
octolytics-dimension-repository_network_root_nwopython-gitlab/python-gitlab
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec96653671324f9b6d4c5f787435acf56a06087dd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-gitlab/python-gitlab/pull/3170/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-gitlab%2Fpython-gitlab%2Fpull%2F3170%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-gitlab%2Fpython-gitlab%2Fpull%2F3170%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-gitlab%2Fpython-gitlab
Reloadhttps://github.com/python-gitlab/python-gitlab/pull/3170/files
Reloadhttps://github.com/python-gitlab/python-gitlab/pull/3170/files
Reloadhttps://github.com/python-gitlab/python-gitlab/pull/3170/files
python-gitlab https://github.com/python-gitlab
python-gitlabhttps://github.com/python-gitlab/python-gitlab
Notifications https://github.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab
Fork 675 https://github.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab
Star 2.4k https://github.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab
Code https://github.com/python-gitlab/python-gitlab
Issues 26 https://github.com/python-gitlab/python-gitlab/issues
Pull requests 12 https://github.com/python-gitlab/python-gitlab/pulls
Discussions https://github.com/python-gitlab/python-gitlab/discussions
Actions https://github.com/python-gitlab/python-gitlab/actions
Projects 0 https://github.com/python-gitlab/python-gitlab/projects
Security 0 https://github.com/python-gitlab/python-gitlab/security
Insights https://github.com/python-gitlab/python-gitlab/pulse
Code https://github.com/python-gitlab/python-gitlab
Issues https://github.com/python-gitlab/python-gitlab/issues
Pull requests https://github.com/python-gitlab/python-gitlab/pulls
Discussions https://github.com/python-gitlab/python-gitlab/discussions
Actions https://github.com/python-gitlab/python-gitlab/actions
Projects https://github.com/python-gitlab/python-gitlab/projects
Security https://github.com/python-gitlab/python-gitlab/security
Insights https://github.com/python-gitlab/python-gitlab/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-gitlab%2Fpython-gitlab%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-gitlab%2Fpython-gitlab%2Fissues%2Fnew%2Fchoose
JohnVillalovoshttps://github.com/JohnVillalovos
python-gitlab:mainhttps://github.com/python-gitlab/python-gitlab/tree/main
xakepnz:feat/group-protected-brancheshttps://github.com/xakepnz/python-gitlab/tree/feat/group-protected-branches
Conversation 8 https://github.com/python-gitlab/python-gitlab/pull/3170
Commits 1 https://github.com/python-gitlab/python-gitlab/pull/3170/commits
Checks 16 https://github.com/python-gitlab/python-gitlab/pull/3170/checks
Files changed https://github.com/python-gitlab/python-gitlab/pull/3170/files
Please reload this pagehttps://github.com/python-gitlab/python-gitlab/pull/3170/files
feat: add protectedbranches to group class (#3164) https://github.com/python-gitlab/python-gitlab/pull/3170/files#top
Show all changes 1 commit https://github.com/python-gitlab/python-gitlab/pull/3170/files
66430ea feat(groups): add protectedbranches to group class (#3164) xakepnz Apr 11, 2025 https://github.com/python-gitlab/python-gitlab/pull/3170/commits/66430ea2ac96433abf6d03943338fa523659823b
Clear filters https://github.com/python-gitlab/python-gitlab/pull/3170/files
Please reload this pagehttps://github.com/python-gitlab/python-gitlab/pull/3170/files
Please reload this pagehttps://github.com/python-gitlab/python-gitlab/pull/3170/files
protected_branches.rst https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-5b1bc6195d3109982a430d8ab06bc92b105e011f4ad84226ac52d0bd20f9df56
branches.py https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-e3c45eb07566189353784d210863d6e5e26223b1facbb85a2f3be035fb8e3280
groups.py https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-d34c5d8bb8d2cd5cf3fc70ce2c27d39b260be98d104e490b6e6841809a3c413a
test_groups.py https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-8b5dc10ca3fdb7ac0e840357703408440f9ce141b260a6cd6dac64632cba3753
docs/gl_objects/protected_branches.rsthttps://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-5b1bc6195d3109982a430d8ab06bc92b105e011f4ad84226ac52d0bd20f9df56
View file https://github.com/xakepnz/python-gitlab/blob/66430ea2ac96433abf6d03943338fa523659823b/docs/gl_objects/protected_branches.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-gitlab/python-gitlab/pull/3170/{{ revealButtonHref }}
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-5b1bc6195d3109982a430d8ab06bc92b105e011f4ad84226ac52d0bd20f9df56
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-5b1bc6195d3109982a430d8ab06bc92b105e011f4ad84226ac52d0bd20f9df56
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-5b1bc6195d3109982a430d8ab06bc92b105e011f4ad84226ac52d0bd20f9df56
gitlab/v4/objects/branches.pyhttps://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-e3c45eb07566189353784d210863d6e5e26223b1facbb85a2f3be035fb8e3280
View file https://github.com/xakepnz/python-gitlab/blob/66430ea2ac96433abf6d03943338fa523659823b/gitlab/v4/objects/branches.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-gitlab/python-gitlab/pull/3170/{{ revealButtonHref }}
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-e3c45eb07566189353784d210863d6e5e26223b1facbb85a2f3be035fb8e3280
gitlab/v4/objects/groups.pyhttps://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-d34c5d8bb8d2cd5cf3fc70ce2c27d39b260be98d104e490b6e6841809a3c413a
View file https://github.com/xakepnz/python-gitlab/blob/66430ea2ac96433abf6d03943338fa523659823b/gitlab/v4/objects/groups.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-gitlab/python-gitlab/pull/3170/{{ revealButtonHref }}
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-d34c5d8bb8d2cd5cf3fc70ce2c27d39b260be98d104e490b6e6841809a3c413a
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-d34c5d8bb8d2cd5cf3fc70ce2c27d39b260be98d104e490b6e6841809a3c413a
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-d34c5d8bb8d2cd5cf3fc70ce2c27d39b260be98d104e490b6e6841809a3c413a
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-d34c5d8bb8d2cd5cf3fc70ce2c27d39b260be98d104e490b6e6841809a3c413a
tests/functional/api/test_groups.pyhttps://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-8b5dc10ca3fdb7ac0e840357703408440f9ce141b260a6cd6dac64632cba3753
View file https://github.com/xakepnz/python-gitlab/blob/66430ea2ac96433abf6d03943338fa523659823b/tests/functional/api/test_groups.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-gitlab/python-gitlab/pull/3170/{{ revealButtonHref }}
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-8b5dc10ca3fdb7ac0e840357703408440f9ce141b260a6cd6dac64632cba3753
Please reload this pagehttps://github.com/python-gitlab/python-gitlab/pull/3170/files
https://github.com/python-gitlab/python-gitlab/pull/3170/files#diff-8b5dc10ca3fdb7ac0e840357703408440f9ce141b260a6cd6dac64632cba3753
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.