module Gitlab module ChatCommands class IssueShow < IssueCommand def self.match(text) /\Aissue\s+show\s+#{Issue.reference_prefix}?(?\d+)/.match(text) end def self.help_message "issue show " end def execute(match) find_by_iid(match[:iid]) end end end end