Skip to content

Commit

Permalink
fix(plugins): fix project_mapping.table field (#7800) (#7802)
Browse files Browse the repository at this point in the history
Co-authored-by: Lynwee <1507509064@qq.com>
  • Loading branch information
github-actions[bot] and d4x1 authored Jul 31, 2024
1 parent 45add31 commit 37ca958
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions backend/plugins/pagerduty/api/blueprint_v200.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
}
}

Expand Down
6 changes: 3 additions & 3 deletions backend/plugins/trello/api/blueprint_v200.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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))
}
}

Expand Down

0 comments on commit 37ca958

Please sign in to comment.