Skip to content

Commit

Permalink
Don't get authors from API if dry run flag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sidsprasad committed Jan 18, 2024
1 parent 8262da8 commit 4174a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,15 @@ func main() {
svc.wg.Add(1)
go svc.openNewIssues(issueMap, comments)

if env.assignFromBlame {
if env.assignFromBlame && !env.dryRun {
svc.wg.Add(1)
go svc.retrieveNewIssueAssignees(issueMap, comments)
}

log.Printf("Waiting for issues management to finish")
svc.wg.Wait()

if env.assignFromBlame && len(svc.newIssuesMap) > 0 {
if env.assignFromBlame && !env.dryRun && len(svc.newIssuesMap) > 0 {
svc.assignNewIssues()
}

Expand Down

0 comments on commit 4174a5d

Please sign in to comment.