dosubot[bot] commented on issue #7877:
URL:
https://github.com/apache/incubator-devlake/issues/7877#issuecomment-2286676109
<!-- Answer -->
The error you're encountering indicates that the structure of the `plan`
field in your blueprint configuration is incorrect. Specifically, it seems that
one of the elements in the `plan` array is expected to be a map (object) but is
instead a string.
Here's a corrected version of your JSON configuration:
```json
{
"id": 10,
"name": "GHEDev-Blueprint",
"plan": [
[
{
"plugin": "org",
"subtasks": [
"setProjectMapping"
],
"options": {
"projectMappings": [
{
"projectName": "GHEDev",
"scopes": [
{
"rowId": "github:GithubRepo:1:7345",
"table": "repos"
},
{
"rowId": "github:GithubRepo:1:7345",
"table": "cicd_scopes"
},
{
"rowId": "github:GithubRepo:1:7345",
"table": "boards"
}
]
}
]
}
}
],
[
{
"plugin": "github",
"subtasks": [
"Convert Releases",
"Convert Repos",
"Extract Comments",
"Extract Events",
"Extract Issues",
"Extract Milestones",
"Extract PR Review Comments",
"Extract Pull Requests",
"Extract Users",
"Extract Workflow Runs",
"Convert Issue Assignees",
"Convert Issue Comments",
"Convert Issue Labels",
"Convert Issues",
"Convert Milestones",
"Convert PR Labels",
"Convert Pull Requests",
"Convert Workflow Runs",
"Enrich PR Issues",
"Convert PR Issues",
"Extract Jobs",
"Extract PR Commits",
"Extract PR Reviews",
"Convert Jobs",
"Convert PR Comments",
"Convert PR Commits",
"Convert PR Reviews",
"Extract User Org",
"Convert Users"
],
"options": {
"connectionId": 1,
"fullName": "INFServices/terraform-base",
"githubId": 7345,
"name": "INFServices/terraform-base"
}
}
],
[
{
"plugin": "dora",
"subtasks": [
"generateDeployments",
"generateDeploymentCommits",
"enrichPrevSuccessDeploymentCommits"
],
"options": {
"projectName": "GHEDev"
}
}
],
[
{
"plugin": "refdiff",
"subtasks": [
"calculateDeploymentCommitsDiff"
],
"options": {
"projectName": "GHEDev"
}
}
],
[
{
"plugin": "dora",
"subtasks": [
"calculateChangeLeadTime",
"ConnectIncidentToDeployment"
],
"options": {
"projectName": "GHEDev"
}
}
],
[
{
"plugin": "gitextractor",
"options": {
"url": "https://github.com/apache/incubator-devlake.git",
"repoId": "github:GithubRepo:384111310"
}
}
],
[
{
"plugin": "customize",
"options": {
"transformationRules": [
{
"table": "commit_files",
"rawDataTable": "_raw_gitlab_api_commit_files",
"rawDataParams": "{\"ConnectionId\":1,\"ProjectId\":123}",
"mapping": {
"x_file_path": "file_path",
"x_commit_sha": "commit_sha",
"x_change_type": "change_type"
}
}
]
}
}
]
],
"skipOnFail": true
}
```
Ensure that each element within the `plan` array is a map (object) with the
required fields (`plugin`, `subtasks`, `options`). This should resolve the
decoding error you're encountering
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/bitbucket/api/blueprint_v200.go)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]