@@ -463,7 +463,6 @@ func updateConfirm(m model) (tea.Model, tea.Cmd) {
463463 t := m .tickets [i ]
464464
465465 // Attempt Jira creation if not dry-run and we have a client.
466- // Pass the assignee (if any) to the CreateTicketInJira function.
467466 if ! m .DryRun && m .JiraClient != nil {
468467 issueKey , err := jirautils .CreateTicketInJira (m .JiraClient , t .Summary , t .Description , m .JiraProject , m .JiraIssueType , t .Assignee )
469468 if err != nil {
@@ -476,8 +475,9 @@ func updateConfirm(m model) (tea.Model, tea.Cmd) {
476475 m .LocalDB .Set (t .TestPackage , t .TestName , issueKey )
477476 }
478477 } else {
479- log .Info ().Msgf ("[Dry Run] Would create Jira issue: %q" , t .Summary )
480478 t .Confirmed = true
479+ // Set a dummy ticket key for testing purposes in dry-run mode.
480+ t .ExistingJiraKey = "DRYRUN-1234"
481481 }
482482 m .tickets [i ] = t
483483 m .confirmed ++
@@ -531,7 +531,16 @@ func (m model) View() string {
531531 ticketURL = fmt .Sprintf ("https://%s/browse/%s" , domain , m .tickets [m .index ].ExistingJiraKey )
532532 }
533533 ticketStyle := lipgloss .NewStyle ().Foreground (lipgloss .Color ("11" )).Align (lipgloss .Left )
534- return ticketStyle .Render ("Ticket created:" ) + ticketURL + "\n \n Press any key to continue..."
534+
535+ return fmt .Sprintf (
536+ "\n %s\n \n %s\n %s\n \n %s\n %s\n \n %s" ,
537+ ticketStyle .Render ("Ticket created!" ),
538+ lipgloss .NewStyle ().Bold (true ).Foreground (lipgloss .Color ("10" )).Render ("Summary:" ),
539+ m .tickets [m .index ].Summary ,
540+ lipgloss .NewStyle ().Bold (true ).Foreground (lipgloss .Color ("10" )).Render ("URL:" ),
541+ ticketURL ,
542+ "Press any key to continue..." ,
543+ )
535544 }
536545
537546 if m .mode == "promptExisting" {
0 commit comments