2017-08-17 22:00:37 +05:30
|
|
|
module Gitlab
|
2017-09-10 17:25:29 +05:30
|
|
|
module SlashCommands
|
2017-08-17 22:00:37 +05:30
|
|
|
class IssueCommand < BaseCommand
|
|
|
|
def self.available?(project)
|
2017-09-10 17:25:29 +05:30
|
|
|
project.issues_enabled?
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def collection
|
|
|
|
IssuesFinder.new(current_user, project_id: project.id).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|