MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / hasAnchorBodyEdit

Function hasAnchorBodyEdit

website/src/lib/pr-insights.ts:47–54  ·  view source on GitHub ↗
(diff: string)

Source from the content-addressed store, hash-verified

45}
46
47function hasAnchorBodyEdit(diff: string): boolean {
48 const lines = diff.split("\n").slice(1);
49 for (const line of lines) {
50 if (/^\+def\s/.test(line) || /^\+class\s/.test(line)) return false;
51 if (/^[-+]\s{4,}/.test(line)) return true;
52 }
53 return false;
54}
55
56function isLikelyNoiseNode(node: PRNode, directNodes: PRNode[]): boolean {
57 if (node.prZone !== "direct") return false;

Callers 1

isLikelyNoiseNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected