feat(archied): tell the chat when its task opens a pull request

This commit is contained in:
sam committed 2026-10-25 02:39:34 +11:00
1 parent bee4bbc82b
commit 55e68f536b
3 files changed
+19 -16

No files matched your search

+3
View File
@@ -106,6 +106,9 @@ func outcomeText(t *task.Task) string {
if kind := taskstate.ApprovalKind(t.Status, t.ReviewGate); kind != "" {
return fmt.Sprintf("Task %d (%s) needs your approval of its %s. Approve or reject it on the task page.", t.ID, t.Title, approvalNoun[kind])
}
if t.Status == task.StatusPROpen {
return fmt.Sprintf("Task %d (%s) opened PR #%d for review.", t.ID, t.Title, t.PRNumber)
}
text := fmt.Sprintf("Task %d (%s) finished: %s", t.ID, t.Title, t.Status)
if t.PRNumber > 0 {
text += fmt.Sprintf(", PR #%d", t.PRNumber)