MCPcopy Create free account
hub / github.com/alibaba/open-code-review / isBotComment

Function isBotComment

scripts/github-actions/post-review-comments.js:1383–1389  ·  view source on GitHub ↗
(comment, botLogin)

Source from the content-addressed store, hash-verified

1381}
1382
1383function isBotComment(comment, botLogin) {
1384 if (!comment || !comment.user) return false;
1385 if (botLogin && comment.user.login === botLogin) return true;
1386 // GITHUB_TOKEN posts as "github-actions[bot]"; GitHub Apps post as the app.
1387 const login = comment.user.login || "";
1388 return /github-actions\[bot\]$/i.test(login) || (botLogin != null && login === botLogin);
1389}
1390
1391// Incremental overlap test. The current comment is considered a duplicate of
1392// an existing bot comment (and thus skipped) when they target the same path

Callers 1

runPostReviewCommentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected