From ce0970be1b3c1171d5e2944c4a29df0f32464f6c Mon Sep 17 00:00:00 2001 From: sachin chauhan <110888148+sachinchauhan23@users.noreply.github.com> Date: Fri, 30 Jan 2026 16:05:15 +0100 Subject: [PATCH] parse Codeowners to Policybot config --- .policy.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .policy.yml diff --git a/.policy.yml b/.policy.yml new file mode 100644 index 0000000..de51e09 --- /dev/null +++ b/.policy.yml @@ -0,0 +1,49 @@ +policy: + approval: + - or: + - Dependabot update + - Code change +approval_rules: +- name: Dependabot update + if: + only_has_contributors_in: + users: + - dependabot[bot] + only_changed_files: + paths: + - ^\.github/workflows/.*$ + has_valid_signatures_by_keys: + key_ids: + - B5690EEEBB952194 + requires: + count: 1 + teams: + - coopnorge/engineering + - coopnorge/github-review-bots + options: + invalidate_on_push: true + methods: + github_review: true + comments: [] + request_review: + enabled: true + mode: random-users + count: 2 +- name: Code change + if: + changed_files: + paths: + - .* + requires: + count: 1 + teams: + - coopnorge/engineering + options: + invalidate_on_push: true + methods: + github_review: true + comments: [] + request_review: + enabled: true + mode: random-users + count: 2