Commit 25f75cc2 authored by Doug Stull's avatar Doug Stull

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

Return draft attr rather than output of #draft?

See merge request gitlab-org/gitlab!62508
parents a9244ed8 5af315c2
...@@ -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, method: :draft?, null: false, field :draft, GraphQL::Types::Boolean, 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