a73x

c9b4fe2a

Show commit SHA in TUI event-detail pane for commit-link events

alex emery   2026-04-12 10:40

`format_event_detail` was lumping `IssueCommitLink` into the no-op group
with `IssueReopen | PatchMerge | Merge`. Those variants have no payload,
but `IssueCommitLink` carries a commit SHA that the dashboard's
event-detail pane should display.

Give `IssueCommitLink` its own arm that pushes a `Commit: <full sha>`
line. The earlier "code quality" cleanup that moved this into the no-op
group was premature: the issue-detail page renders linked commits, but
the event-detail pane is a distinct view and needs its own rendering.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

diff --git a/src/tui/widgets.rs b/src/tui/widgets.rs
index a7a883e..a456357 100644
--- a/src/tui/widgets.rs
+++ b/src/tui/widgets.rs
@@ -112,10 +112,10 @@ pub(crate) fn format_event_detail(oid: &Oid, event: &crate::event::Event) -> Str
        Action::IssueUnassign { assignee } => {
            detail.push_str(&format!("\nRemoved Assignee: {}\n", assignee));
        }
        Action::IssueReopen
        | Action::PatchMerge
        | Action::Merge
        | Action::IssueCommitLink { .. } => {}
        Action::IssueCommitLink { commit } => {
            detail.push_str(&format!("\nCommit: {}\n", commit));
        }
        Action::IssueReopen | Action::PatchMerge | Action::Merge => {}
    }

    detail