You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2024/03/12 12:06:30 UTC
(incubator-devlake) branch release-v0.21 updated: fix: unable to trigger blueprints with webhooks only (#7148) (#7149)
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch release-v0.21
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/release-v0.21 by this push:
new 89a845947 fix: unable to trigger blueprints with webhooks only (#7148) (#7149)
89a845947 is described below
commit 89a8459473c850d9762a9590a6a151241fbc3c7b
Author: github-actions[bot] <41...@users.noreply.github.com>
AuthorDate: Tue Mar 12 20:06:25 2024 +0800
fix: unable to trigger blueprints with webhooks only (#7148) (#7149)
Co-authored-by: Klesh Wong <zh...@merico.dev>
---
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 {