fix(automation): prevent label-enforcer loop by ignoring all bots (#16746)

Co-authored-by: Sehoon Shon <sshon@google.com>
This commit is contained in:
Bryan Morgan
2026-01-15 10:50:36 -05:00
committed by GitHub
parent a8631a109e
commit d545a3b614

View File

@@ -39,7 +39,7 @@ jobs:
const labelName = context.payload.label.name;
// Skip if the change was made by a bot to avoid infinite loops
if (username === 'github-actions[bot]') {
if (username === 'github-actions[bot]' || username === 'gemini-cli[bot]' || username.endsWith('[bot]')) {
core.info('Change made by a bot. Skipping.');
return;
}