MCPcopy
hub / github.com/opentrace/opentrace / buildChangeProperties

Function buildChangeProperties

ui/src/pr/indexer.ts:46–60  ·  view source on GitHub ↗
(file: PRFileDiff)

Source from the content-addressed store, hash-verified

44}
45
46function buildChangeProperties(file: PRFileDiff): Record<string, unknown> {
47 const props: Record<string, unknown> = {
48 status: file.status,
49 additions: file.additions,
50 deletions: file.deletions,
51 path: file.path,
52 };
53 if (file.patch) {
54 props.patch = truncatePatch(file.patch);
55 }
56 if (file.previous_path) {
57 props.previous_path = file.previous_path;
58 }
59 return props;
60}
61
62export async function indexPRIntoGraph(
63 store: GraphStore,

Callers 1

indexPRIntoGraphFunction · 0.85

Calls 1

truncatePatchFunction · 0.85

Tested by

no test coverage detected