This is an automated email from the ASF dual-hosted git repository.
abeizn 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 e88576bb7 fix(zentao): remove unused change field (#6065)
e88576bb7 is described below
commit e88576bb772eac717192279106f82832cb5e4fd6
Author: Lynwee <[email protected]>
AuthorDate: Tue Sep 12 19:27:09 2023 +0800
fix(zentao): remove unused change field (#6065)
---
backend/plugins/zentao/models/bug_commits.go | 4 +---
backend/plugins/zentao/models/story_commits.go | 4 +---
backend/plugins/zentao/models/task_commits.go | 4 +---
3 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/backend/plugins/zentao/models/bug_commits.go
b/backend/plugins/zentao/models/bug_commits.go
index 32bad3120..3666d03d1 100644
--- a/backend/plugins/zentao/models/bug_commits.go
+++ b/backend/plugins/zentao/models/bug_commits.go
@@ -72,9 +72,7 @@ type ZentaoBugRepoCommitsRes struct {
Committer string `json:"committer"`
Time string `json:"time"`
Comment string `json:"comment"`
- Change struct {
- } `json:"change"`
- Commit string `json:"commit"`
+ Commit string `json:"commit"`
} `json:"log"`
Repo struct {
ID string `json:"id"`
diff --git a/backend/plugins/zentao/models/story_commits.go
b/backend/plugins/zentao/models/story_commits.go
index a10823319..8a1280c65 100644
--- a/backend/plugins/zentao/models/story_commits.go
+++ b/backend/plugins/zentao/models/story_commits.go
@@ -72,9 +72,7 @@ type ZentaoStoryRepoCommitsRes struct {
Committer string `json:"committer"`
Time string `json:"time"`
Comment string `json:"comment"`
- Change struct {
- } `json:"change"`
- Commit string `json:"commit"`
+ Commit string `json:"commit"`
} `json:"log"`
Repo struct {
ID string `json:"id"`
diff --git a/backend/plugins/zentao/models/task_commits.go
b/backend/plugins/zentao/models/task_commits.go
index 3648938ee..16434bf9c 100644
--- a/backend/plugins/zentao/models/task_commits.go
+++ b/backend/plugins/zentao/models/task_commits.go
@@ -72,9 +72,7 @@ type ZentaoTaskRepoCommitsRes struct {
Committer string `json:"committer"`
Time string `json:"time"`
Comment string `json:"comment"`
- Change struct {
- } `json:"change"`
- Commit string `json:"commit"`
+ Commit string `json:"commit"`
} `json:"log"`
Repo struct {
ID string `json:"id"`