We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents7925c90 +e3b5d27 commit4ab9e92Copy full SHA for 4ab9e92
gitlab/v4/objects/merge_requests.py
@@ -1,3 +1,8 @@
1
+"""
2
+GitLab API:
3
+https://docs.gitlab.com/ee/api/merge_requests.html
4
+https://docs.gitlab.com/ee/api/merge_request_approvals.html
5
6
fromgitlabimportcli
7
fromgitlabimportexceptionsasexc
8
fromgitlabimporttypes
@@ -253,6 +258,8 @@ def approve(self, sha=None, **kwargs):
253
258
Raises:
254
259
GitlabAuthenticationError: If authentication is not correct
255
260
GitlabMRApprovalError: If the approval failed
261
+
262
+ https://docs.gitlab.com/ee/api/merge_request_approvals.html#approve-merge-request
256
263
"""
257
264
path=f"{self.manager.path}/{self.get_id()}/approve"
265
data= {}
@@ -273,6 +280,8 @@ def unapprove(self, **kwargs):
273
280
274
281
275
282
GitlabMRApprovalError: If the unapproval failed
283
284
+ https://docs.gitlab.com/ee/api/merge_request_approvals.html#unapprove-merge-request
276
285
277
286
path=f"{self.manager.path}/{self.get_id()}/unapprove"
278
287