From 1381781d85dfdd43c06128125fd86483aa53b548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leszek=20Bu=C5=82awa?= Date: Mon, 16 Dec 2024 16:09:08 +0100 Subject: [PATCH] feat(create_prs): sleep at the end (#152) * feat(create_prs): sleep at the end * feat(create_prs): omit sleep at first pr --------- Co-authored-by: Sebastien Le Digabel --- cmd/create_prs/create_prs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/create_prs/create_prs.go b/cmd/create_prs/create_prs.go index d88c765..0eb3244 100644 --- a/cmd/create_prs/create_prs.go +++ b/cmd/create_prs/create_prs.go @@ -85,8 +85,8 @@ func run(c *cobra.Command, _ []string) { doneCount := 0 skippedCount := 0 errorCount := 0 - for _, repo := range dir.Repos { - if sleep > 0 { + for i, repo := range dir.Repos { + if i > 0 && sleep > 0 { logger.Successf("Sleeping for %s", sleep) time.Sleep(sleep) }