Skip to content

Commit

Permalink
fix: zentao parse JSON error (#5905) (#5906)
Browse files Browse the repository at this point in the history
Co-authored-by: Liang Zhang <[email protected]>
  • Loading branch information
github-actions[bot] and mindlesscloud authored Aug 18, 2023
1 parent 2637aab commit 2f4f5eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 33 deletions.
13 changes: 2 additions & 11 deletions backend/plugins/zentao/models/bug_commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
13 changes: 2 additions & 11 deletions backend/plugins/zentao/models/story_commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
13 changes: 2 additions & 11 deletions backend/plugins/zentao/models/task_commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 2f4f5eb

Please sign in to comment.