diff options
Diffstat (limited to 'app/graphql/types/release_type.rb')
-rw-r--r-- | app/graphql/types/release_type.rb | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/app/graphql/types/release_type.rb b/app/graphql/types/release_type.rb index d906c577aa5..d70fe05c906 100644 --- a/app/graphql/types/release_type.rb +++ b/app/graphql/types/release_type.rb @@ -17,38 +17,40 @@ module Types null: false, description: 'Global ID of the release.' field :assets, Types::ReleaseAssetsType, null: true, method: :itself, - description: 'Assets of the release.' + 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: '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.' + description: 'Evidence for the release.' field :links, Types::ReleaseLinksType, null: true, method: :itself, - description: 'Links of the release.' + description: 'Links of the release.' field :milestones, Types::MilestoneType.connection_type, null: true, - description: 'Milestones associated to the release.', - resolver: ::Resolvers::ReleaseMilestonesResolver + description: 'Milestones associated to the release.', + resolver: ::Resolvers::ReleaseMilestonesResolver field :name, GraphQL::Types::String, null: true, - description: 'Name of the release.' + description: 'Name of the release.' field :released_at, Types::TimeType, null: true, - description: 'Timestamp of when the release was released.' + 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.' + 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 + 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.' + description: 'Indicates the release is an upcoming release.' field :historical_release, GraphQL::Types::Boolean, null: true, method: :historical_release?, - description: 'Indicates the release is an historical release.' + description: 'Indicates the release is an historical release.' field :author, Types::UserType, null: true, - description: 'User that created the release.' + description: 'User that created the release.' field :commit, Types::CommitType, null: true, - complexity: 10, calls_gitaly: true, - description: 'Commit associated with the release.' + complexity: 10, calls_gitaly: true, + description: 'Commit associated with the release.' markdown_field :description_html, null: true |