commit
25dc2b4a14
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("pull request title must not be blank")
|
||||
}
|
||||
|
||||
params := map[string]interface{}{
|
||||
"title": title,
|
||||
"body": body,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue