From d3782cd6720e8cbf8c59d8cf89ab7629002daf58 Mon Sep 17 00:00:00 2001 From: Christian Weichel Date: Thu, 8 Sep 2022 15:18:25 +0000 Subject: [PATCH] Fix # in branch names fixes #164 --- pkg/werft/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/werft/service.go b/pkg/werft/service.go index 1a010b3..ba4567e 100644 --- a/pkg/werft/service.go +++ b/pkg/werft/service.go @@ -250,6 +250,7 @@ func (srv *Service) StartJob2(ctx context.Context, req *v1.StartJobRequest2) (re refname = strings.ReplaceAll(refname, "/", "-") refname = strings.ReplaceAll(refname, "_", "-") refname = strings.ReplaceAll(refname, "@", "-") + refname = strings.ReplaceAll(refname, "#", "-") refname = strings.ToLower(refname) if refname == "" { // we did not compute a sensible refname - use moniker