diff --git a/apps/dokploy/components/dashboard/settings/git/github/edit-github-provider.tsx b/apps/dokploy/components/dashboard/settings/git/github/edit-github-provider.tsx index 40687a1b..62463d0d 100644 --- a/apps/dokploy/components/dashboard/settings/git/github/edit-github-provider.tsx +++ b/apps/dokploy/components/dashboard/settings/git/github/edit-github-provider.tsx @@ -30,6 +30,9 @@ const Schema = z.object({ name: z.string().min(1, { message: "Name is required", }), + appName: z.string().min(1, { + message: "App Name is required", + }), }); type Schema = z.infer; @@ -55,6 +58,7 @@ export const EditGithubProvider = ({ githubId }: Props) => { const form = useForm({ defaultValues: { name: "", + appName: "", }, resolver: zodResolver(Schema), }); @@ -62,6 +66,7 @@ export const EditGithubProvider = ({ githubId }: Props) => { useEffect(() => { form.reset({ name: github?.gitProvider.name || "", + appName: github?.githubAppName || "", }); }, [form, isOpen]); @@ -70,6 +75,7 @@ export const EditGithubProvider = ({ githubId }: Props) => { githubId, name: data.name || "", gitProviderId: github?.gitProviderId || "", + githubAppName: data.appName || "", }) .then(async () => { await utils.gitProvider.getAll.invalidate(); @@ -124,6 +130,22 @@ export const EditGithubProvider = ({ githubId }: Props) => { )} /> + ( + + App Name + + + + + + )} + />