2016-11-16 12:28:38 -05:00
|
|
|
module Gitlab
|
|
|
|
module ChatCommands
|
|
|
|
class IssueCommand < BaseCommand
|
2016-11-15 15:50:27 -05:00
|
|
|
def self.available?(project)
|
2016-11-15 03:55:56 -05:00
|
|
|
project.issues_enabled? && project.default_issues_tracker?
|
2016-11-12 05:17:24 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def collection
|
2016-11-25 09:41:28 -05:00
|
|
|
IssuesFinder.new(current_user, project_id: project.id).execute
|
2016-11-12 05:17:24 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|