This is an automated email from the ASF dual-hosted git repository.

likyh 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 d49b815f7 fix(dora): change refdiff subtask name (#3963)
d49b815f7 is described below

commit d49b815f70fb0179fe5975568ae4ba43f1166082
Author: Warren Chen <[email protected]>
AuthorDate: Mon Dec 19 11:44:27 2022 +0800

    fix(dora): change refdiff subtask name (#3963)
---
 plugins/dora/impl/impl.go                | 2 +-
 plugins/dora/impl/impl_test.go           | 2 +-
 plugins/gitlab/models/project.go         | 2 +-
 services/blueprint_makeplan_v200_test.go | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugins/dora/impl/impl.go b/plugins/dora/impl/impl.go
index a3815e06b..82fdf870e 100644
--- a/plugins/dora/impl/impl.go
+++ b/plugins/dora/impl/impl.go
@@ -117,7 +117,7 @@ func (plugin Dora) 
MakeMetricPluginPipelinePlanV200(projectName string, options
        stageDeploymentCommitdiff := core.PipelineStage{
                {
                        Plugin:   "refdiff",
-                       Subtasks: []string{"calculateDeploymentDiffs"},
+                       Subtasks: 
[]string{"calculateProjectDeploymentCommitsDiff"},
                        Options: map[string]interface{}{
                                "projectName": projectName,
                        },
diff --git a/plugins/dora/impl/impl_test.go b/plugins/dora/impl/impl_test.go
index 7f66d112e..7ebdb7618 100644
--- a/plugins/dora/impl/impl_test.go
+++ b/plugins/dora/impl/impl_test.go
@@ -39,7 +39,7 @@ func TestMakeMetricPluginPipelinePlanV200(t *testing.T) {
                core.PipelineStage{
                        {
                                Plugin:   "refdiff",
-                               Subtasks: []string{"calculateDeploymentDiffs"},
+                               Subtasks: 
[]string{"calculateProjectDeploymentCommitsDiff"},
                                Options:  map[string]interface{}{"projectName": 
projectName},
                        },
                },
diff --git a/plugins/gitlab/models/project.go b/plugins/gitlab/models/project.go
index 313f904be..f158ee08e 100644
--- a/plugins/gitlab/models/project.go
+++ b/plugins/gitlab/models/project.go
@@ -38,7 +38,7 @@ type GitlabProject struct {
        StarCount               int    `json:"starCount" 
mapstructure:"StarCount"`
        ForkedFromProjectId     int    `json:"forkedFromProjectId" 
mapstructure:"forkedFromProjectId"`
        ForkedFromProjectWebUrl string `json:"forkedFromProjectWebUrl" 
mapstructure:"forkedFromProjectWebUrl" gorm:"type:varchar(255)"`
-       HttpUrlToRepo           string `json:"http_url_to_repo" 
gorm:"varchar(255)"`
+       HttpUrlToRepo           string `json:"httpUrlToRepo" 
gorm:"varchar(255)"`
 
        CreatedDate      time.Time  `json:"createdDate" mapstructure:"-"`
        UpdatedDate      *time.Time `json:"updatedDate" mapstructure:"-"`
diff --git a/services/blueprint_makeplan_v200_test.go 
b/services/blueprint_makeplan_v200_test.go
index 50ed56722..ef4b89984 100644
--- a/services/blueprint_makeplan_v200_test.go
+++ b/services/blueprint_makeplan_v200_test.go
@@ -61,7 +61,7 @@ func TestMakePlanV200(t *testing.T) {
        doraName := "TestMakePlanV200-dora"
        doraOutputPlan := core.PipelinePlan{
                {
-                       {Plugin: "refdiff", Subtasks: 
[]string{"calculateDeploymentDiffs"}, Options: 
map[string]interface{}{"projectName": projectName}},
+                       {Plugin: "refdiff", Subtasks: 
[]string{"calculateProjectDeploymentCommitsDiff"}, Options: 
map[string]interface{}{"projectName": projectName}},
                        {Plugin: doraName},
                },
        }

Reply via email to