From 37ca9589f27939b398e023529e7470d60050f531 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 31 Jul 2024 17:54:43 +0800 Subject: [PATCH] fix(plugins): fix project_mapping.table field (#7800) (#7802) Co-authored-by: Lynwee <1507509064@qq.com> --- backend/plugins/pagerduty/api/blueprint_v200.go | 4 ++-- backend/plugins/trello/api/blueprint_v200.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/plugins/pagerduty/api/blueprint_v200.go b/backend/plugins/pagerduty/api/blueprint_v200.go index 34dc32302f1..2e088b4fd5b 100644 --- a/backend/plugins/pagerduty/api/blueprint_v200.go +++ b/backend/plugins/pagerduty/api/blueprint_v200.go @@ -20,8 +20,8 @@ package api import ( "github.com/apache/incubator-devlake/core/errors" coreModels "github.com/apache/incubator-devlake/core/models" - "github.com/apache/incubator-devlake/core/models/domainlayer/devops" "github.com/apache/incubator-devlake/core/models/domainlayer/didgen" + "github.com/apache/incubator-devlake/core/models/domainlayer/ticket" "github.com/apache/incubator-devlake/core/plugin" "github.com/apache/incubator-devlake/core/utils" "github.com/apache/incubator-devlake/helpers/pluginhelper/api" @@ -96,7 +96,7 @@ func makeScopesV200( id := idgen.Generate(connection.ID, scope.Id) if utils.StringsContains(scopeConfig.Entities, plugin.DOMAIN_TYPE_TICKET) { - scopes = append(scopes, devops.NewCicdScope(id, scope.Name)) + scopes = append(scopes, ticket.NewBoard(id, scope.Name)) } } diff --git a/backend/plugins/trello/api/blueprint_v200.go b/backend/plugins/trello/api/blueprint_v200.go index 4e6cd792972..18fd5132ad5 100644 --- a/backend/plugins/trello/api/blueprint_v200.go +++ b/backend/plugins/trello/api/blueprint_v200.go @@ -18,7 +18,7 @@ limitations under the License. package api import ( - "github.com/apache/incubator-devlake/core/models/domainlayer/devops" + "github.com/apache/incubator-devlake/core/models/domainlayer/ticket" "github.com/apache/incubator-devlake/plugins/trello/models" "github.com/apache/incubator-devlake/plugins/trello/tasks" @@ -98,9 +98,9 @@ func makeScopesV200( scope, scopeConfig := scopeDetail.Scope, scopeDetail.ScopeConfig id := idgen.Generate(connection.ID, scope.BoardId) - // add cicd_scope to scopes + // add boards to scopes if utils.StringsContains(scopeConfig.Entities, plugin.DOMAIN_TYPE_TICKET) { - scopes = append(scopes, devops.NewCicdScope(id, scope.Name)) + scopes = append(scopes, ticket.NewBoard(id, scope.Name)) } }