You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ly...@apache.org on 2024/07/19 07:09:31 UTC
(incubator-devlake) branch main updated: fix(gitlab): register `ConvertIssueAssigneeMeta` (#7763)
This is an automated email from the ASF dual-hosted git repository.
lynwee 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 bab285691 fix(gitlab): register `ConvertIssueAssigneeMeta` (#7763)
bab285691 is described below
commit bab285691f56339cc122ce8e5b740f881a67d910
Author: Lynwee <15...@qq.com>
AuthorDate: Fri Jul 19 15:09:27 2024 +0800
fix(gitlab): register `ConvertIssueAssigneeMeta` (#7763)
---
backend/plugins/gitlab/tasks/issue_assignee_convertor.go | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/backend/plugins/gitlab/tasks/issue_assignee_convertor.go b/backend/plugins/gitlab/tasks/issue_assignee_convertor.go
index be40d9675..f4a70065d 100644
--- a/backend/plugins/gitlab/tasks/issue_assignee_convertor.go
+++ b/backend/plugins/gitlab/tasks/issue_assignee_convertor.go
@@ -29,12 +29,18 @@ import (
"github.com/apache/incubator-devlake/plugins/gitlab/models"
)
+func init() {
+ RegisterSubtaskMeta(&ConvertIssueAssigneeMeta)
+}
+
var ConvertIssueAssigneeMeta = plugin.SubTaskMeta{
Name: "convert Issue Assignees",
EntryPoint: ConvertIssueAssignee,
EnabledByDefault: true,
Description: "Convert tool layer table _tool_gitlab_issue_assignees into domain layer table issue_assignees",
DomainTypes: []string{plugin.DOMAIN_TYPE_TICKET},
+ DependencyTables: []string{models.GitlabIssueAssignee{}.TableName()},
+ Dependencies: []*plugin.SubTaskMeta{&ExtractApiIssuesMeta},
}
func ConvertIssueAssignee(taskCtx plugin.SubTaskContext) errors.Error {