17 lines
319 B
Ruby
17 lines
319 B
Ruby
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)
|
|
present find_by_iid(match[:iid])
|
|
end
|
|
end
|
|
end
|
|
end
|