This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v0.18
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v0.18 by this push:
     new 47451b71c fix(zentao): remove unused change field (#6066)
47451b71c is described below

commit 47451b71cb88e746e87ec45a3cdb8eb3b97bae7b
Author: Lynwee <[email protected]>
AuthorDate: Tue Sep 12 19:27:31 2023 +0800

    fix(zentao): remove unused change field (#6066)
---
 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"`

Reply via email to