MCPcopy Index your code
hub / github.com/21st-dev/1code / trackCommitCreated

Function trackCommitCreated

src/main/lib/analytics.ts:333–343  ·  view source on GitHub ↗
(data: {
  workspaceId: string
  filesChanged: number
  mode: "worktree" | "local"
})

Source from the content-addressed store, hash-verified

331 * Track commit created
332 */
333export function trackCommitCreated(data: {
334 workspaceId: string
335 filesChanged: number
336 mode: "worktree" | "local"
337}) {
338 capture("commit_created", {
339 workspace_id: data.workspaceId,
340 files_changed: data.filesChanged,
341 mode: data.mode,
342 })
343}
344
345/**
346 * Track sub-chat created

Callers

nothing calls this directly

Calls 1

captureFunction · 0.70

Tested by

no test coverage detected