gitlab-org--gitlab-foss/lib/gitlab/chat_commands/issue_command.rb
Z.J. van de Weg 6a08de7386 Add issue search slash command
One of many requested in: gitlab-org/gitlab-ce#24768
2016-11-25 15:41:28 +01:00

13 lines
306 B
Ruby

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