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