summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Leitzen <pl@neopoly.de>2018-07-23 20:27:44 +0200
committerPeter Leitzen <pl@neopoly.de>2018-08-10 16:45:11 +0200
commitd331377af5e2a8aae9db365b8a4892ad027dcfa7 (patch)
tree7c1812e1ce281e2abb476ab149cc638b008e64bb /app
parent591fc8f57f6c9242d291ffc059124d7a0f2d21b8 (diff)
downloadgitlab-ce-d331377af5e2a8aae9db365b8a4892ad027dcfa7.tar.gz
Show optional tag message in quick action explanation
Diffstat (limited to 'app')
-rw-r--r--app/services/quick_actions/interpret_service.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb
index 6345f78af90..f8dccfa465d 100644
--- a/app/services/quick_actions/interpret_service.rb
+++ b/app/services/quick_actions/interpret_service.rb
@@ -583,8 +583,9 @@ module QuickActions
end
desc 'Tag this commit.'
- explanation do |(tag_name), _|
- "Tags this commit to #{tag_name}."
+ explanation do |(tag_name, message)|
+ with_message = %{ with "#{message}"} if message.present?
+ "Tags this commit to #{tag_name}#{with_message}."
end
params 'v1.2.3 <message>'
parse_params do |tag_name_and_message|