Commit 19f97d2a authored by Peter Leitzen's avatar Peter Leitzen

No need to destruct block arguments

parent c491d864
...@@ -583,7 +583,7 @@ module QuickActions ...@@ -583,7 +583,7 @@ module QuickActions
end end
desc 'Tag this commit.' desc 'Tag this commit.'
explanation do |(tag_name, message)| explanation do |tag_name, message|
with_message = %{ with "#{message}"} if message.present? with_message = %{ with "#{message}"} if message.present?
"Tags this commit to #{tag_name}#{with_message}." "Tags this commit to #{tag_name}#{with_message}."
end end
...@@ -594,7 +594,7 @@ module QuickActions ...@@ -594,7 +594,7 @@ module QuickActions
condition do condition do
issuable.is_a?(Commit) && current_user.can?(:push_code, project) issuable.is_a?(Commit) && current_user.can?(:push_code, project)
end end
command :tag do |(tag_name, message)| command :tag do |tag_name, message|
@updates[:tag_name] = tag_name @updates[:tag_name] = tag_name
@updates[:tag_message] = message @updates[:tag_message] = message
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment