mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-30 08:00:14 +00:00
fix: ignore bot activity when checking for meaningful issue interaction
This commit is contained in:
13
.github/scripts/gemini-lifecycle-manager.cjs
vendored
13
.github/scripts/gemini-lifecycle-manager.cjs
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user