gitlab-org--gitlab-foss/lib/gitlab/chat_commands/issue_show.rb

18 lines
337 B
Ruby
Raw Normal View History

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)
2016-11-17 14:30:04 +00:00
find_by_iid(match[:iid])
end
end
end
end