From fc8c1bee0c6b6ad09489d1141d00253094995ae6 Mon Sep 17 00:00:00 2001 From: Coco Sheng Date: Wed, 20 May 2026 17:20:19 -0400 Subject: [PATCH] fix: ignore bot activity when checking for meaningful issue interaction --- .github/scripts/gemini-lifecycle-manager.cjs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/scripts/gemini-lifecycle-manager.cjs b/.github/scripts/gemini-lifecycle-manager.cjs index 4c06d446d7..43c5f207f6 100644 --- a/.github/scripts/gemini-lifecycle-manager.cjs +++ b/.github/scripts/gemini-lifecycle-manager.cjs @@ -242,7 +242,9 @@ module.exports = async ({ github, context, core }) => { const isBot = actor.includes('[bot]') || actor.includes('github-actions'); - // Explicit whitelist of meaningful events + if (isBot) return false; + + // Explicit whitelist of meaningful events for humans if ( [ 'commented', @@ -250,15 +252,10 @@ module.exports = async ({ github, context, core }) => { 'connected', 'reopened', 'assigned', + 'labeled', + 'unlabeled', ].includes(e.event) ) { - // If a human commented, or ANYONE (even a bot) linked a PR, it's meaningful - if (e.event === 'commented' && isBot) return false; - return true; - } - - // If a human explicitly added or removed a label, it's meaningful - if (['labeled', 'unlabeled'].includes(e.event) && !isBot) { return true; }