-
Notifications
You must be signed in to change notification settings - Fork 0
/
.policy.yml
53 lines (51 loc) · 1.51 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
# This file is generated by generate-policy-bot-config.
# Do not edit directly. Run "make .policy.yml" to update.
# The contents of "policy.yml" 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/build.yml succeeded or skipped
- Workflow .github/workflows/lint.yml succeeded or skipped
- default to approval
- override policies
approval_rules:
- name: Workflow .github/workflows/build.yml succeeded or skipped
if:
changed_files:
paths:
- ^go\.mod$
- ^go\.sum$
- ^(?:(?:[^/]*(?:/|$))*)(?:[^/]*)\.go$
- ^Dockerfile$
- ^\.github\/workflows\/build\.yml$
requires:
conditions:
has_workflow_result:
conclusions:
- skipped
- success
workflows:
- .github/workflows/build.yml
- name: Workflow .github/workflows/lint.yml succeeded or skipped
requires:
conditions:
has_workflow_result:
conclusions:
- skipped
- success
workflows:
- .github/workflows/lint.yml
- name: default to approval
- name: override policies
options:
methods:
comments:
- 'policy bot: approve'
- 'policy-bot: approve'
github_review: false
requires:
count: 1
permissions:
- write