We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c545504 commit 63a11f5Copy full SHA for 63a11f5
gitlab/objects.py
@@ -1837,6 +1837,18 @@ def todo(self, **kwargs):
1837
r = self.gitlab._raw_post(url, **kwargs)
1838
raise_error_from_response(r, GitlabTodoError, [201, 304])
1839
1840
+ def time_stats(self, **kwargs):
1841
+ """Get time stats for the merge request.
1842
+
1843
+ Raises:
1844
+ GitlabConnectionError: If the server cannot be reached.
1845
+ """
1846
+ url = ('/projects/%(project_id)s/merge_requests/%(mr_id)s/time_stats' %
1847
+ {'project_id': self.project_id, 'mr_id': self.id})
1848
+ r = self.gitlab._raw_get(url, **kwargs)
1849
+ raise_error_from_response(r, GitlabGetError)
1850
+ return r.json()
1851
1852
1853
class ProjectMergeRequestManager(BaseManager):
1854
obj_cls = ProjectMergeRequest
0 commit comments