2016-11-16 12:28:38 -05:00
|
|
|
module Gitlab
|
2017-05-31 01:50:53 -04:00
|
|
|
module SlashCommands
|
2016-11-16 12:28:38 -05:00
|
|
|
class IssueCommand < BaseCommand
|
2016-11-15 15:50:27 -05:00
|
|
|
def self.available?(project)
|
2017-07-10 03:38:42 -04:00
|
|
|
project.issues_enabled?
|
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
|