Skip to content

Commit 2592447

Browse files
authored
Dont pass milestone if not provided (#1318)
1 parent 6f50407 commit 2592447

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/github/issues.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,10 @@ func CreateIssue(ctx context.Context, client *github.Client, owner string, repo
10041004
Body: github.Ptr(body),
10051005
Assignees: &assignees,
10061006
Labels: &labels,
1007-
Milestone: &milestoneNum,
1007+
}
1008+
1009+
if milestoneNum != 0 {
1010+
issueRequest.Milestone = &milestoneNum
10081011
}
10091012

10101013
if issueType != "" {

0 commit comments

Comments
 (0)