github.com/grafana/synthetic-monitoring-agent@v0.64.2/.policy.yml.tmpl (about) 1 # Require some statuses to pass only if certain files are modified. This is a 2 # template file. You can edit it and the generated contents (to enforce that 3 # conditional workflows pass when they are triggered) will be inserted where 4 # `MERGE_WITH_GENERATED` is. 5 6 policy: 7 approval: 8 - or: 9 - MERGE_WITH_GENERATED 10 - override policies 11 - policy bot config is valid when modified 12 13 approval_rules: 14 - name: policy bot config is valid when modified 15 if: 16 changed_files: 17 paths: 18 - ^\.policy\.yml 19 requires: 20 conditions: 21 has_successful_status: 22 - Validate policy bot config 23 24 - name: override policies 25 requires: 26 count: 1 27 permissions: 28 - write 29 options: 30 methods: 31 comments: 32 - "policy bot: approve" 33 - "policy-bot: approve" 34 github_review: false