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

Function rootComment

scripts/github-actions/post-review-comments.js:1591–1593  ·  view source on GitHub ↗
(thread)

Source from the content-addressed store, hash-verified

1589// demonstrably ours and returns false — the fail-closed direction, since the
1590// cost is a stale thread left open rather than someone else's thread resolved.
1591function rootComment(thread) {
1592 return (thread && thread.root && thread.root.nodes && thread.root.nodes[0]) || null;
1593}
1594
1595function threadIsOurs(thread) {
1596 const root = rootComment(thread);

Callers 2

threadIsOursFunction · 0.85
shouldResolveThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected