Welcome to mirror list, hosted at ThFree Co, Russian Federation.

default_branch_protection_defaults.json « json_schemas « validators « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd2945c08fb0d93374b21859da9ed189ca6ebd8c (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Default settings for default branch protection",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "allow_force_push": {
      "type": "boolean"
    },
    "allowed_to_merge": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "group_id": {
                "type": "integer"
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "access_level": {
                "type": "integer"
              }
            }
          }
        ]
      }
    },
    "allowed_to_push": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "group_id": {
                "type": "integer"
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "access_level": {
                "type": "integer"
              }
            }
          }
        ]
      }
    },
    "code_owner_approval_required": {
      "type": "boolean"
    },
    "merge_access_level": {
      "type": "integer"
    },
    "push_access_level": {
      "type": "integer"
    },
    "unprotect_access_level": {
      "type": "integer"
    }
  },
  "additionalProperties": false
}