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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user