Commit fccce8ff authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'revert-331151-add-draft-to-mr-grape-entity' into 'master'

Revert "Return value of draft attr instead of #draft?"

See merge request gitlab-org/gitlab!68187
parents 5c7a67f0 73649942
...@@ -56,7 +56,7 @@ module Types ...@@ -56,7 +56,7 @@ module Types
field :work_in_progress, GraphQL::Types::Boolean, method: :work_in_progress?, null: false, field :work_in_progress, GraphQL::Types::Boolean, method: :work_in_progress?, null: false,
deprecated: { reason: 'Use `draft`', milestone: '13.12' }, deprecated: { reason: 'Use `draft`', milestone: '13.12' },
description: 'Indicates if the merge request is a draft.' description: 'Indicates if the merge request is a draft.'
field :draft, GraphQL::Types::Boolean, null: false, field :draft, GraphQL::Types::Boolean, method: :draft?, null: false,
description: 'Indicates if the merge request is a draft.' description: 'Indicates if the merge request is a draft.'
field :merge_when_pipeline_succeeds, GraphQL::Types::Boolean, null: true, field :merge_when_pipeline_succeeds, GraphQL::Types::Boolean, null: true,
description: 'Indicates if the merge has been set to be merged when its pipeline succeeds (MWPS).' description: 'Indicates if the merge has been set to be merged when its pipeline succeeds (MWPS).'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment