From 5e4d93cbe1057b4e294cab2c102f5ce4c4af2491 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 7939b2e..739b91e 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -270,6 +270,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)) } }