Skip to content

Commit

Permalink
fix: don't send empty labels
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhem committed Mar 22, 2022
1 parent c8258fb commit 80df33b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,11 @@ func main() {
// Create Issue

issueRequest := &github.IssueRequest{
Title: &title,
Body: &body,
Labels: &labels,
Title: &title,
Body: &body,
}
if len(labels) != 0 {
issueRequest.Labels = &labels
}
createdIssues = append(createdIssues, issueRequest)
} else {
Expand Down

0 comments on commit 80df33b

Please sign in to comment.