Skip to content

Commit

Permalink
Do not set PR labels if labels string is null (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-hura authored Dec 19, 2024
1 parent eca032f commit e067905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pullRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func createPullRequest(client *github.Client, ctx *context.Context, repositoryNa
log.Fatal(err)
}
}
if labels != "" {
if labels != "" && labels != "null" {
fmt.Println("Adding labels: " + labels)
addPullRequestLabels(client, ctx, repositoryName, repositoryOwner, strconv.Itoa(*pr.Number), labels)
}
Expand Down

0 comments on commit e067905

Please sign in to comment.