summaryrefslogtreecommitdiff
path: root/lib/gitlab/chat_commands/issue_create.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/chat_commands/issue_create.rb')
-rw-r--r--lib/gitlab/chat_commands/issue_create.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/chat_commands/issue_create.rb b/lib/gitlab/chat_commands/issue_create.rb
index b5cf85b58f1..0e2b4c0e9cd 100644
--- a/lib/gitlab/chat_commands/issue_create.rb
+++ b/lib/gitlab/chat_commands/issue_create.rb
@@ -1,10 +1,14 @@
module Gitlab
module ChatCommands
- class IssueCreate < BaseCommand
+ class IssueCreate < IssueCommand
def self.match(text)
/\Aissue\s+create\s+(?<title>[^\n]*)\n*(?<description>.*)\z/.match(text)
end
+ def self.help_message
+ 'issue create <title>\n<description>'
+ end
+
def execute(match)
present nil unless can?(current_user, :create_issue, project)