Skip to content

Commit

Permalink
chore: Replace CODEOWNERS with Policy Bot
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen committed May 30, 2024
1 parent f101d25 commit 04edcf7
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 3 deletions.
48 changes: 48 additions & 0 deletions .policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
policy:
approval:
- or:
- Changes
- Dependabot update

approval_rules:
- name: Changes
if:
changed_files:
paths:
- ".*"
requires:
count: 2
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
count: 8
methods:
github_review: true

- name: Dependabot update
requires:
count: 1
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
count: 8
methods:
github_review: true
if:
only_has_contributors_in:
users:
- "dependabot[bot]"
only_changed_files:
paths:
- "^.github/workflows/.*$"
- "^docker-compose/Dockerfile$"
has_valid_signatures_by_keys:
key_ids: ["B5690EEEBB952194"]
3 changes: 0 additions & 3 deletions CODEOWNERS

This file was deleted.

0 comments on commit 04edcf7

Please sign in to comment.