From a538c3f22739f925c09888bf27c296544ac86909 Mon Sep 17 00:00:00 2001 From: Cameron Joyner Date: Tue, 5 May 2026 11:34:53 -0400 Subject: [PATCH] adding self-approval policy --- .policy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.policy.yml b/.policy.yml index 85d5e9d8090..76bbdf33e00 100644 --- a/.policy.yml +++ b/.policy.yml @@ -8,6 +8,7 @@ policy: approval: - or: # Blueprint team members - trusted + - blueprint team member self-approval - blueprint team member approved by one admin - blueprint team member approved by two admins (contributor allowed) # External contributors - stricter @@ -28,6 +29,21 @@ approval_rules: # BLUEPRINT TEAM MEMBERS (trusted) # ============================================ + - name: blueprint team member self-approval + description: > + For PRs authored by Blueprint team members. Allows the author to approve + their own PR (self-approval). + options: + allow_contributor: true + invalidate_on_push: false + ignore_edited_comments: true + if: + has_author_in: + teams: ["palantir/blueprint"] + requires: + count: 1 + permissions: ["admin", "maintain"] + - name: blueprint team member approved by one admin description: > For PRs authored by Blueprint team members. Approvals are not invalidated