Merge pull request #258 from cli/blank-title

prevent graphql error
This commit is contained in:
Nate Smith 2020-01-28 10:21:11 -06:00 committed by GitHub
commit 25dc2b4a14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,6 +174,10 @@ func prCreate(cmd *cobra.Command, _ []string) error {
}
if action == SubmitAction {
if title == "" {
return fmt.Errorf("pull request title must not be blank")
}
params := map[string]interface{}{
"title": title,
"body": body,