summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_merge_request_widget/queries/get_state.query.graphql
blob: 871aa880b36bf2f0b3478cf81522da5c10a531c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
query getState($projectPath: ID!, $iid: String!) {
  project(fullPath: $projectPath) {
    archived
    onlyAllowMergeIfPipelineSucceeds

    mergeRequest(iid: $iid) {
      autoMergeEnabled
      commitCount
      conflicts
      diffHeadSha
      mergeError
      mergeStatus
      mergeableDiscussionsState
      headPipeline {
        id
        status
        warnings
      }
      shouldBeRebased
      sourceBranchExists
      state
      targetBranchExists
      userPermissions {
        canMerge
      }
      workInProgress
    }
  }
}