fix: Dokploy git provider field names — giteaOwner/giteaRepository/giteaBranch (not owner/repository/branch)
saveGiteaProvider API expects gitea-prefixed fields: giteaOwner, giteaRepository, giteaBranch, giteaBuildPath, giteaId saveGitProvider API expects gitProvider-prefixed fields: gitProviderOwner, gitProviderRepository, gitProviderBranch, gitProviderBuildPath, gitProviderId saveGithubProvider API expects plain fields: owner, repository, branch, buildPath, githubId This was causing HTTP 400 on saveGiteaProvider during provisioning.
This commit is contained in:
1 parent
fdc348f06c
commit
e06916de22
1 file changed
+10
-11
+10
-11
@@ -142,11 +142,11 @@ export function createDokployClient(config: DokployConfig) {
|
||||
}): Promise<void> {
|
||||
await call('/application.saveGiteaProvider', {
|
||||
applicationId: input.applicationId,
|
||||
owner: input.owner,
|
||||
repository: input.repository,
|
||||
branch: input.branch,
|
||||
buildPath: input.buildPath ?? '/',
|
||||
id: input.id ?? null,
|
||||
giteaOwner: input.owner,
|
||||
giteaRepository: input.repository,
|
||||
giteaBranch: input.branch,
|
||||
giteaBuildPath: input.buildPath ?? '/',
|
||||
giteaId: input.id ?? null,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -160,11 +160,11 @@ export function createDokployClient(config: DokployConfig) {
|
||||
}): Promise<void> {
|
||||
await call('/application.saveGitProvider', {
|
||||
applicationId: input.applicationId,
|
||||
owner: input.owner ?? null,
|
||||
repository: input.repository ?? null,
|
||||
branch: input.branch ?? 'main',
|
||||
buildPath: input.buildPath ?? '/',
|
||||
id: input.id ?? null,
|
||||
gitProviderOwner: input.owner ?? null,
|
||||
gitProviderRepository: input.repository ?? null,
|
||||
gitProviderBranch: input.branch ?? 'main',
|
||||
gitProviderBuildPath: input.buildPath ?? '/',
|
||||
gitProviderId: input.id ?? null,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -185,7 +185,6 @@ export function createDokployClient(config: DokployConfig) {
|
||||
githubId: input.githubId ?? null,
|
||||
})
|
||||
}
|
||||
|
||||
async function saveBuildType(input: {
|
||||
applicationId: string
|
||||
buildType?: string
|
||||
|
||||
Reference in new issue
Block a user