Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: auto rollout applicable to open issues (#6178)

p0ny70b5e0c29db3
diff --git a/backend/runner/taskrun/scheduler.go b/backend/runner/taskrun/scheduler.go
index b9bda91097..918cfabf35 100644
--- a/backend/runner/taskrun/scheduler.go
+++ b/backend/runner/taskrun/scheduler.go
@@ -784,6 +784,9 @@ func (s *Scheduler) scheduleAutoApprovedTasks(ctx context.Context) error {
return err
}
if issue != nil {
+ if issue.Status != api.IssueOpen {
+ continue
+ }
approved, err := utils.CheckIssueApproved(issue)
if err != nil {
log.Warn("taskrun scheduler: failed to check if the issue is approved when scheduling auto-deployed tasks", zap.Int("taskID", task.ID), zap.Int("issueID", issue.UID), zap.Error(err))