Add background audits of the default branch's newest commit

This commit is contained in:
Ian Gulliver
2026-10-20 21:08:31 -07:00
parent 1d3c4576ff
commit 5823af6ff9
21 changed files with 745 additions and 357 deletions
+4
View File
@@ -189,6 +189,10 @@ func (m *Manager) tryPromptReady(ctx context.Context, taskID string, fromReview
return err
}
for _, r := range reviews {
if r.State == api.ReviewStateFailed && task.Background {
m.auditError(ctx, task, fmt.Sprintf("Review %q of snapshot %d failed: %s. The audit can't go on without you.", r.Stage, latest.N, r.Error))
return nil
}
if r.State != api.ReviewStateDone && r.State != api.ReviewStateSkipped {
return nil
}