This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 933d9cc7a fix: unable to trigger blueprints with webhooks only (#7148)
933d9cc7a is described below
commit 933d9cc7aa750cc28628b1e863a54ac7037272fe
Author: Klesh Wong <[email protected]>
AuthorDate: Fri Mar 8 17:04:59 2024 +0800
fix: unable to trigger blueprints with webhooks only (#7148)
---
backend/server/services/blueprint.go | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/backend/server/services/blueprint.go
b/backend/server/services/blueprint.go
index 8e693ab11..2f7ddb51a 100644
--- a/backend/server/services/blueprint.go
+++ b/backend/server/services/blueprint.go
@@ -320,21 +320,21 @@ func createPipelineByBlueprint(blueprint
*models.Blueprint, syncPolicy *models.S
newPipeline.SyncPolicy = blueprint.SyncPolicy
// if the plan is empty, we should not create the pipeline
- var shouldCreatePipeline bool
- for _, stage := range plan {
- for _, task := range stage {
- switch task.Plugin {
- case "org", "refdiff", "dora":
- default:
- if !plan.IsEmpty() {
- shouldCreatePipeline = true
- }
- }
- }
- }
- if !shouldCreatePipeline {
- return nil, ErrEmptyPlan
- }
+ // var shouldCreatePipeline bool
+ // for _, stage := range plan {
+ // for _, task := range stage {
+ // switch task.Plugin {
+ // case "org", "refdiff", "dora":
+ // default:
+ // if !plan.IsEmpty() {
+ // shouldCreatePipeline = true
+ // }
+ // }
+ // }
+ // }
+ // if !shouldCreatePipeline {
+ // return nil, ErrEmptyPlan
+ // }
pipeline, err := CreatePipeline(&newPipeline, false)
// Return all created tasks to the User
if err != nil {