diff options
Diffstat (limited to 'lib/gitlab/chat_commands/issue_show.rb')
-rw-r--r-- | lib/gitlab/chat_commands/issue_show.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/gitlab/chat_commands/issue_show.rb b/lib/gitlab/chat_commands/issue_show.rb deleted file mode 100644 index d6013f4d10c..00000000000 --- a/lib/gitlab/chat_commands/issue_show.rb +++ /dev/null @@ -1,23 +0,0 @@ -module Gitlab - module ChatCommands - class IssueShow < IssueCommand - def self.match(text) - /\Aissue\s+show\s+#{Issue.reference_prefix}?(?<iid>\d+)/.match(text) - end - - def self.help_message - "issue show <id>" - end - - def execute(match) - issue = find_by_iid(match[:iid]) - - if issue - Gitlab::ChatCommands::Presenters::IssueShow.new(issue).present - else - Gitlab::ChatCommands::Presenters::Access.new.not_found - end - end - end - end -end |