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/31 08:30:48 UTC
(incubator-devlake) branch fix-project-mappings created (now ef016fc6c)
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a change to branch fix-project-mappings
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
at ef016fc6c fix(plugins): fix project_mapping.table field
This branch includes the following new commits:
new ef016fc6c fix(plugins): fix project_mapping.table field
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(incubator-devlake) 01/01: fix(plugins): fix project_mapping.table field
Posted by ly...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lynwee pushed a commit to branch fix-project-mappings
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit ef016fc6c46ef709e31e71fd5ab0f86bda53425b
Author: d4x1 <15...@qq.com>
AuthorDate: Wed Jul 31 16:30:26 2024 +0800
fix(plugins): fix project_mapping.table field
---
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 34dc32302..2e088b4fd 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 4e6cd7929..18fd5132a 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))
}
}