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

Function commentKey

scripts/github-actions/post-review-comments.test.js:74–77  ·  view source on GitHub ↗
(rc)

Source from the content-addressed store, hash-verified

72// the same file succeeds. Mirrors the (path, line range) identity the bot uses
73// for incremental dedup and the idempotency check.
74function commentKey(rc) {
75 if (!rc) return "?";
76 return `${rc.path}|${rc.start_line != null ? rc.start_line : "-"}|${rc.line != null ? rc.line : "-"}`;
77}
78
79// Temporarily override env vars for a single (sync or async) test body, always
80// restoring originals afterwards. Used for retry/quota tests that need a

Calls

no outgoing calls

Tested by

no test coverage detected