From 195f89337f64f023e5e02074b164cb50b7ab76df Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Tue, 21 Jul 2026 07:59:19 -0700 Subject: [PATCH] Skip contribution policy check for bot PRs --- .github/scripts/check-contribution-policy.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/scripts/check-contribution-policy.js b/.github/scripts/check-contribution-policy.js index 9f9b0be4..2c7dc579 100644 --- a/.github/scripts/check-contribution-policy.js +++ b/.github/scripts/check-contribution-policy.js @@ -630,6 +630,22 @@ async function checkPullRequest({ const pr = response.data; const issueNumber = pr.number; + if (pr.user.type === "Bot") { + core.notice( + `Skipping contribution policy for bot PR #${pr.number} from @${pr.user.login}.`, + ); + return { + blocked: false, + number: pr.number, + summary: summarizeResult({ + pr, + skipped: true, + skipReason: `bot @${pr.user.login}`, + }), + skipped: true, + }; + } + if ( minimumAutomaticPullNumber != null && pr.number < minimumAutomaticPullNumber