MCPcopy Create free account
hub / github.com/agent-tower/core / assertFullCommitSha

Function assertFullCommitSha

packages/server/src/services/workspace.service.ts:271–279  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

269 };
270}
271
272function isUniqueConstraintError(error: unknown): boolean {
273 return typeof error === 'object'
274 && error !== null
275 && 'code' in error
276 && (error as { code?: string }).code === 'P2002';
277}
278
279function branchFromOptions(workspaceId: string, options: NormalizedCreateWorkspaceOptions): string {
280 if (options.branchName) {
281 return options.branchName;
282 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected