forked from github/safe-settings
-
Notifications
You must be signed in to change notification settings - Fork 1
/
org-ruleset.json
115 lines (115 loc) · 2.99 KB
/
org-ruleset.json
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"name": "demo repo ruleset",
"target": "branch",
"enforcement": "disabled",
"bypass_actors": [
{
"actor_id": 3974045,
"actor_type": "Team",
"bypass_mode": "pull_request"
},
{
"actor_id": 7898,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
},
{
"actor_id": 210920,
"actor_type": "Integration",
"bypass_mode": "always"
},
{
"actor_id": 1,
"actor_type": "OrganizationAdmin",
"bypass_mode": "always"
},
{
"actor_id": 5,
"actor_type": "RepositoryRole",
"bypass_mode": "pull_request"
}
],
"conditions": {
"ref_name": {
"include": [
"~DEFAULT_BRANCH"
],
"exclude": [
"refs/heads/oldmaster"
]
},
"repository_name": {
"include": [
"test*"
],
"exclude": [
"test",
"test1"
],
"protected": true
}
},
"rules": [
{
"type": "creation"
},
{
"type": "update"
},
{
"type": "deletion"
},
{
"type": "required_linear_history"
},
{
"type": "required_signatures"
},
{
"type": "pull_request",
"parameters": {
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": true,
"require_last_push_approval": true,
"required_approving_review_count": 10,
"required_review_thread_resolution": true
}
},
{
"type": "commit_message_pattern",
"parameters": {
"name": "test commit_message_pattern",
"negate": true,
"operator": "starts_with",
"pattern": "skip*"
}
},
{
"type": "commit_author_email_pattern",
"parameters": {
"name": "test commit_author_email_pattern",
"negate": false,
"operator": "regex",
"pattern": "^.*@example.com$"
}
},
{
"type": "committer_email_pattern",
"parameters": {
"name": "test committer_email_pattern",
"negate": false,
"operator": "regex",
"pattern": "^.*@example.com$"
}
},
{
"type": "branch_name_pattern",
"parameters": {
"name": "test branch_name_pattern",
"negate": false,
"operator": "regex",
"pattern": "^(feature|bugfix|improvement|library|prerelease|release|hotfix)\/[a-z0-9._-]+$"
}
}
]
}