feat(daemon): record an approving review on the task's timeline

This commit is contained in:
sam committed 2026-10-05 20:56:13 +11:00
1 parent e084c55fcc
commit bfebdec1bf
6 files changed
+41 -8

No files matched your search

+1
View File
@@ -25,6 +25,7 @@ const taskKinds = new Set([
"pr_closed",
"binding_started",
"step_retried",
"review_approved",
"human_approved",
"human_rejected",
"human_rereviewed",
+4
View File
@@ -121,6 +121,10 @@ export function describeTimelineEvent(ev: TaskEvent = {}): TimelineLine {
// Condition (d): the two provenance kinds render as one human line. The
// captured payload is rendered by its own panel, never dumped into the
// timeline, so these cases name what was recorded and nothing more.
if (ev.kind === "review_approved") {
const pr = text(data.pr_number);
return { title: "Pull request approved", detail: [text(data.author), pr && `#${pr}`].filter(Boolean).join(" · ") };
}
if (ev.kind === "step_retried") {
return {
title: `Attempt ${text(data.attempt)} of ${text(data.of)} failed: ${ev.stage || "step"}`,