deriveNextAction maps approvalStatus to the next agent action.
(approvalStatus string)
| 478 | |
| 479 | // deriveNextAction maps approvalStatus to the next agent action. |
| 480 | func deriveNextAction(approvalStatus string) string { |
| 481 | switch approvalStatus { |
| 482 | case "APPROVED", "SKIPPED": |
| 483 | return nextActionCreateRollout |
| 484 | case "REJECTED": |
| 485 | return nextActionFixSQLRetry |
| 486 | default: // PENDING, CHECKING, or unknown |
| 487 | return nextActionApproveIssue |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | // planChecksHaveErrors returns true if plan checks completed with errors or failed. |
| 492 | func planChecksHaveErrors(info *PlanCheckInfo) bool { |