Repository navigation
Expand file tree
/
Copy pathrule.json
More file actions
63 lines (63 loc) · 1.72 KB
/
Copy pathrule.json
File metadata and controls
63 lines (63 loc) · 1.72 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
{
"name": "Main Branch Protection - Code Instructions Kit",
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": {
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 1,
"dismiss_stale_reviews_on_push": true,
"require_last_push_approval": false,
"required_review_thread_resolution": true
}
},
{
"type": "required_status_checks",
"parameters": {
"required_status_checks": [
{
"context": "Markdown Lint"
}
],
"strict_required_status_checks_policy": true
}
},
{
"type": "non_fast_forward"
},
{
"type": "deletion"
},
{
"type": "commit_message_pattern",
"parameters": {
"name": "Conventional Commits",
"pattern": "^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\\(.+\\))?:\\s.{1,50}",
"negate": false
}
},
{
"type": "commit_author_email_pattern",
"parameters": {
"name": "Valid Author Email",
"pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$",
"negate": false
}
}
],
"bypasses": [
{
"actor_id": 1,
"actor_type": "RepositoryRole",
"bypass_mode": "always"
}
]
}