MCPcopy Index your code
hub / github.com/coder/mux / mergeNotes

Function mergeNotes

src/node/services/tools/task_apply_git_patch.ts:92–98  ·  view source on GitHub ↗
(...notes: Array<string | undefined>)

Source from the content-addressed store, hash-verified

90}
91
92function mergeNotes(...notes: Array<string | undefined>): string | undefined {
93 const parts = notes
94 .map((note) => (typeof note === "string" ? note.trim() : ""))
95 .filter((note) => note.length > 0);
96
97 return parts.length > 0 ? parts.join("\n") : undefined;
98}
99
100async function tryRevParseHead(params: {
101 runtime: ToolConfiguration["runtime"];

Callers 3

resolvePatchPathFunction · 0.85
applyProjectPatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected