prevent graphql error

This commit is contained in:
vilmibm 2020-01-27 16:00:11 -06:00
parent 5a59a8b117
commit bfd1d804a8

View file

@ -174,6 +174,10 @@ func prCreate(cmd *cobra.Command, _ []string) error {
}
if action == SubmitAction {
if title == "" {
return fmt.Errorf("Can't create a PR without a title.")
}
params := map[string]interface{}{
"title": title,
"body": body,