Skip to content

Commit

Permalink
feat(create_prs): sleep at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekbulawa committed Nov 18, 2024
1 parent 1a79b73 commit e47fa57
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/create_prs/create_prs.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ func run(c *cobra.Command, _ []string) {
skippedCount := 0
errorCount := 0
for _, repo := range dir.Repos {
if sleep > 0 {
logger.Successf("Sleeping for %s", sleep)
time.Sleep(sleep)
}

repoDirPath := path.Join("work", repo.OrgName, repo.RepoName) // i.e. work/org/repo

pushActivity := logger.StartActivity("Pushing changes in %s to origin", repo.FullRepoName)
Expand Down Expand Up @@ -135,6 +130,11 @@ func run(c *cobra.Command, _ []string) {
createPrActivity.EndWithSuccess()
doneCount++
}

if sleep > 0 {
logger.Successf("Sleeping for %s", sleep)
time.Sleep(sleep)
}
}

if errorCount == 0 {
Expand Down

0 comments on commit e47fa57

Please sign in to comment.