kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 39e2dfae265f26c8d6d888a560f50ab2d5d58b3f 19 lines 555 B view raw
1import { and, eq } from "drizzle-orm"; 2import db from "../../database"; 3import { githubIntegrationTable } from "../../database/schema"; 4 5async function getGithubIntegrationByRepositoryId( 6 repositoryOwner: string, 7 repositoryName: string, 8) { 9 const integration = await db.query.githubIntegrationTable.findFirst({ 10 where: and( 11 eq(githubIntegrationTable.repositoryOwner, repositoryOwner), 12 eq(githubIntegrationTable.repositoryName, repositoryName), 13 ), 14 }); 15 16 return integration; 17} 18 19export default getGithubIntegrationByRepositoryId;