gitlab-org--gitlab-foss/lib/gitlab/chat_commands/issue_command.rb

14 lines
306 B
Ruby
Raw Normal View History

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