This is an automated email from the ASF dual-hosted git repository.
warren 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 94927aa56 fix(github): update domain types for subtasks (#3820)
94927aa56 is described below
commit 94927aa567938bc96cd8b7aa9b4df7f7813f42df
Author: Warren Chen <[email protected]>
AuthorDate: Wed Nov 30 19:46:42 2022 +0800
fix(github): update domain types for subtasks (#3820)
---
plugins/github/tasks/repo_collector.go | 2 +-
plugins/github/tasks/repo_convertor.go | 2 +-
plugins/github/tasks/repo_extractor.go | 2 +-
plugins/github_graphql/tasks/repo_collector.go | 2 +-
services/blueprint_makeplan_v100.go | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugins/github/tasks/repo_collector.go
b/plugins/github/tasks/repo_collector.go
index ebfc565b9..3055c888f 100644
--- a/plugins/github/tasks/repo_collector.go
+++ b/plugins/github/tasks/repo_collector.go
@@ -37,7 +37,7 @@ var CollectApiRepoMeta = core.SubTaskMeta{
EntryPoint: CollectApiRepositories,
Required: true,
Description: "Collect repositories data from Github api",
- DomainTypes: []string{core.DOMAIN_TYPE_CODE},
+ DomainTypes: []string{core.DOMAIN_TYPE_CODE, core.DOMAIN_TYPE_TICKET,
core.DOMAIN_TYPE_CICD, core.DOMAIN_TYPE_CODE_REVIEW, core.DOMAIN_TYPE_CROSS},
}
func CollectApiRepositories(taskCtx core.SubTaskContext) errors.Error {
diff --git a/plugins/github/tasks/repo_convertor.go
b/plugins/github/tasks/repo_convertor.go
index 2a1eb8747..fc7278914 100644
--- a/plugins/github/tasks/repo_convertor.go
+++ b/plugins/github/tasks/repo_convertor.go
@@ -40,7 +40,7 @@ var ConvertRepoMeta = core.SubTaskMeta{
EntryPoint: ConvertRepo,
EnabledByDefault: true,
Description: "Convert tool layer table github_repos into domain
layer table repos and boards",
- DomainTypes: []string{core.DOMAIN_TYPE_CODE},
+ DomainTypes: []string{core.DOMAIN_TYPE_CODE,
core.DOMAIN_TYPE_TICKET, core.DOMAIN_TYPE_CICD, core.DOMAIN_TYPE_CODE_REVIEW,
core.DOMAIN_TYPE_CROSS},
}
func ConvertRepo(taskCtx core.SubTaskContext) errors.Error {
diff --git a/plugins/github/tasks/repo_extractor.go
b/plugins/github/tasks/repo_extractor.go
index 59ed2d362..c680a5a65 100644
--- a/plugins/github/tasks/repo_extractor.go
+++ b/plugins/github/tasks/repo_extractor.go
@@ -31,7 +31,7 @@ var ExtractApiRepoMeta = core.SubTaskMeta{
EntryPoint: ExtractApiRepositories,
Required: true,
Description: "Extract raw Repositories data into tool layer table
github_repos",
- DomainTypes: []string{core.DOMAIN_TYPE_CODE},
+ DomainTypes: []string{core.DOMAIN_TYPE_CODE, core.DOMAIN_TYPE_TICKET,
core.DOMAIN_TYPE_CICD, core.DOMAIN_TYPE_CODE_REVIEW, core.DOMAIN_TYPE_CROSS},
}
type ApiRepoResponse GithubApiRepo
diff --git a/plugins/github_graphql/tasks/repo_collector.go
b/plugins/github_graphql/tasks/repo_collector.go
index 8588a4719..59592496c 100644
--- a/plugins/github_graphql/tasks/repo_collector.go
+++ b/plugins/github_graphql/tasks/repo_collector.go
@@ -60,7 +60,7 @@ var CollectRepoMeta = core.SubTaskMeta{
EntryPoint: CollectRepo,
EnabledByDefault: true,
Description: "Collect Repo data from GithubGraphql api",
- DomainTypes: []string{core.DOMAIN_TYPE_CODE},
+ DomainTypes: []string{core.DOMAIN_TYPE_CODE,
core.DOMAIN_TYPE_TICKET, core.DOMAIN_TYPE_CICD, core.DOMAIN_TYPE_CODE_REVIEW,
core.DOMAIN_TYPE_CROSS},
}
func CollectRepo(taskCtx core.SubTaskContext) errors.Error {
diff --git a/services/blueprint_makeplan_v100.go
b/services/blueprint_makeplan_v100.go
index 4c8be942e..c8bb2227f 100644
--- a/services/blueprint_makeplan_v100.go
+++ b/services/blueprint_makeplan_v100.go
@@ -69,7 +69,7 @@ func GeneratePlanJsonV100(settings *models.BlueprintSettings)
(core.PipelinePlan
plan := core.PipelineStage{
&core.PipelineTask{
Plugin: "dora",
- Subtasks: []string{"calculateChangeLeadTime",
"ConnectIssueDeploy"},
+ Subtasks: []string{"calculateChangeLeadTime",
"ConnectIncidentToDeployment"},
Options: doraRules,
},
}