MCPcopy
hub / github.com/Dokploy/dokploy / findGithubById

Function findGithubById

packages/server/src/services/github.ts:49–65  ·  view source on GitHub ↗
(githubId: string)

Source from the content-addressed store, hash-verified

47};
48
49export const findGithubById = async (githubId: string) => {
50 const githubProviderResult = await db.query.github.findFirst({
51 where: eq(github.githubId, githubId),
52 with: {
53 gitProvider: true,
54 },
55 });
56
57 if (!githubProviderResult) {
58 throw new TRPCError({
59 code: "NOT_FOUND",
60 message: "Github Provider not found",
61 });
62 }
63
64 return githubProviderResult;
65};
66
67export const updateGithub = async (
68 githubId: string,

Callers 10

cloneGithubRepositoryFunction · 0.90
getGithubRepositoriesFunction · 0.90
getGithubBranchesFunction · 0.90
handlerFunction · 0.90
github.tsFile · 0.90
issueCommentExistsFunction · 0.85
updateIssueCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected