From 38c9e978c75ee7b9c8bde0fc4a01722084af7e5e Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Tue, 2 Apr 2024 23:08:05 +0300 Subject: [PATCH] #8 skip update is branch exist. --- cmd/pkgdashcli/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index efba1bf..66dde15 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -271,6 +271,9 @@ func Execute(ctx context.Context, gitSource source.SourceControl, mvs map[string logger.Debugf(ctx, fmt.Sprintf("Start close for %s", path)) for _, branch := range cfg.Branches { if err := gitSource.RequestClose(ctx, branch, path); err != nil { + if strings.Contains(err.Error(), "already exists") { + continue + } logger.Fatal(ctx, fmt.Sprintf("failed to close pr: %v", err)) } }