feat(archied): tell the chat when its task opens a pull request
This commit is contained in:
3 files changed
+19
-16
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user