summaryrefslogtreecommitdiff
path: root/app/graphql/types/merge_request_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/merge_request_type.rb')
-rw-r--r--app/graphql/types/merge_request_type.rb84
1 files changed, 43 insertions, 41 deletions
diff --git a/app/graphql/types/merge_request_type.rb b/app/graphql/types/merge_request_type.rb
index b8f63a750c5..1baaa33c819 100644
--- a/app/graphql/types/merge_request_type.rb
+++ b/app/graphql/types/merge_request_type.rb
@@ -12,53 +12,55 @@ module Types
present_using MergeRequestPresenter
- field :id, GraphQL::ID_TYPE, null: false
- field :iid, GraphQL::STRING_TYPE, null: false
- field :title, GraphQL::STRING_TYPE, null: false
+ field :id, GraphQL::ID_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :iid, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :title, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
markdown_field :title_html, null: true
- field :description, GraphQL::STRING_TYPE, null: true
+ field :description, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
markdown_field :description_html, null: true
- field :state, MergeRequestStateEnum, null: false
- field :created_at, Types::TimeType, null: false
- field :updated_at, Types::TimeType, null: false
- field :source_project, Types::ProjectType, null: true
- field :target_project, Types::ProjectType, null: false
- field :diff_refs, Types::DiffRefsType, null: true
+ field :state, MergeRequestStateEnum, null: false # rubocop:disable Graphql/Descriptions
+ field :created_at, Types::TimeType, null: false # rubocop:disable Graphql/Descriptions
+ field :updated_at, Types::TimeType, null: false # rubocop:disable Graphql/Descriptions
+ field :source_project, Types::ProjectType, null: true # rubocop:disable Graphql/Descriptions
+ field :target_project, Types::ProjectType, null: false # rubocop:disable Graphql/Descriptions
+ field :diff_refs, Types::DiffRefsType, null: true # rubocop:disable Graphql/Descriptions
# Alias for target_project
- field :project, Types::ProjectType, null: false
- field :project_id, GraphQL::INT_TYPE, null: false, method: :target_project_id
- field :source_project_id, GraphQL::INT_TYPE, null: true
- field :target_project_id, GraphQL::INT_TYPE, null: false
- field :source_branch, GraphQL::STRING_TYPE, null: false
- field :target_branch, GraphQL::STRING_TYPE, null: false
- field :work_in_progress, GraphQL::BOOLEAN_TYPE, method: :work_in_progress?, null: false
- field :merge_when_pipeline_succeeds, GraphQL::BOOLEAN_TYPE, null: true
- field :diff_head_sha, GraphQL::STRING_TYPE, null: true
- field :merge_commit_sha, GraphQL::STRING_TYPE, null: true
- field :user_notes_count, GraphQL::INT_TYPE, null: true
- field :should_remove_source_branch, GraphQL::BOOLEAN_TYPE, method: :should_remove_source_branch?, null: true
- field :force_remove_source_branch, GraphQL::BOOLEAN_TYPE, method: :force_remove_source_branch?, null: true
- field :merge_status, GraphQL::STRING_TYPE, null: true
- field :in_progress_merge_commit_sha, GraphQL::STRING_TYPE, null: true
- field :merge_error, GraphQL::STRING_TYPE, null: true
- field :allow_collaboration, GraphQL::BOOLEAN_TYPE, null: true
- field :should_be_rebased, GraphQL::BOOLEAN_TYPE, method: :should_be_rebased?, null: false
- field :rebase_commit_sha, GraphQL::STRING_TYPE, null: true
- field :rebase_in_progress, GraphQL::BOOLEAN_TYPE, method: :rebase_in_progress?, null: false, calls_gitaly: true
+ field :project, Types::ProjectType, null: false # rubocop:disable Graphql/Descriptions
+ field :project_id, GraphQL::INT_TYPE, null: false, method: :target_project_id # rubocop:disable Graphql/Descriptions
+ field :source_project_id, GraphQL::INT_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :target_project_id, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :source_branch, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :target_branch, GraphQL::STRING_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :work_in_progress, GraphQL::BOOLEAN_TYPE, method: :work_in_progress?, null: false # rubocop:disable Graphql/Descriptions
+ field :merge_when_pipeline_succeeds, GraphQL::BOOLEAN_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :diff_head_sha, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :merge_commit_sha, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :user_notes_count, GraphQL::INT_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :should_remove_source_branch, GraphQL::BOOLEAN_TYPE, method: :should_remove_source_branch?, null: true # rubocop:disable Graphql/Descriptions
+ field :force_remove_source_branch, GraphQL::BOOLEAN_TYPE, method: :force_remove_source_branch?, null: true # rubocop:disable Graphql/Descriptions
+ field :merge_status, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :in_progress_merge_commit_sha, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :merge_error, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :allow_collaboration, GraphQL::BOOLEAN_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :should_be_rebased, GraphQL::BOOLEAN_TYPE, method: :should_be_rebased?, null: false # rubocop:disable Graphql/Descriptions
+ field :rebase_commit_sha, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :rebase_in_progress, GraphQL::BOOLEAN_TYPE, method: :rebase_in_progress?, null: false, calls_gitaly: true # rubocop:disable Graphql/Descriptions
+ # rubocop:disable Graphql/Descriptions
field :merge_commit_message, GraphQL::STRING_TYPE, method: :default_merge_commit_message, null: true, deprecation_reason: "Renamed to defaultMergeCommitMessage"
- field :default_merge_commit_message, GraphQL::STRING_TYPE, null: true
- field :merge_ongoing, GraphQL::BOOLEAN_TYPE, method: :merge_ongoing?, null: false
- field :source_branch_exists, GraphQL::BOOLEAN_TYPE, method: :source_branch_exists?, null: false
- field :mergeable_discussions_state, GraphQL::BOOLEAN_TYPE, null: true
- field :web_url, GraphQL::STRING_TYPE, null: true
- field :upvotes, GraphQL::INT_TYPE, null: false
- field :downvotes, GraphQL::INT_TYPE, null: false
- field :subscribed, GraphQL::BOOLEAN_TYPE, method: :subscribed?, null: false
+ # rubocop:enable Graphql/Descriptions
+ field :default_merge_commit_message, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :merge_ongoing, GraphQL::BOOLEAN_TYPE, method: :merge_ongoing?, null: false # rubocop:disable Graphql/Descriptions
+ field :source_branch_exists, GraphQL::BOOLEAN_TYPE, method: :source_branch_exists?, null: false # rubocop:disable Graphql/Descriptions
+ field :mergeable_discussions_state, GraphQL::BOOLEAN_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :web_url, GraphQL::STRING_TYPE, null: true # rubocop:disable Graphql/Descriptions
+ field :upvotes, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :downvotes, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
+ field :subscribed, GraphQL::BOOLEAN_TYPE, method: :subscribed?, null: false # rubocop:disable Graphql/Descriptions
- field :head_pipeline, Types::Ci::PipelineType, null: true, method: :actual_head_pipeline
- field :pipelines, Types::Ci::PipelineType.connection_type,
+ field :head_pipeline, Types::Ci::PipelineType, null: true, method: :actual_head_pipeline # rubocop:disable Graphql/Descriptions
+ field :pipelines, Types::Ci::PipelineType.connection_type, # rubocop:disable Graphql/Descriptions
resolver: Resolvers::MergeRequestPipelinesResolver
- field :task_completion_status, Types::TaskCompletionStatus, null: false
+ field :task_completion_status, Types::TaskCompletionStatus, null: false # rubocop:disable Graphql/Descriptions
end
end