MCPcopy Create free account
hub / github.com/SethGammon/Citadel / queueMergeCheck

Function queueMergeCheck

hooks_src/worktree-remove.js:112–124  ·  view source on GitHub ↗
(branch, worktree)

Source from the content-addressed store, hash-verified

110}
111
112function queueMergeCheck(branch, worktree) {
113 try {
114 const queueFile = path.join(PROJECT_ROOT, '.planning', 'telemetry', 'merge-check-queue.jsonl');
115 const entry = JSON.stringify({
116 event: 'worktree-removed',
117 timestamp: new Date().toISOString(),
118 branch,
119 worktree,
120 status: 'pending-merge-review',
121 });
122 fs.appendFileSync(queueFile, entry + '\n', 'utf8');
123 } catch { /* non-critical */ }
124}
125
126function cleanupScopeClaims(worktreeName) {
127 if (!worktreeName) return;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected