xanzy / go-gitlab

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

feat: add Reset approvals of a merge request method #1898

Closed castlesofplacebo closed 5 months ago

castlesofplacebo commented 5 months ago

This pull request implements the ability to clear all approvals of merge request.

In example, you may need to use this to reset approvals from merge request when new commit added to it (because now gitlab does not reset approvals automatically).

Gitlab documentation: https://docs.gitlab.com/ee/api/merge_request_approvals.html#reset-approvals-of-a-merge-request