add check for milestone not found

This commit is contained in:
Francisco Miamoto 2020-08-05 20:49:01 -03:00
parent 0faf52d759
commit bbce1ba755

View file

@ -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 {