You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2023/08/18 02:28:34 UTC
[incubator-devlake] branch main updated: fix: zentao parse JSON error (#5905)
This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 3aa962949 fix: zentao parse JSON error (#5905)
3aa962949 is described below
commit 3aa9629496af199865e5df958d59a714d1ef306e
Author: Liang Zhang <li...@merico.dev>
AuthorDate: Fri Aug 18 10:28:29 2023 +0800
fix: zentao parse JSON error (#5905)
---
backend/plugins/zentao/models/bug_commits.go | 13 ++-----------
backend/plugins/zentao/models/story_commits.go | 13 ++-----------
backend/plugins/zentao/models/task_commits.go | 13 ++-----------
3 files changed, 6 insertions(+), 33 deletions(-)
diff --git a/backend/plugins/zentao/models/bug_commits.go b/backend/plugins/zentao/models/bug_commits.go
index ce78cfde4..905fcb2b4 100644
--- a/backend/plugins/zentao/models/bug_commits.go
+++ b/backend/plugins/zentao/models/bug_commits.go
@@ -112,17 +112,8 @@ type ZentaoBugRepoCommitsRes struct {
GitService string `json:"gitService"`
Project string `json:"project"`
} `json:"repo"`
- Path string `json:"path"`
- Type string `json:"type"`
- Changes struct {
- TestYaml struct {
- Action string `json:"action"`
- Kind string `json:"kind"`
- OldPath string `json:"oldPath"`
- View string `json:"view"`
- Diff string `json:"diff"`
- } `json:"/test.yaml"`
- } `json:"changes"`
+ Path string `json:"path"`
+ Type string `json:"type"`
RepoID string `json:"repoID"`
BranchID bool `json:"branchID"`
ObjectID string `json:"objectID"`
diff --git a/backend/plugins/zentao/models/story_commits.go b/backend/plugins/zentao/models/story_commits.go
index 937738149..b49828d15 100644
--- a/backend/plugins/zentao/models/story_commits.go
+++ b/backend/plugins/zentao/models/story_commits.go
@@ -112,17 +112,8 @@ type ZentaoStoryRepoCommitsRes struct {
GitService string `json:"gitService"`
Project string `json:"project"`
} `json:"repo"`
- Path string `json:"path"`
- Type string `json:"type"`
- Changes struct {
- TestYaml struct {
- Action string `json:"action"`
- Kind string `json:"kind"`
- OldPath string `json:"oldPath"`
- View string `json:"view"`
- Diff string `json:"diff"`
- } `json:"/test.yaml"`
- } `json:"changes"`
+ Path string `json:"path"`
+ Type string `json:"type"`
RepoID string `json:"repoID"`
BranchID bool `json:"branchID"`
ObjectID string `json:"objectID"`
diff --git a/backend/plugins/zentao/models/task_commits.go b/backend/plugins/zentao/models/task_commits.go
index f297358b5..2b396b8cf 100644
--- a/backend/plugins/zentao/models/task_commits.go
+++ b/backend/plugins/zentao/models/task_commits.go
@@ -112,17 +112,8 @@ type ZentaoTaskRepoCommitsRes struct {
GitService string `json:"gitService"`
Project string `json:"project"`
} `json:"repo"`
- Path string `json:"path"`
- Type string `json:"type"`
- Changes struct {
- TestYaml struct {
- Action string `json:"action"`
- Kind string `json:"kind"`
- OldPath string `json:"oldPath"`
- View string `json:"view"`
- Diff string `json:"diff"`
- } `json:"/test.yaml"`
- } `json:"changes"`
+ Path string `json:"path"`
+ Type string `json:"type"`
RepoID string `json:"repoID"`
BranchID bool `json:"branchID"`
ObjectID string `json:"objectID"`