FIXED COMMENTS. TASK BACKLOG REFINEMENT ISSUE

This commit is contained in:
Ine Maria Nilssen Aanonsen
2026-03-06 21:04:58 +01:00
parent 68054f7409
commit e64950879d
25 changed files with 51 additions and 37 deletions

View File

@@ -56,6 +56,9 @@ func runCloseCmd(cmd *cobra.Command, args []string) error {
Title("Enter closing reason:").WithTheme(huh.ThemeBase()).Run(); err != nil {
return fmt.Errorf("error getting close reason: %w", err)
}
if closeReason == "" {
return fmt.Errorf("closing reason cannot be empty when selecting 'Other'")
}
}
err = app.Issues.CloseIssue(cmd.Context(), closeID, closeReason, "", "")