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

Function commentKey

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

Source from the content-addressed store, hash-verified

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

Calls

no outgoing calls

Tested by

no test coverage detected