From bfd1d804a8e59c5611ef0d36813564702d13e706 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 27 Jan 2020 16:00:11 -0600 Subject: [PATCH] prevent graphql error --- command/pr_create.go | 4 ++++ 1 file changed, 4 insertions(+) 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,