From be43fde5f036995cc7d399ff1311ce744356d868 Mon Sep 17 00:00:00 2001 From: Imran Siddique Date: Thu, 11 Jun 2026 16:46:07 -0700 Subject: [PATCH] fix(workflows): skip maintainer gate for maintainer-authored PRs author_association only reports MEMBER for public org membership; with private membership a maintainer's own PR could never clear the gate (authors cannot approve their own PRs). Skip when the PR author is in MAINTAINERS. Co-Authored-By: Claude Fable 5 --- .github/workflows/require-maintainer-approval.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/require-maintainer-approval.yml b/.github/workflows/require-maintainer-approval.yml index 3bacd2d..f11b1e1 100644 --- a/.github/workflows/require-maintainer-approval.yml +++ b/.github/workflows/require-maintainer-approval.yml @@ -27,6 +27,12 @@ jobs: script: | const MAINTAINERS = ['imran-siddique']; + const author = context.payload.pull_request.user.login; + if (MAINTAINERS.includes(author)) { + core.info(`Author ${author} is a maintainer, skipping gate`); + return; + } + const association = context.payload.pull_request.author_association; if (association === 'MEMBER' || association === 'OWNER') { core.info(`Author is ${association}, skipping gate`);