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

Function isBotComment

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

Source from the content-addressed store, hash-verified

970}
971
972function isBotComment(comment, botLogin) {
973 if (!comment || !comment.user) return false;
974 if (botLogin && comment.user.login === botLogin) return true;
975 // GITHUB_TOKEN posts as "github-actions[bot]"; GitHub Apps post as the app.
976 const login = comment.user.login || "";
977 return /github-actions\[bot\]$/i.test(login) || (botLogin != null && login === botLogin);
978}
979
980// Incremental overlap test. The current comment is considered a duplicate of
981// 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