xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.37k stars 940 forks source link

Add support for ci_restrict_pipeline_cancellation_role attribute to Projects #1870

Closed RicePatrick closed 7 months ago

RicePatrick commented 7 months ago

With GitLab 16.8, a new "ci_restrict_pipeline_cancellation_role" attribute was added to the List and Edit projects APIs (though, oddly, not Create according to the API documentation: https://docs.gitlab.com/ee/api/projects.html#create-project).

This PR adds support to EditProject and ListProject for that attribute, and adds several tests to verify that the parsing works properly.

RicePatrick commented 7 months ago

Hey @svanharmelen - Would you mind cutting a new tag when you have a moment so this can get included? 🙏

svanharmelen commented 7 months ago

Done... v0.97.0