2020-08-18 18:10:10 +00:00
|
|
|
query getState($projectPath: ID!, $iid: String!) {
|
|
|
|
project(fullPath: $projectPath) {
|
2020-09-12 00:08:44 +00:00
|
|
|
archived
|
|
|
|
onlyAllowMergeIfPipelineSucceeds
|
|
|
|
|
2020-08-18 18:10:10 +00:00
|
|
|
mergeRequest(iid: $iid) {
|
2020-09-12 00:08:44 +00:00
|
|
|
autoMergeEnabled
|
|
|
|
commitCount
|
|
|
|
conflicts
|
|
|
|
diffHeadSha
|
|
|
|
mergeError
|
|
|
|
mergeStatus
|
|
|
|
mergeableDiscussionsState
|
|
|
|
pipelines(first: 1) {
|
|
|
|
nodes {
|
|
|
|
status
|
|
|
|
}
|
|
|
|
}
|
|
|
|
shouldBeRebased
|
|
|
|
sourceBranchExists
|
|
|
|
targetBranchExists
|
|
|
|
userPermissions {
|
|
|
|
canMerge
|
|
|
|
}
|
2020-08-18 18:10:10 +00:00
|
|
|
workInProgress
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|