fragment ReadyToMerge on Project {
  id
  onlyAllowMergeIfPipelineSucceeds
  mergeRequestsFfOnlyEnabled
  squashReadOnly
  mergeRequest(iid: $iid) {
    id
    autoMergeEnabled
    shouldRemoveSourceBranch
    forceRemoveSourceBranch
    defaultMergeCommitMessage
    defaultMergeCommitMessageWithDescription
    defaultSquashCommitMessage
    squash
    squashOnMerge
    availableAutoMergeStrategies
    hasCi
    mergeable
    mergeWhenPipelineSucceeds
    commitCount
    diffHeadSha
    userPermissions {
      canMerge
      removeSourceBranch
      updateMergeRequest
    }
    targetBranch
    mergeError
    commitsWithoutMergeCommits {
      nodes {
        id
        sha
        shortId
        title
        message
      }
    }
    headPipeline {
      id
      status
      path
      active
    }
  }
}
