#8 skip update is branch exist.

This commit is contained in:
Gorbunov Kirill Andreevich 2024-04-02 23:08:05 +03:00
parent 868fc519ce
commit 5e4d93cbe1

View File

@ -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))
}
}