#8 skip path if branch exists #12

Merged
vtolstov merged 90 commits from kgorbunov/pkgdash:master into master 2024-04-03 08:28:17 +03:00
Showing only changes of commit 5e4d93cbe1 - Show all commits

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