diff options
Diffstat (limited to 'lib/gitlab/slash_commands/presenters/help.rb')
-rw-r--r-- | lib/gitlab/slash_commands/presenters/help.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/slash_commands/presenters/help.rb b/lib/gitlab/slash_commands/presenters/help.rb index 61b36308d20..395f7aab050 100644 --- a/lib/gitlab/slash_commands/presenters/help.rb +++ b/lib/gitlab/slash_commands/presenters/help.rb @@ -26,7 +26,7 @@ module Gitlab MESSAGE end - if text.start_with?('help') + if text && text.start_with?('help') <<~MESSAGE #{full_commands_message(trigger)} @@ -69,9 +69,9 @@ module Gitlab list = @commands .map do |command| if command < Gitlab::SlashCommands::IncidentManagement::IncidentCommand - "#{@params[:command]} #{command.help_message}" - else "#{trigger} #{command.help_message}" + else + "#{trigger} [project name or alias] #{command.help_message}" end end .join("\n") |