diff --git a/api/server/handlers/gitinstallation/get_contents.go b/api/server/handlers/gitinstallation/get_contents.go index 80c37808f9..7413e552c9 100644 --- a/api/server/handlers/gitinstallation/get_contents.go +++ b/api/server/handlers/gitinstallation/get_contents.go @@ -66,6 +66,7 @@ func (c *GithubGetContentsHandler) ServeHTTP(w http.ResponseWriter, r *http.Requ telemetry.AttributeKV{Key: "repo-owner", Value: owner}, telemetry.AttributeKV{Key: "repo-name", Value: name}, telemetry.AttributeKV{Key: "repo-branch", Value: branch}, + telemetry.AttributeKV{Key: "repo-path", Value: request.Dir}, ) repoContentOptions := github.RepositoryContentGetOptions{} diff --git a/dashboard/src/lib/hooks/useGithubContents.ts b/dashboard/src/lib/hooks/useGithubContents.ts index 27b478b68b..b45702d3c8 100644 --- a/dashboard/src/lib/hooks/useGithubContents.ts +++ b/dashboard/src/lib/hooks/useGithubContents.ts @@ -22,6 +22,10 @@ const githubContentsValidator = z.discriminatedUnion("type", [ path: z.string(), type: z.literal("dir"), }), + z.object({ + path: z.string(), + type: z.literal("symlink"), + }), ]); type GithubContents = z.infer; diff --git a/dashboard/src/main/home/app-dashboard/validate-apply/build-settings/FileSelector.tsx b/dashboard/src/main/home/app-dashboard/validate-apply/build-settings/FileSelector.tsx index 5538c01c6c..c7cd4d8eac 100644 --- a/dashboard/src/main/home/app-dashboard/validate-apply/build-settings/FileSelector.tsx +++ b/dashboard/src/main/home/app-dashboard/validate-apply/build-settings/FileSelector.tsx @@ -100,6 +100,17 @@ const FileSelector: React.FC = ({ {relativePath} )) + .with({ type: "symlink" }, (content) => ( + ({})} + isHeaderItem={false} + isFileSelectable={false} + > + + {relativePath} + + )) .exhaustive(); } )}