prevent graphql error
This commit is contained in:
parent
5a59a8b117
commit
bfd1d804a8
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue