From 8c0da89910fc5e8960dd696655cb11b8622f6460 Mon Sep 17 00:00:00 2001 From: sachin chauhan <110888148+sachinchauhan23@users.noreply.github.com> Date: Fri, 23 Jan 2026 12:04:08 +0100 Subject: [PATCH] parse Codeowners to Policybot config --- .policy.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .policy.yml diff --git a/.policy.yml b/.policy.yml new file mode 100644 index 0000000..f64cfae --- /dev/null +++ b/.policy.yml @@ -0,0 +1,41 @@ +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/github-review-bots + - coopnorge/cloud-platform + options: + invalidate_on_push: true + methods: + github_review: true + comments: [] +- name: Code change + if: + changed_files: + paths: + - .* + requires: + count: 1 + teams: + - coopnorge/cloud-platform + options: + invalidate_on_push: true + methods: + github_review: true + comments: []