Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/danielroe/unsight.dev. Detect duplicate GitHub issues, areas of concern and more across related rep unsight.dev
Something went wrong. Try again.
12345678910111213141516171819202122232425262728export interface InstallationRepo { id: number node_id: string full_name: string private: boolean}
export type RepoMetadata = InstallationRepo & { indexed: number}
export const currentIndexVersion = 4
export async function getMetadataForRepo(owner: string, name: string) { const repo = await useDrizzle().select().from(tables.repos).where(eq(tables.repos.full_name, `${owner}/${name}`.toLowerCase())).get() if (repo) { return { ...repo, private: !!repo.private, } }}
export async function removeMetadataForRepo(owner: string, name: string) { await useDrizzle().delete(tables.repos).where(eq(tables.repos.full_name, `${owner}/${name}`.toLowerCase())) clearRepoIdCache(owner, name)}