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

Function newCommentId

scripts/github-actions/post-review-comments.js:2184–2186  ·  view source on GitHub ↗
(runTag)

Source from the content-addressed store, hash-verified

2182// silently drop the second). Embedded in the comment body as an HTML comment
2183// so getPostedCommentIds can match it back on retry.
2184function newCommentId(runTag) {
2185 return `ocr-${runTag}-${crypto.randomBytes(8).toString("hex")}`;
2186}
2187
2188// ---- Badge + publication policy helpers (#478) ----
2189//

Callers 2

runPostReviewCommentsFunction · 0.85
testNewCommentIdFormatFunction · 0.85

Calls

no outgoing calls

Tested by 1

testNewCommentIdFormatFunction · 0.68