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
|
2021-03-25 06:09:02 +00:00
|
|
|
headPipeline {
|
|
|
|
id
|
|
|
|
status
|
|
|
|
warnings
|
2020-09-12 00:08:44 +00:00
|
|
|
}
|
|
|
|
shouldBeRebased
|
|
|
|
sourceBranchExists
|
2021-02-04 12:09:25 +00:00
|
|
|
state
|
2020-09-12 00:08:44 +00:00
|
|
|
targetBranchExists
|
|
|
|
userPermissions {
|
|
|
|
canMerge
|
|
|
|
}
|
2020-08-18 18:10:10 +00:00
|
|
|
workInProgress
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|