X Tutup
Skip to content

Commit bbce1ba

Browse files
committed
add check for milestone not found
1 parent 0faf52d commit bbce1ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/queries_issue.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ func IssueList(client *Client, repo ghrepo.Interface, state string, labels []str
265265
break
266266
}
267267
}
268+
269+
if variables["milestone"] == nil {
270+
return nil, fmt.Errorf("no milestone found with title: %q", milestoneString)
271+
}
268272
}
269273

270274
var response struct {

0 commit comments

Comments
 (0)
X Tutup