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:
parent
7240b2b144
commit
60bf918934
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user