-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.policy.yml
89 lines (87 loc) · 2.72 KB
/
.policy.yml
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
# This file is generated by generate-policy-bot-config.
# Do not edit directly. Run "make .policy.yml" to update.
# The contents of ".policy.yml.tmpl" were merged with the generated parts of this config.
# To add additional policies to the config, update this file and then run "make .policy.yml".
policy:
approval:
- or:
- and:
- Workflow .github/workflows/renovate-reviewer.yaml succeeded or skipped
- Workflow .github/workflows/renovate-validate.yaml succeeded or skipped
- Workflow .github/workflows/validate-policy-bot-config.yml succeeded or skipped
- Workflow .github/workflows/validate_pr.yaml succeeded or skipped
- default to approval
- override policies
- policy bot config is valid when modified
approval_rules:
- name: Workflow .github/workflows/renovate-reviewer.yaml succeeded or skipped
requires:
conditions:
has_workflow_result:
conclusions:
- skipped
- success
workflows:
- .github/workflows/renovate-reviewer.yaml
- name: Workflow .github/workflows/renovate-validate.yaml succeeded or skipped
if:
changed_files:
paths:
- ^renovate\.(?:[^/]*)$
- ^\.renovate\.(?:[^/]*)$
- ^\.github\/renovate\.(?:[^/]*)$
- ^\.github\/workflows\/renovate(?:[^/]*)$
requires:
conditions:
has_workflow_result:
conclusions:
- skipped
- success
workflows:
- .github/workflows/renovate-validate.yaml
- name: Workflow .github/workflows/validate-policy-bot-config.yml succeeded or skipped
if:
changed_files:
paths:
- ^\.policy\.yml$
requires:
conditions:
has_workflow_result:
conclusions:
- skipped
- success
workflows:
- .github/workflows/validate-policy-bot-config.yml
- name: Workflow .github/workflows/validate_pr.yaml succeeded or skipped
if:
targets_branch:
pattern: (^main$)
requires:
conditions:
has_workflow_result:
conclusions:
- skipped
- success
workflows:
- .github/workflows/validate_pr.yaml
- name: default to approval
- name: policy bot config is valid when modified
if:
changed_files:
paths:
- ^\.policy\.yml
requires:
conditions:
has_successful_status:
- Validate policy bot config
- name: override policies
options:
methods:
comments:
- 'policy bot: approve'
- 'policy-bot: approve'
github_review: false
requires:
count: 1
permissions:
- write