forked from grafana/grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.policy.yml.tmpl
More file actions
39 lines (35 loc) · 1.24 KB
/
Copy path.policy.yml.tmpl
File metadata and controls
39 lines (35 loc) · 1.24 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
# Require some statuses to pass only if certain files are modified. This is a
# template file. You can edit it and the generated contents (to enforce that
# conditional workflows pass when they are triggered) will be inserted where
# `MERGE_WITH_GENERATED` is.
policy:
approval:
- or:
- MERGE_WITH_GENERATED
- override policies
- policy bot config is valid when modified
approval_rules:
- name: policy bot config is valid when modified
if:
changed_files:
paths:
- ^\.policy\.yml
requires:
conditions:
has_successful_status:
- Check .policy.yml is valid
- name: override policies
description: |
Policy-bot can be overridden in emergency situations.
**Only use this when absolutely neccesary, as it allows PRs with unfinished/unvalidated CI jobs to be merged.**
Note that a reason is required, IE: `policy-bot disable: We need to deploy this fix to resolve [this ongoing incident with policy-bot](...).`
requires:
count: 1
permissions:
- write
options:
methods:
comment_patterns:
- "(?s)policy[- ]bot:? (?:approve|disable)d?(?::?(?<reason>.*))"
github_review: false
# vim: set ft=yaml et ts=2 sw=2 :