fix(show): display external_ref field in text output (#899)

The external_ref field was stored correctly and visible in --json
output, but missing from the human-readable text display.

Added External Ref line after other metadata fields in both daemon
and direct mode paths. Added tests for external_ref display.
This commit is contained in:
Jeff McDonald
2026-01-04 17:30:04 -08:00
committed by GitHub
parent c41d3e2b5e
commit 053d005956
2 changed files with 120 additions and 0 deletions

View File

@@ -231,6 +231,9 @@ var showCmd = &cobra.Command{
if issue.DeferUntil != nil {
fmt.Printf("Deferred until: %s\n", issue.DeferUntil.Format("2006-01-02 15:04"))
}
if issue.ExternalRef != nil && *issue.ExternalRef != "" {
fmt.Printf("External Ref: %s\n", *issue.ExternalRef)
}
// Show compaction status
if issue.CompactionLevel > 0 {
@@ -457,6 +460,9 @@ var showCmd = &cobra.Command{
if issue.DeferUntil != nil {
fmt.Printf("Deferred until: %s\n", issue.DeferUntil.Format("2006-01-02 15:04"))
}
if issue.ExternalRef != nil && *issue.ExternalRef != "" {
fmt.Printf("External Ref: %s\n", *issue.ExternalRef)
}
// Show compaction status footer
if issue.CompactionLevel > 0 {