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

Function commentKey

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

Source from the content-addressed store, hash-verified

58// the same file succeeds. Mirrors the (path, line range) identity the bot uses
59// for incremental dedup and the idempotency check.
60function commentKey(rc) {
61 if (!rc) return "?";
62 return `${rc.path}|${rc.start_line != null ? rc.start_line : "-"}|${rc.line != null ? rc.line : "-"}`;
63}
64
65// Temporarily override env vars for a single (sync or async) test body, always
66// restoring originals afterwards. Used for retry/quota tests that need a

Calls

no outgoing calls

Tested by

no test coverage detected