summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/projects/settings/branch_rules/queries/branch_rules_details.query.graphql
blob: aa736469749335a022a728ac1176afb0cda6bc5b (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
30
query getBranchRulesDetails($projectPath: ID!) {
  project(fullPath: $projectPath) {
    id
    branchRules {
      nodes {
        name
        matchingBranchesCount
        branchProtection {
          allowForcePush
          mergeAccessLevels {
            edges {
              node {
                accessLevel
                accessLevelDescription
              }
            }
          }
          pushAccessLevels {
            edges {
              node {
                accessLevel
                accessLevelDescription
              }
            }
          }
        }
      }
    }
  }
}