github.com/grafana/synthetic-monitoring-agent@v0.64.2/.policy.yml (about)

     1  # This file is generated by generate-policy-bot-config.
     2  # Do not edit directly. Run "make .policy.yml" to update.
     3  
     4  # The contents of ".policy.yml.tmpl" were merged with the generated parts of this config.
     5  # To add additional policies to the config, update this file and then run "make .policy.yml".
     6  
     7  policy:
     8    approval:
     9      - or:
    10          - and:
    11              - Workflow .github/workflows/renovate-validate.yaml succeeded or skipped
    12              - Workflow .github/workflows/validate-policy-bot-config.yml succeeded or skipped
    13              - Workflow .github/workflows/validate_pr.yaml succeeded or skipped
    14              - default to approval
    15          - override policies
    16      - policy bot config is valid when modified
    17  approval_rules:
    18    - name: Workflow .github/workflows/renovate-validate.yaml succeeded or skipped
    19      if:
    20        changed_files:
    21          paths:
    22            - ^renovate\.(?:[^/]*)$
    23            - ^\.renovate\.(?:[^/]*)$
    24            - ^\.github\/renovate\.(?:[^/]*)$
    25        file_not_deleted:
    26          paths:
    27            - ^\.github\/workflows\/renovate-validate\.yaml$
    28      requires:
    29        conditions:
    30          has_workflow_result:
    31            conclusions:
    32              - skipped
    33              - success
    34            workflows:
    35              - .github/workflows/renovate-validate.yaml
    36    - name: Workflow .github/workflows/validate-policy-bot-config.yml succeeded or skipped
    37      if:
    38        changed_files:
    39          paths:
    40            - ^\.policy\.yml$
    41        file_not_deleted:
    42          paths:
    43            - ^\.github\/workflows\/validate-policy-bot-config\.yml$
    44      requires:
    45        conditions:
    46          has_workflow_result:
    47            conclusions:
    48              - skipped
    49              - success
    50            workflows:
    51              - .github/workflows/validate-policy-bot-config.yml
    52    - name: Workflow .github/workflows/validate_pr.yaml succeeded or skipped
    53      if:
    54        file_not_deleted:
    55          paths:
    56            - ^\.github\/workflows\/validate_pr\.yaml$
    57        targets_branch:
    58          pattern: (^main$)
    59      requires:
    60        conditions:
    61          has_workflow_result:
    62            conclusions:
    63              - skipped
    64              - success
    65            workflows:
    66              - .github/workflows/validate_pr.yaml
    67    - name: default to approval
    68    - name: policy bot config is valid when modified
    69      if:
    70        changed_files:
    71          paths:
    72            - ^\.policy\.yml
    73      requires:
    74        conditions:
    75          has_successful_status:
    76            - Validate policy bot config
    77    - name: override policies
    78      options:
    79        methods:
    80          comments:
    81            - 'policy bot: approve'
    82            - 'policy-bot: approve'
    83          github_review: false
    84      requires:
    85        count: 1
    86        permissions:
    87          - write