From e713e30fe7d8eb237eb03c11acbbfd52efabc0be Mon Sep 17 00:00:00 2001 From: maxtanh Date: Wed, 13 May 2026 20:43:48 -0700 Subject: [PATCH] feat: post issue comment when reviewer approves a plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously, the reviewer only posted a comment on rejection. This makes the approval path equally visible — operators and issue authors can see why the reviewer approved and that the gate was evaluated, without needing to check orchestrator logs. --- internal/orchestrator/job.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/orchestrator/job.go b/internal/orchestrator/job.go index 7815ca0..47b2ade 100644 --- a/internal/orchestrator/job.go +++ b/internal/orchestrator/job.go @@ -377,6 +377,9 @@ func (o *Orchestrator) routeAuto(ctx context.Context, job *types.Job, issue type log.Info("reviewer_completed", "decision", dec.Decision) if dec.Decision == "approve" { + reasons := strings.Join(dec.Reasons, "; ") + approveBody := fmt.Sprintf("[symphony-go] ✅ reviewer approved the plan: %s", reasons) + _, _ = o.deps.GitHub.PostIssueComment(ctx, issue.Number, approveBody) job.ApprovalPath = types.ApprovalPathReviewer _ = o.saveJob(job) layout := workspace.LayoutFor(o.deps.WorkspaceRoot, issue.Number, workspace.SanitizeSlug(issue.Title))