Skip to content

Commit 6565091

Browse files
authored
Merge pull request #26 from diggerhq/fix/github-repos
Fix github repos list
2 parents 6ed7450 + 4154487 commit 6565091

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/CreateProjectForm.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ type CreateProjectFormProps = {
5656
export default function CreateProjectForm({ organizationId, repositories, teams, teamId }: CreateProjectFormProps) {
5757
const router = useRouter();
5858

59+
const githubAppSlug = process.env.NEXT_PUBLIC_GITHUB_APP_SLUG;
60+
5961
const { control, handleSubmit, watch, setValue, formState: { errors } } = useForm<CreateProjectFormData>({
6062
resolver: zodResolver(createProjectFormSchema),
6163
defaultValues: {
@@ -173,7 +175,7 @@ export default function CreateProjectForm({ organizationId, repositories, teams,
173175
<CardDescription className="text-sm text-muted-foreground">Choose the repository for your project</CardDescription>
174176
</div>
175177
<Link
176-
href={`https://github.com/apps/digger-cloud-next/installations/select_target?organization_id=${organizationId}`}
178+
href={`https://github.com/apps/${githubAppSlug}/installations/select_target?organization_id=${organizationId}`}
177179
onClick={(e) => e.stopPropagation()}
178180
target="_blank"
179181
rel="noopener noreferrer"

0 commit comments

Comments
 (0)