Description
Discussed in #2252
Originally posted by jbotello7381 August 23, 2022
I was playing with deployment and gitlab python library, and notice there's no method to approve or reject a deployment? i was able to do it via REST API from my python code, but not via the python wrapper. I'm using 3.8.1 of the gitlab python library.
So it looks like it is this API:
https://docs.gitlab.com/ee/api/deployments.html#approve-or-reject-a-blocked-deployment
And it doesn't look like there is any support for that yet in:
https://github.com/python-gitlab/python-gitlab/blob/main/gitlab/v4/objects/deployments.py
Implementing it will look similar to how the "approve" method is done for a merge request.
python-gitlab/gitlab/v4/objects/merge_requests.py
Lines 263 to 290 in f67514e