summaryrefslogtreecommitdiff
path: root/app/graphql/types/dependency_proxy/manifest_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/dependency_proxy/manifest_type.rb')
-rw-r--r--app/graphql/types/dependency_proxy/manifest_type.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/graphql/types/dependency_proxy/manifest_type.rb b/app/graphql/types/dependency_proxy/manifest_type.rb
index ab22f540f48..f7e751e30d3 100644
--- a/app/graphql/types/dependency_proxy/manifest_type.rb
+++ b/app/graphql/types/dependency_proxy/manifest_type.rb
@@ -15,6 +15,10 @@ module Types
field :image_name, GraphQL::Types::String, null: false, description: 'Name of the image.'
field :size, GraphQL::Types::String, null: false, description: 'Size of the manifest file.'
field :updated_at, Types::TimeType, null: false, description: 'Date of most recent update.'
+ field :status,
+ Types::DependencyProxy::ManifestTypeEnum,
+ null: false,
+ description: "Status of the manifest (#{::DependencyProxy::Manifest.statuses.keys.join(', ')})"
def image_name
object.file_name.chomp(File.extname(object.file_name))