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

Protected Branches Group Level #3164

Closed
@xakepnz

Description

@xakepnz

Group Protected Branches

Feature Request to create theprotected_branches attr for theGroup class.

The ability exists over API to query this: (docs)

curl --header"PRIVATE-TOKEN: <your_access_token>" \  --url"https://gitlab.example.com/api/v4/groups/5/protected_branches"

e.g.

>>>group=gl.groups.get('56')>>>pb=group.protectedbranches.list(get_all=True)>>>pb[  {"id":1,"name":"main","push_access_levels": [      {"id":1,"access_level":40,"user_id":null,"group_id":1234,"access_level_description":"Maintainers"      }    ],"merge_access_levels": [      {"id":1,...

ref:https://gitlab.com/gitlab-security-oss/cis/gitlabcis/-/issues/125

Specifications

  • python-gitlab version:5.6.0
  • Gitlab server version (or gitlab.com):GitLab Enterprise Edition 17.11.0-pre76ac92593a5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp