[None][infra] Ignore comments from bots and CI accounts (#9929)

Signed-off-by: Kanghwan Jang <861393+karljang@users.noreply.github.com>
This commit is contained in:
Kanghwan 2025-12-11 17:20:51 -08:00 committed by GitHub
parent 4f6d4da035
commit 98c68c195b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,8 +20,16 @@ jobs:
with:
script: |
const commenter = context.payload.comment.user.login;
const commenterType = context.payload.comment.user.type;
const label = 'waiting for feedback';
// Ignore bots and CI accounts
const ignoredAccounts = ['tensorrt-cicd'];
if (commenterType === 'Bot' || ignoredAccounts.includes(commenter)) {
console.log(`Ignoring comment from ${commenter} (type: ${commenterType}). Skipping.`);
return;
}
// Handle both issue_comment and pull_request_review_comment events
// context.issue.number is only available for issue_comment events
const issueNumber = context.issue?.number || context.payload.pull_request?.number;