X Tutup
Skip to content

Commit 25dc2b4

Browse files
authored
Merge pull request cli#258 from cli/blank-title
prevent graphql error
2 parents d753f7e + 9025838 commit 25dc2b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

command/pr_create.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ func prCreate(cmd *cobra.Command, _ []string) error {
174174
}
175175

176176
if action == SubmitAction {
177+
if title == "" {
178+
return fmt.Errorf("pull request title must not be blank")
179+
}
180+
177181
params := map[string]interface{}{
178182
"title": title,
179183
"body": body,

0 commit comments

Comments
 (0)
X Tutup