2016-11-16 17:28:38 +00:00
|
|
|
module Gitlab
|
|
|
|
module ChatCommands
|
|
|
|
class IssueShow < IssueCommand
|
|
|
|
def self.match(text)
|
|
|
|
/\Aissue\s+show\s+(?<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])
|
2016-11-16 17:28:38 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|