gitlab-org--gitlab-foss/app/finders/packages/package_finder.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
372 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Packages
class PackageFinder
def initialize(project, package_id)
@project = project
@package_id = package_id
end
def execute
@project
.packages
.preload_pipelines
.including_project_route
.including_tags
.displayable
.find(@package_id)
end
end
end