MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / setProjectRepoOrigin

Function setProjectRepoOrigin

desktop/thread-state-db/project-writes.ts:81–90  ·  view source on GitHub ↗
(projectId: string, originUrl: string | null)

Source from the content-addressed store, hash-verified

79}
80
81export function setProjectRepoOrigin(projectId: string, originUrl: string | null) {
82 const db = getThreadStateDatabase()
83 db.prepare(
84 `
85 UPDATE projects
86 SET repo_origin_url = ?, repo_origin_checked = 1, updated_at = CURRENT_TIMESTAMP
87 WHERE cwd = ?
88 `,
89 ).run(originUrl, projectId)
90}
91
92export function setProjectGitOpsMode(projectId: string, mode: 'commit' | 'commit-push' | null) {
93 const db = getThreadStateDatabase()

Callers 6

importProjectsFunction · 0.90
project-actions.tsFile · 0.90

Calls 3

getThreadStateDatabaseFunction · 0.90
runMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected