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

Function rootComment

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

Source from the content-addressed store, hash-verified

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

Callers 2

threadIsOursFunction · 0.85
shouldResolveThreadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected