diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-25 21:14:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-25 21:14:53 +0300 |
commit | 14d02affb4c147873993d8fa065ad16d7c91482d (patch) | |
tree | ef6a884b218f4e9958a15cd4784e0f9591e8f489 /app | |
parent | 6eceaa36d1e565e7ab8f5d1d082200f18cddfb12 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/graphql/types/container_repository_tag_type.rb | 1 | ||||
-rw-r--r-- | app/models/container_repository.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/graphql/types/container_repository_tag_type.rb b/app/graphql/types/container_repository_tag_type.rb index ce58694d237..7691844645a 100644 --- a/app/graphql/types/container_repository_tag_type.rb +++ b/app/graphql/types/container_repository_tag_type.rb @@ -22,6 +22,7 @@ module Types field :location, GraphQL::Types::String, null: false, description: 'URL of the tag.' field :name, GraphQL::Types::String, null: false, description: 'Name of the tag.' field :path, GraphQL::Types::String, null: false, description: 'Path of the tag.' + field :published_at, Types::TimeType, null: true, description: 'Timestamp when the tag was published.' field :referrers, [Types::ContainerRepositoryReferrerType], null: true, description: 'Referrers for this tag.' field :revision, GraphQL::Types::String, null: true, description: 'Revision of the tag.' field :short_revision, GraphQL::Types::String, null: true, description: 'Short revision of the tag.' diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 0257848af37..3b1c10c0259 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -658,6 +658,7 @@ class ContainerRepository < ApplicationRecord tag.manifest_digest = raw_tag['digest'] tag.revision = raw_tag['config_digest'].to_s.split(':')[1] || '' tag.referrers = raw_tag['referrers'] + tag.published_at = raw_tag['published_at'] tag end end |