github.com/arthur-befumo/witchcraft-go-server@v1.12.0/.policy.yml (about)

     1  # Excavator auto-updates this file. Please contribute improvements to the central template.
     2  
     3  policy:
     4    approval:
     5      - or:
     6        - one admin has approved (PR contributors not allowed)
     7        - two admins have approved
     8        - changelog only and contributor approval
     9        - fixing excavator
    10        - excavator only touched baseline, circle, gradle files, godel files, docker-compose-rule config or versions.props
    11        - excavator only touched config files
    12        - bots updated package.json and lock files
    13    disapproval:
    14      requires:
    15        organizations: [ "palantir" ]
    16  
    17  approval_rules:
    18  
    19    - name: one admin has approved (PR contributors not allowed)
    20      options:
    21        allow_contributor: false
    22        request_review:
    23          enabled: true
    24      requires:
    25        count: 1
    26        admins: true
    27  
    28    - name: two admins have approved
    29      options:
    30        allow_contributor: true
    31      requires:
    32        count: 2
    33        admins: true
    34  
    35    - name: changelog only and contributor approval
    36      options:
    37        allow_contributor: true
    38      requires:
    39        count: 1
    40        admins: true
    41      if:
    42        only_changed_files:
    43          paths:
    44            - "changelog/@unreleased/.*\\.yml"
    45  
    46    - name: fixing excavator
    47      options:
    48        allow_contributor: true
    49      requires:
    50        count: 1
    51        admins: true
    52      if:
    53        has_author_in:
    54          users: [ "svc-excavator-bot" ]
    55  
    56    - name: excavator only touched baseline, circle, gradle files, godel files, docker-compose-rule config or versions.props
    57      requires:
    58        count: 0
    59      if:
    60        has_author_in:
    61          users: [ "svc-excavator-bot" ]
    62        only_changed_files:
    63          # product-dependencies.lock should never go here, to force review of all product (SLS) dependency changes
    64          # this way excavator cannot change the deployability of a service or product via auto-merge
    65          paths:
    66            - "changelog/@unreleased/.*\\.yml"
    67            - "^\\.baseline/.*$"
    68            - "^\\.circleci/.*$"
    69            - "^\\.docker-compose-rule\\.yml$"
    70            - "^.*gradle$"
    71            - "^gradle/wrapper/.*"
    72            - "^gradlew$"
    73            - "^gradlew.bat$"
    74            - "^gradle.properties$"
    75            - "^settings.gradle$"
    76            - "^godelw$"
    77            - "^godel/config/godel.properties$"
    78            - "^versions.props$"
    79            - "^versions.lock$"
    80  
    81    - name: excavator only touched config files
    82      requires:
    83        count: 0
    84      if:
    85        has_author_in:
    86          users: [ "svc-excavator-bot" ]
    87        only_changed_files:
    88          paths:
    89            - "^\\..*.yml$"
    90            - "^\\.github/.*$"
    91  
    92    - name: bots updated package.json and lock files
    93      requires:
    94        count: 0
    95      if:
    96        has_author_in:
    97          users:
    98          - "svc-excavator-bot"
    99          - "dependabot[bot]"
   100        only_changed_files:
   101          paths:
   102            - "^.*yarn.lock$"
   103            - "^.*package.json$"