add check for milestone not found
This commit is contained in:
parent
0faf52d759
commit
bbce1ba755
1 changed files with 4 additions and 0 deletions
|
|
@ -265,6 +265,10 @@ func IssueList(client *Client, repo ghrepo.Interface, state string, labels []str
|
|||
break
|
||||
}
|
||||
}
|
||||
|
||||
if variables["milestone"] == nil {
|
||||
return nil, fmt.Errorf("no milestone found with title: %q", milestoneString)
|
||||
}
|
||||
}
|
||||
|
||||
var response struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue