Skip to content

Commit

Permalink
Move reopened incrementer so that it only occurs on failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Aug 15, 2023
1 parent f8f4a8f commit 471f787
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 @@ -195,8 +195,8 @@ func main() {
}

if i.GetState() == "closed" {
reopened++
if !t.Pass && t.Enabled {
reopened++
log.Printf("Reopening #%d (%s) ...", i.GetNumber(), i.GetTitle())
if !*dryRunFlag {
if err := issue.Update(ctx, gc, org, project, i.GetNumber(), ft); err != nil {
Expand Down Expand Up @@ -232,5 +232,5 @@ func main() {
log.Printf("%d issues created", created)
log.Printf("%d issues updated", updated)
log.Printf("%d issues closed", closed)
log.Printf("%d issues opened", reopened)
log.Printf("%d issues reopened", reopened)
}

0 comments on commit 471f787

Please sign in to comment.