MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / getShardPrefix

Function getShardPrefix

packages/backend/src/utils.ts:56–58  ·  view source on GitHub ↗
(orgId: number, repoId: number)

Source from the content-addressed store, hash-verified

54}
55
56export const getShardPrefix = (orgId: number, repoId: number) => {
57 return `${orgId}_${repoId}`;
58}
59
60export const getRepoIdFromShardFileName = (fileName: string): number | undefined => {
61 const match = fileName.match(/^(\d+)_(\d+)_/);

Callers 3

cleanupRepositoryMethod · 0.85
indexGitRepositoryFunction · 0.85
cleanupTempShardsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected