Skip to content

Commit

Permalink
Enable policy-bot (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhhagen authored Oct 2, 2023
1 parent f6e6696 commit c6f4316
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .policy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
policy:
approval:
- or:
- Dependabot update
- Code change

approval_rules:
- name: Dependabot update
requires:
count: 1
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: all-users
methods:
github_review: true
if:
has_successful_status:
- "build"
only_has_contributors_in:
users:
- "dependabot[bot]"
only_changed_files:
paths:
- "^go.mod$"
- "^go.sum$"
- "^.github/workflows/.*$"
- "^docker-compose/Dockerfile$"
has_valid_signatures_by_keys:
key_ids: ["4AEE18F83AFDEB23"]

- name: Code change
if:
has_successful_status:
- "build"
requires:
count: 2
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
methods:
github_review: true

0 comments on commit c6f4316

Please sign in to comment.