Add background audits of the default branch's newest commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user