Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion internal/cmd/issue/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@
cr.SubtaskField = handle
}

return client.CreateV2(&cr)
resp, err := client.CreateV2(&cr)
if err != nil {
fmt.Printf("\nCreation failed. Text dump follows.\nSummary:\n--------\n%s\n\nBody:\n-----\n%s\n", params.Summary, params.Body)
return "", err

Check failure on line 142 in internal/cmd/issue/create/create.go

View workflow job for this annotation

GitHub Actions / tests

cannot use "" (untyped string constant) as *jira.CreateResponse value in return statement

Check failure on line 142 in internal/cmd/issue/create/create.go

View workflow job for this annotation

GitHub Actions / tests

cannot use "" (untyped string constant) as *jira.CreateResponse value in return statement
}
return resp.Key, nil

Check failure on line 144 in internal/cmd/issue/create/create.go

View workflow job for this annotation

GitHub Actions / tests

cannot use resp.Key (variable of type string) as *jira.CreateResponse value in return statement) (typecheck)

Check failure on line 144 in internal/cmd/issue/create/create.go

View workflow job for this annotation

GitHub Actions / tests

cannot use resp.Key (variable of type string) as *jira.CreateResponse value in return statement (typecheck)
}()

cmdutil.ExitIfError(err)
Expand Down
Loading