gitlab-org--gitlab-foss/app/assets/javascripts/vue_merge_request_widget/queries/get_state.query.graphql

29 lines
543 B
GraphQL
Raw Normal View History

query getState($projectPath: ID!, $iid: String!) {
project(fullPath: $projectPath) {
archived
onlyAllowMergeIfPipelineSucceeds
mergeRequest(iid: $iid) {
autoMergeEnabled
commitCount
conflicts
diffHeadSha
mergeError
mergeStatus
mergeableDiscussionsState
pipelines(first: 1) {
nodes {
status
}
}
shouldBeRebased
sourceBranchExists
targetBranchExists
userPermissions {
canMerge
}
workInProgress
}
}
}