diff --git a/command/pr_create.go b/command/pr_create.go index 279a19e65..f37bf4bc1 100644 --- a/command/pr_create.go +++ b/command/pr_create.go @@ -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,