From c8b84901bd6a6151006413abf7d0c361ef059dcd Mon Sep 17 00:00:00 2001 From: Ksenia Bobrova Date: Wed, 10 Dec 2025 16:54:02 +0000 Subject: [PATCH] Trim leading slash in path parameter --- pkg/github/repositories.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/github/repositories.go b/pkg/github/repositories.go index dbf24e8e3..ff81484f2 100644 --- a/pkg/github/repositories.go +++ b/pkg/github/repositories.go @@ -402,6 +402,8 @@ func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperF if err != nil { return nil, nil, fmt.Errorf("failed to get GitHub client: %w", err) } + + path = strings.TrimPrefix(path, "/") fileContent, resp, err := client.Repositories.CreateFile(ctx, owner, repo, path, opts) if err != nil { return ghErrors.NewGitHubAPIErrorResponse(ctx,