Skip to content

Commit 78d2707

Browse files
committed
don't stop work on error extracting jira ticket
1 parent bf8d347 commit 78d2707

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/description/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ func run(ctx context.Context) error {
8282
fmt.Println("Adding Jira ticket")
8383
id, err := jira.ExtractJiraTicketID(*pr.Title)
8484
if err != nil {
85-
return err
85+
fmt.Printf("Error extracting Jira ticket ID: %v \n", err)
86+
} else {
87+
completion = fmt.Sprintf("### JIRA ticket: [%s](%s) \n\n%s", id, jira.GenerateJiraTicketURL(opts.JiraURL, id), completion)
8688
}
87-
completion = fmt.Sprintf("### JIRA ticket: [%s](%s) \n\n%s", id, jira.GenerateJiraTicketURL(opts.JiraURL, id), completion)
8889
}
8990

9091
if opts.Test {

0 commit comments

Comments
 (0)