diff options
author | Peter Leitzen <pl@neopoly.de> | 2018-07-23 21:27:44 +0300 |
---|---|---|
committer | Peter Leitzen <pl@neopoly.de> | 2018-08-10 17:45:11 +0300 |
commit | d331377af5e2a8aae9db365b8a4892ad027dcfa7 (patch) | |
tree | 7c1812e1ce281e2abb476ab149cc638b008e64bb /app/services/quick_actions | |
parent | 591fc8f57f6c9242d291ffc059124d7a0f2d21b8 (diff) |
Show optional tag message in quick action explanation
Diffstat (limited to 'app/services/quick_actions')
-rw-r--r-- | app/services/quick_actions/interpret_service.rb | 5 |
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| |