Method: LabClient::MergeRequests#time_estimate
- Defined in:
- lib/labclient/merge_requests/time_stats.rb
#time_estimate(project_id, merge_request_id, duration) ⇒ Object
99 100 101 102 103 104 105 |
# File 'lib/labclient/merge_requests/time_stats.rb', line 99 def time_estimate(project_id, merge_request_id, duration) project_id = format_id(project_id) merge_request_id = format_id(merge_request_id) duration = ChronicDuration.output(ChronicDuration.parse(duration.to_s), format: :short) client.request(:post, "projects/#{project_id}/merge_requests/#{merge_request_id}/time_estimate", nil, duration: duration) end |