From 8c7472f490d8d752868913220d2eb7d7374b1c0e Mon Sep 17 00:00:00 2001 From: Steve Dodier-Lazaro Date: Mon, 9 Mar 2026 13:33:45 +0100 Subject: [PATCH 1/2] Allow the GitHub Actions bot to commit to release branches --- scripts/dangerfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/dangerfile.js b/scripts/dangerfile.js index 27abd980000f..4ec8909802f5 100644 --- a/scripts/dangerfile.js +++ b/scripts/dangerfile.js @@ -147,10 +147,14 @@ const checkManualTestingSection = (body) => { const checkTargetBranch = () => { const targetBranch = danger.github.pr.base.ref; + const author = danger.github.pr.author; const authorAssociation = danger.github.pr.author_association; - // Only check for non-team members (not OWNER or MEMBER) - if (['OWNER', 'MEMBER'].includes(authorAssociation)) { + // Only check for non-team members (not OWNER, MEMBER) and skip GitHub Actions bot + if ( + ['OWNER', 'MEMBER'].includes(authorAssociation) || + (author.login === 'github-actions[bot]' && author.type === 'Bot') + ) { return; } From 25302445b8304ae9821ad4a661ae508dfa88f526 Mon Sep 17 00:00:00 2001 From: Steve Dodier-Lazaro Date: Mon, 9 Mar 2026 14:28:41 +0100 Subject: [PATCH 2/2] Use user instead of author --- scripts/dangerfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dangerfile.js b/scripts/dangerfile.js index 4ec8909802f5..9468d255ed35 100644 --- a/scripts/dangerfile.js +++ b/scripts/dangerfile.js @@ -147,7 +147,7 @@ const checkManualTestingSection = (body) => { const checkTargetBranch = () => { const targetBranch = danger.github.pr.base.ref; - const author = danger.github.pr.author; + const author = danger.github.pr.user; const authorAssociation = danger.github.pr.author_association; // Only check for non-team members (not OWNER, MEMBER) and skip GitHub Actions bot