- Notifications
You must be signed in to change notification settings - Fork673
Deployment approve/reject via python api supported?#2252
-
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. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 4 comments 3 replies
-
Would be useful to have a link to the upstream GitLab API docs for what is missing. Thanks. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Sorry, this is the endpoint |
BetaWas this translation helpful?Give feedback.
All reactions
-
So it looks like it is this API: And it doesn't look like there is any support for that yet in: 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 inf67514e
|
BetaWas this translation helpful?Give feedback.
All reactions
-
I opened#2253 as a RFE (Request For Enhancement) |
BetaWas this translation helpful?Give feedback.
All reactions
-
Created a PR:#2254 |
BetaWas this translation helpful?Give feedback.
All reactions
-
I tested on my local environment with your PR and it works. Thanks for the quick PR. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks for the test! Glad to know it works. |
BetaWas this translation helpful?Give feedback.