Commit 5af315c2 authored by Kerri Miller's avatar Kerri Miller

Return value of draft attr instead of #draft?

After a post-migration data backfill in 14.1, the draft attr
accurately report the draft status, so there's no need to call
the #draft?

Changelog: changed
parent 64ada62a
......@@ -56,7 +56,7 @@ module Types
field :work_in_progress, GraphQL::Types::Boolean, method: :work_in_progress?, null: false,
deprecated: { reason: 'Use `draft`', milestone: '13.12' },
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.'
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).'
......
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