Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add protectedbranches to group class (#3164)#3170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

xakepnz
Copy link
Contributor

@xakepnzxakepnz commentedApr 11, 2025
edited
Loading

Changes

Documentation and testing

Please consider whether this PR needs documentation and tests.This is not required, but highly appreciated:

Closes#3164

@xakepnzxakepnzforce-pushed thefeat/group-protected-branches branch 4 times, most recently fromd13b0ff to5f03160CompareApril 11, 2025 11:51
@codecovCodecov
Copy link

codecovbot commentedApr 11, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.32%. Comparing base(98c1307) to head(66430ea).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@##             main    #3170   +/-   ##=======================================  Coverage   97.32%   97.32%           =======================================  Files          98       98             Lines        6046     6056   +10     =======================================+ Hits         5884     5894   +10  Misses        162      162
FlagCoverage Δ
api_func_v483.68% <100.00%> (+0.09%)⬆️
cli_func_v484.69% <100.00%> (+0.02%)⬆️
unit90.19% <100.00%> (+0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Files with missing linesCoverage Δ
gitlab/v4/objects/branches.py100.00% <100.00%> (ø)
gitlab/v4/objects/groups.py96.00% <100.00%> (+0.04%)⬆️
🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JohnVillalovos
Copy link
Member

JohnVillalovos commentedApr 17, 2025
edited
Loading

FYI: This will need to be rebased and the conflicts resolved.

@xakepnz
Copy link
ContributorAuthor

Rebased@JohnVillalovos ready for a squash & merge ✅

@JohnVillalovos
Copy link
Member

Rebased@JohnVillalovos ready for a squash & merge ✅

image

@xakepnzxakepnzforce-pushed thefeat/group-protected-branches branch fromc5bfc06 tob46f370CompareApril 23, 2025 11:02
@xakepnz
Copy link
ContributorAuthor

@JohnVillalovos ...hmm GitHub is ... different 😁 Anyways.. should be fixed..

Screenshot 2025-04-23 at 10 51 05 PMScreenshot 2025-04-23 at 10 49 55 PM

@JohnVillalovosJohnVillalovosforce-pushed thefeat/group-protected-branches branch fromb46f370 to66430eaCompareJune 7, 2025 14:27
Copy link

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR adds support for managing protected branches in group objects by introducing the new attribute "protectedbranches" and the corresponding manager classes and tests.

  • Implements the new "protectedbranches" attribute in the Group class.
  • Introduces the GroupProtectedBranch and GroupProtectedBranchManager classes to handle CRUD operations.
  • Adds functional tests and documentation updates for the new functionality.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

FileDescription
tests/functional/api/test_groups.pyAdded functional tests for group protected branches.
gitlab/v4/objects/groups.pyAdded the "protectedbranches" attribute to the Group class.
gitlab/v4/objects/branches.pyIntroduced GroupProtectedBranch and Manager classes.
docs/gl_objects/protected_branches.rstUpdated documentation to include group protected branches.

Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

Thanks@xakepnz

@JohnVillalovosJohnVillalovosenabled auto-merge (rebase)June 7, 2025 14:32
@JohnVillalovosJohnVillalovos merged commitbfd31a8 intopython-gitlab:mainJun 7, 2025
17 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch left review comments

Copilot code reviewCopilotCopilot left review comments

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Protected Branches Group Level
3 participants
@xakepnz@JohnVillalovos@nejch

[8]ページ先頭

©2009-2025 Movatter.jp