Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Conversation

@RicePatrick
Copy link
Contributor

@RicePatrick RicePatrick commented Apr 3, 2024

This PR adds support for several new custom role permissions. It also resolves an issue where you could previous add or update customer roles, but you would be unable to read them from the API after they were set.

  • Update GroupMember to include MemberRole, allowing the GET APIs to retrieve the custom roles

  • Add the following new Permissions

    • Admin CI/CD Variables
    • Admin Terraform States
    • Admin Group Members
    • Manage Group Access Tokens
    • Archive Projects
    • Remove Projects
  • Fixed typos in the JSON tags for 2 permissions

    • Manage Project Access Tokens (wasn't plural, should have been)
    • Admin Merge Requests (was plural, shouldn't have been)

There is one additional permission in the example JSON I got from the API (admin_push_rules) that I didn't include, because it's not documented in the member roles documentation yet: https://docs.gitlab.com/ee/api/member_roles.html

@RicePatrick
Copy link
Contributor Author

@svanharmelen - This PR is ready for your review!

Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

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

Thanks @PatrickRice-KSC 👍🏻

@svanharmelen svanharmelen merged commit 1ccfef0 into xanzy:main Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants