Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite3b5d27

Browse files
docs: add links to the GitLab API docs
Add links to the GitLab API docs for merge_requests.py as it containscode which spans two different API documentation pages.
1 parent7925c90 commite3b5d27

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
fromgitlabimportcli
27
fromgitlabimportexceptionsasexc
38
fromgitlabimporttypes
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp