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

Function isBotComment

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

Source from the content-addressed store, hash-verified

642}
643
644function isBotComment(comment, botLogin) {
645 if (!comment || !comment.user) return false;
646 if (botLogin && comment.user.login === botLogin) return true;
647 // GITHUB_TOKEN posts as "github-actions[bot]"; GitHub Apps post as the app.
648 const login = comment.user.login || "";
649 return /github-actions\[bot\]$/i.test(login) || (botLogin != null && login === botLogin);
650}
651
652// Incremental overlap test. The current comment is considered a duplicate of
653// 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