| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff 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 | + """ | ||
| 1 | 6 | from gitlab import cli | |
| 2 | 7 | from gitlab import exceptions as exc | |
| 3 | 8 | from gitlab import types | |
@@ -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" | |
| 258 | 265 | data = {} | |
@@ -273,6 +280,8 @@ def unapprove(self, **kwargs): | |||
| 273 | 280 | Raises: | |
| 274 | 281 | GitlabAuthenticationError: If authentication is not correct | |
| 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 | data = {} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments