Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-15 15:09:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-15 15:09:24 +0300
commit7912017a137da35c48071a048c99d27737c29f0f (patch)
treed967751ff35db3fb9ca788a36982a3f1f25bed92 /lib/gitlab/quick_actions
parent25fdad39f53eb46b346076fd07bc2db9bc1d8ccb (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/quick_actions')
-rw-r--r--lib/gitlab/quick_actions/issue_and_merge_request_actions.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/quick_actions/issue_and_merge_request_actions.rb b/lib/gitlab/quick_actions/issue_and_merge_request_actions.rb
index a0faf8dd460..8b1ff5d298a 100644
--- a/lib/gitlab/quick_actions/issue_and_merge_request_actions.rb
+++ b/lib/gitlab/quick_actions/issue_and_merge_request_actions.rb
@@ -161,7 +161,7 @@ module Gitlab
parse_params do |raw_duration|
Gitlab::TimeTrackingFormatter.parse(raw_duration)
end
- command :estimate do |time_estimate|
+ command :estimate, :estimate_time do |time_estimate|
if time_estimate
@updates[:time_estimate] = time_estimate
end
@@ -184,7 +184,7 @@ module Gitlab
parse_params do |raw_time_date|
Gitlab::QuickActions::SpendTimeAndDateSeparator.new(raw_time_date).execute
end
- command :spend, :spent do |time_spent, time_spent_date|
+ command :spend, :spent, :spend_time do |time_spent, time_spent_date|
if time_spent
@updates[:spend_time] = {
duration: time_spent,
@@ -202,7 +202,7 @@ module Gitlab
quick_action_target.persisted? &&
current_user.can?(:"admin_#{quick_action_target.to_ability_name}", project)
end
- command :remove_estimate do
+ command :remove_estimate, :remove_time_estimate do
@updates[:time_estimate] = 0
end