From 60bf9189346707617bf442306ed0795bee04a819 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 23 Oct 2025 14:53:59 -0700 Subject: [PATCH] Fix enable/disable --- services/projects/workflow_notifier.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/projects/workflow_notifier.go b/services/projects/workflow_notifier.go index 77959d8287a..614ea87c0af 100644 --- a/services/projects/workflow_notifier.go +++ b/services/projects/workflow_notifier.go @@ -238,6 +238,10 @@ func (*workflowNotifier) PullRequestReview(ctx context.Context, pr *issues_model // fireIssueWorkflowWithColumn fires a workflow for an issue with a specific column ID // This is used for ItemColumnChanged events where we need to check the target column func fireIssueWorkflowWithColumn(ctx context.Context, workflow *project_model.Workflow, issue *issues_model.Issue, columnID int64) { + if !workflow.Enabled { + return + } + // Load issue labels for labels filter if err := issue.LoadLabels(ctx); err != nil { log.Error("LoadLabels: %v", err) @@ -300,6 +304,10 @@ func fireIssueWorkflowWithColumn(ctx context.Context, workflow *project_model.Wo } func fireIssueWorkflow(ctx context.Context, workflow *project_model.Workflow, issue *issues_model.Issue) { + if !workflow.Enabled { + return + } + // Load issue labels for labels filter if err := issue.LoadLabels(ctx); err != nil { log.Error("LoadLabels: %v", err)