Skip to content

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

fix: condition (#3997)

p0nybb082946d95b
diff --git a/server/runner/taskrun/scheduler.go b/server/runner/taskrun/scheduler.go
index 73830bd3bb..aff08c7bbd 100644
--- a/server/runner/taskrun/scheduler.go
+++ b/server/runner/taskrun/scheduler.go
@@ -1429,7 +1429,7 @@ func (s *Scheduler) onTaskPatched(ctx context.Context, issue *api.Issue, taskPat
// there isn't a pendingApproval task
// we need to set issue.AssigneeNeedAttention to false for UI workflow.
- if taskPatched.Status == api.TaskPending && issue.Project.WorkflowType == api.UIWorkflow && stageTaskHasPendingApproval {
+ if taskPatched.Status == api.TaskPending && issue.Project.WorkflowType == api.UIWorkflow && !stageTaskHasPendingApproval {
needAttention := false
patch := &api.IssuePatch{
ID: issue.ID,