Skip to content

Commit

Permalink
fix: prints only unlabeled PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszmajsak committed Apr 15, 2020
1 parent 86bec42 commit acc16e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ func FindAssociatedPRs(client *githubv4.Client, repo []string, matchingCommit Ma
if unlabeledPRs {
_, _ = fmt.Fprint(os.Stderr, "#### Found unlabeled PRs\n\n")
for i := range withoutDuplicates {
_, _ = fmt.Fprintf(os.Stderr, "* %s\n", withoutDuplicates[i].Permalink)
pr := withoutDuplicates[i]
if len(pr.Labels) == 0 {
_, _ = fmt.Fprintf(os.Stderr, "* %s\n", pr.Permalink)
}
}
}
return withoutDuplicates
Expand Down

0 comments on commit acc16e6

Please sign in to comment.