Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/releases')
-rw-r--r--app/graphql/mutations/releases/base.rb2
-rw-r--r--app/graphql/mutations/releases/create.rb18
-rw-r--r--app/graphql/mutations/releases/delete.rb4
-rw-r--r--app/graphql/mutations/releases/update.rb14
4 files changed, 19 insertions, 19 deletions
diff --git a/app/graphql/mutations/releases/base.rb b/app/graphql/mutations/releases/base.rb
index 610e9cd9cde..a161dd73bdd 100644
--- a/app/graphql/mutations/releases/base.rb
+++ b/app/graphql/mutations/releases/base.rb
@@ -5,7 +5,7 @@ module Mutations
class Base < BaseMutation
include FindsProject
- argument :project_path, GraphQL::ID_TYPE,
+ argument :project_path, GraphQL::Types::ID,
required: true,
description: 'Full path of the project the release is associated with.'
end
diff --git a/app/graphql/mutations/releases/create.rb b/app/graphql/mutations/releases/create.rb
index 914c1302094..037ade2589c 100644
--- a/app/graphql/mutations/releases/create.rb
+++ b/app/graphql/mutations/releases/create.rb
@@ -8,31 +8,31 @@ module Mutations
field :release,
Types::ReleaseType,
null: true,
- description: 'The release after mutation.'
+ description: 'Release after mutation.'
- argument :tag_name, GraphQL::STRING_TYPE,
+ argument :tag_name, GraphQL::Types::String,
required: true, as: :tag,
description: 'Name of the tag to associate with the release.'
- argument :ref, GraphQL::STRING_TYPE,
+ argument :ref, GraphQL::Types::String,
required: false,
- description: 'The commit SHA or branch name to use if creating a new tag.'
+ description: 'Commit SHA or branch name to use if creating a new tag.'
- argument :name, GraphQL::STRING_TYPE,
+ argument :name, GraphQL::Types::String,
required: false,
description: 'Name of the release.'
- argument :description, GraphQL::STRING_TYPE,
+ argument :description, GraphQL::Types::String,
required: false,
description: 'Description (also known as "release notes") of the release.'
argument :released_at, Types::TimeType,
required: false,
- description: 'The date when the release will be/was ready. Defaults to the current time.'
+ description: 'Date and time for the release. Defaults to the current date and time.'
- argument :milestones, [GraphQL::STRING_TYPE],
+ argument :milestones, [GraphQL::Types::String],
required: false,
- description: 'The title of each milestone the release is associated with. GitLab Premium customers can specify group milestones.'
+ description: 'Title of each milestone the release is associated with. GitLab Premium customers can specify group milestones.'
argument :assets, Types::ReleaseAssetsInputType,
required: false,
diff --git a/app/graphql/mutations/releases/delete.rb b/app/graphql/mutations/releases/delete.rb
index 020c9133b58..70f12577054 100644
--- a/app/graphql/mutations/releases/delete.rb
+++ b/app/graphql/mutations/releases/delete.rb
@@ -8,9 +8,9 @@ module Mutations
field :release,
Types::ReleaseType,
null: true,
- description: 'The deleted release.'
+ description: 'Deleted release.'
- argument :tag_name, GraphQL::STRING_TYPE,
+ argument :tag_name, GraphQL::Types::String,
required: true, as: :tag,
description: 'Name of the tag associated with the release to delete.'
diff --git a/app/graphql/mutations/releases/update.rb b/app/graphql/mutations/releases/update.rb
index 35f2a7b3d4b..549600f7653 100644
--- a/app/graphql/mutations/releases/update.rb
+++ b/app/graphql/mutations/releases/update.rb
@@ -8,27 +8,27 @@ module Mutations
field :release,
Types::ReleaseType,
null: true,
- description: 'The release after mutation.'
+ description: 'Release after mutation.'
- argument :tag_name, GraphQL::STRING_TYPE,
+ argument :tag_name, GraphQL::Types::String,
required: true, as: :tag,
description: 'Name of the tag associated with the release.'
- argument :name, GraphQL::STRING_TYPE,
+ argument :name, GraphQL::Types::String,
required: false,
description: 'Name of the release.'
- argument :description, GraphQL::STRING_TYPE,
+ argument :description, GraphQL::Types::String,
required: false,
description: 'Description (release notes) of the release.'
argument :released_at, Types::TimeType,
required: false,
- description: 'The release date.'
+ description: 'Release date.'
- argument :milestones, [GraphQL::STRING_TYPE],
+ argument :milestones, [GraphQL::Types::String],
required: false,
- description: 'The title of each milestone the release is associated with. GitLab Premium customers can specify group milestones.'
+ description: 'Title of each milestone the release is associated with. GitLab Premium customers can specify group milestones.'
authorize :update_release