fragment ReadyToMerge on Project {
  __typename
  id
  onlyAllowMergeIfPipelineSucceeds
  mergeRequestsFfOnlyEnabled
  squashReadOnly
  mergeRequest(iid: $iid) {
    __typename
    id
    autoMergeEnabled
    shouldRemoveSourceBranch
    forceRemoveSourceBranch
    defaultMergeCommitMessage
    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
    }
  }
}
