Skip to content

Commit

Permalink
fix: boards.type (apache#5559)
Browse files Browse the repository at this point in the history
* fix: boards.type

* fix: the lint warnings
  • Loading branch information
mindlesscloud committed Jun 25, 2023
1 parent ee73505 commit 5298dac
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions backend/plugins/gitlab/tasks/pipeline_commit_convertor.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"github.com/apache/incubator-devlake/core/models/domainlayer/didgen"
"github.com/apache/incubator-devlake/core/plugin"
helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
"github.com/apache/incubator-devlake/plugins/gitlab/models"
gitlabModels "github.com/apache/incubator-devlake/plugins/gitlab/models"
)

Expand Down Expand Up @@ -67,7 +66,7 @@ func ConvertPipelineCommits(taskCtx plugin.SubTaskContext) errors.Error {
Input: cursor,
RawDataSubTaskArgs: helper.RawDataSubTaskArgs{
Ctx: taskCtx,
Params: models.GitlabApiParams{
Params: gitlabModels.GitlabApiParams{
ConnectionId: data.Options.ConnectionId,
ProjectId: data.Options.ProjectId,
},
Expand Down
3 changes: 1 addition & 2 deletions backend/plugins/gitlab/tasks/pipeline_convertor.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import (
"github.com/apache/incubator-devlake/core/models/domainlayer/didgen"
"github.com/apache/incubator-devlake/core/plugin"
helper "github.com/apache/incubator-devlake/helpers/pluginhelper/api"
"github.com/apache/incubator-devlake/plugins/gitlab/models"
gitlabModels "github.com/apache/incubator-devlake/plugins/gitlab/models"
)

Expand Down Expand Up @@ -65,7 +64,7 @@ func ConvertPipelines(taskCtx plugin.SubTaskContext) errors.Error {
Input: cursor,
RawDataSubTaskArgs: helper.RawDataSubTaskArgs{
Ctx: taskCtx,
Params: models.GitlabApiParams{
Params: gitlabModels.GitlabApiParams{
ConnectionId: data.Options.ConnectionId,
ProjectId: data.Options.ProjectId,
},
Expand Down
2 changes: 2 additions & 0 deletions backend/plugins/jira/api/blueprint_v200.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ func makeScopesV200(
Id: didgen.NewDomainIdGenerator(&models.JiraBoard{}).Generate(jiraBoard.ConnectionId, jiraBoard.BoardId),
},
Name: jiraBoard.Name,
Url: jiraBoard.Self,
Type: jiraBoard.Type,
}
scopes = append(scopes, domainBoard)
}
Expand Down
2 changes: 1 addition & 1 deletion backend/plugins/zentao/tasks/project_convertor.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func ConvertProjects(taskCtx plugin.SubTaskContext) errors.Error {
Name: toolProject.Name,
Description: toolProject.Description,
CreatedDate: toolProject.OpenedDate.ToNullableTime(),
Type: toolProject.Type + "/" + toolProject.ProjectType,
Type: "scrum",
Url: fmt.Sprintf("/project-index-%d.html", data.Options.ProjectId),
}
results := make([]interface{}, 0)
Expand Down

0 comments on commit 5298dac

Please sign in to comment.