summaryrefslogtreecommitdiff
path: root/app/graphql/types/release_type.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-18 20:02:30 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-18 20:02:30 +0000
commit41fe97390ceddf945f3d967b8fdb3de4c66b7dea (patch)
tree9c8d89a8624828992f06d892cd2f43818ff5dcc8 /app/graphql/types/release_type.rb
parent0804d2dc31052fb45a1efecedc8e06ce9bc32862 (diff)
downloadgitlab-ce-41fe97390ceddf945f3d967b8fdb3de4c66b7dea.tar.gz
Add latest changes from gitlab-org/gitlab@14-9-stable-eev14.9.0-rc42
Diffstat (limited to 'app/graphql/types/release_type.rb')
-rw-r--r--app/graphql/types/release_type.rb32
1 files changed, 16 insertions, 16 deletions
diff --git a/app/graphql/types/release_type.rb b/app/graphql/types/release_type.rb
index fbc3779ea9b..95b6b43bb46 100644
--- a/app/graphql/types/release_type.rb
+++ b/app/graphql/types/release_type.rb
@@ -13,30 +13,30 @@ module Types
present_using ReleasePresenter
- field :tag_name, GraphQL::Types::String, null: true, method: :tag,
- description: 'Name of the tag associated with the release.'
- field :tag_path, GraphQL::Types::String, null: true,
- description: 'Relative web path to the tag associated with the release.',
- authorize: :download_code
+ field :assets, Types::ReleaseAssetsType, null: true, method: :itself,
+ description: 'Assets of the release.'
+ field :created_at, Types::TimeType, null: true,
+ description: 'Timestamp of when the release was created.'
field :description, GraphQL::Types::String, null: true,
description: 'Description (also known as "release notes") of the release.'
+ field :evidences, Types::EvidenceType.connection_type, null: true,
+ description: 'Evidence for the release.'
+ field :links, Types::ReleaseLinksType, null: true, method: :itself,
+ description: 'Links of the release.'
+ field :milestones, Types::MilestoneType.connection_type, null: true,
+ description: 'Milestones associated to the release.',
+ resolver: ::Resolvers::ReleaseMilestonesResolver
field :name, GraphQL::Types::String, null: true,
description: 'Name of the release.'
- field :created_at, Types::TimeType, null: true,
- description: 'Timestamp of when the release was created.'
field :released_at, Types::TimeType, null: true,
description: 'Timestamp of when the release was released.'
+ field :tag_name, GraphQL::Types::String, null: true, method: :tag,
+ description: 'Name of the tag associated with the release.'
+ field :tag_path, GraphQL::Types::String, null: true,
+ description: 'Relative web path to the tag associated with the release.',
+ authorize: :download_code
field :upcoming_release, GraphQL::Types::Boolean, null: true, method: :upcoming_release?,
description: 'Indicates the release is an upcoming release.'
- field :assets, Types::ReleaseAssetsType, null: true, method: :itself,
- description: 'Assets of the release.'
- field :links, Types::ReleaseLinksType, null: true, method: :itself,
- description: 'Links of the release.'
- field :milestones, Types::MilestoneType.connection_type, null: true,
- description: 'Milestones associated to the release.',
- resolver: ::Resolvers::ReleaseMilestonesResolver
- field :evidences, Types::EvidenceType.connection_type, null: true,
- description: 'Evidence for the release.'
field :author, Types::UserType, null: true,
description: 'User that created the release.'