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

Commitf8e6b13

Browse files
author
Gauvain Pocentek
committed
Update time stats docs
1 parenteae1805 commitf8e6b13

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

‎docs/gl_objects/issues.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ Get time tracking stats::
126126

127127
issue.time_stats()
128128

129+
On recent versions of Gitlab the time stats are also returned as an issue
130+
object attribute::
131+
132+
issue = project.issue.get(iid)
133+
print(issue.attributes['time_stats'])
134+
129135
Set a time estimate for an issue::
130136

131137
issue.time_estimate('3h30m')

‎docs/gl_objects/mrs.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,33 @@ List the diffs for a merge request::
9494
Get a diff for a merge request::
9595

9696
diff = mr.diffs.get(diff_id)
97+
98+
Get time tracking stats::
99+
100+
merge request.time_stats()
101+
102+
On recent versions of Gitlab the time stats are also returned as a merge
103+
request object attribute::
104+
105+
mr = project.mergerequests.get(id)
106+
print(mr.attributes['time_stats'])
107+
108+
Set a time estimate for a merge request::
109+
110+
mr.time_estimate('3h30m')
111+
112+
Reset a time estimate for a merge request::
113+
114+
mr.reset_time_estimate()
115+
116+
Add spent time for a merge request::
117+
118+
mr.add_spent_time('3h30m')
119+
120+
Reset spent time for a merge request::
121+
122+
mr.reset_spent_time()
123+
124+
Get user agent detail for the issue (admin only)::
125+
126+
detail = issue.user_agent_detail()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp