-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruleset.json
More file actions
85 lines (85 loc) · 1.78 KB
/
Copy pathruleset.json
File metadata and controls
85 lines (85 loc) · 1.78 KB
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
{
"name": "default-protection",
"enforcement": "active",
"bypass_actors": [
"dependabot",
"pt2710"
],
"conditions": {
"ref_name": {
"include": [
"master",
"main"
]
},
"repository": {
"visibility": [
"public"
]
}
},
"rules": [
{
"type": "required_deployments",
"configuration": {
"required_deployment_environments": []
}
},
{
"type": "commit_message_pattern",
"configuration": {
"pattern": "^(feat|fix|docs|chore|refactor|test|ci|build)(\\([\\w\\-]+\\))?: .{10,}$",
"message": "Use conventional commits (feat:, fix:, docs:, etc.)"
}
},
{
"type": "required_signatures"
},
{
"type": "required_linear_history"
},
{
"type": "required_status_checks",
"configuration": {
"strict_required_status_checks_policy": true,
"required_status_checks": [
"ci / pytest",
"ci / lint",
"pre-commit"
]
}
},
{
"type": "required_pull_request_reviews",
"configuration": {
"required_approving_review_count": 1,
"require_last_push_approval": false,
"required_review_thread_resolution": true,
"dismiss_stale_reviews": true,
"bypass_pull_request_allowances": {
"users": [],
"teams": []
}
}
},
{
"type": "restrict_pushes",
"configuration": {
"actor_allow_list": [
"pt2710",
"GitHub Actions"
],
"allow_deletions": false,
"allow_force_pushes": false
}
},
{
"type": "restrict_app_installations",
"configuration": {
"app_allow_list": [
"GitHub Actions"
]
}
}
]
}