Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-09-30 01:29:34 +03:00
parent 8fb72df400
commit 4e217eaa8d

View File

@ -220,7 +220,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules.
logger.Fatalf(ctx, "failed to create repo branch: %v", err) logger.Fatalf(ctx, "failed to create repo branch: %v", err)
} }
if err = repo.Push(&git.PushOptions{Auth: &httpauth.TokenAuth{Token: envTOKEN}}); err != nil { if err = repo.Push(&git.PushOptions{Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN}}); err != nil {
logger.Fatalf(ctx, "failed to push repo branch: %v", err) logger.Fatalf(ctx, "failed to push repo branch: %v", err)
} }