Skip to content

Commit 4ab9e92

Browse files
authored
Merge pull request #1670 from python-gitlab/jlvillal/merge_requests_api
docs: add links to the GitLab API docs
2 parents 7925c90 + e3b5d27 commit 4ab9e92

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gitlab/v4/objects/merge_requests.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
"""
16
from gitlab import cli
27
from gitlab import exceptions as exc
38
from gitlab import types
@@ -253,6 +258,8 @@ def approve(self, sha=None, **kwargs):
253258
Raises:
254259
GitlabAuthenticationError: If authentication is not correct
255260
GitlabMRApprovalError: If the approval failed
261+
262+
https://docs.gitlab.com/ee/api/merge_request_approvals.html#approve-merge-request
256263
"""
257264
path = f"{self.manager.path}/{self.get_id()}/approve"
258265
data = {}
@@ -273,6 +280,8 @@ def unapprove(self, **kwargs):
273280
Raises:
274281
GitlabAuthenticationError: If authentication is not correct
275282
GitlabMRApprovalError: If the unapproval failed
283+
284+
https://docs.gitlab.com/ee/api/merge_request_approvals.html#unapprove-merge-request
276285
"""
277286
path = f"{self.manager.path}/{self.get_id()}/unapprove"
278287
data = {}

0 commit comments

Comments
 (0)