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

Function updateGitProvider

packages/server/src/services/git-provider.ts:32–44  ·  view source on GitHub ↗
(
	gitProviderId: string,
	input: Partial<GitProvider>,
)

Source from the content-addressed store, hash-verified

30};
31
32export const updateGitProvider = async (
33 gitProviderId: string,
34 input: Partial<GitProvider>,
35) => {
36 return await db
37 .update(gitProvider)
38 .set({
39 ...input,
40 })
41 .where(eq(gitProvider.gitProviderId, gitProviderId))
42 .returning()
43 .then((response) => response[0]);
44};
45
46// Returns true if the user can edit the git source configuration of an existing
47// deploy that is connected to the given provider.

Callers 4

gitea.tsFile · 0.90
gitlab.tsFile · 0.90
github.tsFile · 0.90
git-provider.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected