gitlab-org--gitlab-foss/lib/gitlab/slash_commands/issue_command.rb
2017-07-24 08:13:43 +02:00

13 lines
272 B
Ruby

module Gitlab
module SlashCommands
class IssueCommand < BaseCommand
def self.available?(project)
project.issues_enabled?
end
def collection
IssuesFinder.new(current_user, project_id: project.id).execute
end
end
end
end