xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.36k stars 935 forks source link

Add new custom role permissions, allow GET to retrieve MemberRole #1908

Closed RicePatrick closed 4 months ago

RicePatrick commented 4 months ago

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.

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 commented 4 months ago

@svanharmelen - This PR is ready for your review!