0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-22 06:23:30 +02:00

Fix enable/disable

This commit is contained in:
Lunny Xiao 2025-10-23 14:53:59 -07:00
parent 7240b2b144
commit 60bf918934
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -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)