diff --git a/backend/plugins/zentao/tasks/bug_commits_extractor.go b/backend/plugins/zentao/tasks/bug_commits_extractor.go index 6a634557ad0..66d17a395ec 100644 --- a/backend/plugins/zentao/tasks/bug_commits_extractor.go +++ b/backend/plugins/zentao/tasks/bug_commits_extractor.go @@ -60,8 +60,8 @@ func ExtractBugCommits(taskCtx plugin.SubTaskContext) errors.Error { if err != nil { return nil, errors.Default.WrapRaw(err) } - // only linked2revision action is valid - if res.Action != "linked2revision" { + // only linked2revision and gitcommited action is valid + if res.Action != "linked2revision" && res.Action != "gitcommited" { return nil, nil } diff --git a/backend/plugins/zentao/tasks/story_commits_extractor.go b/backend/plugins/zentao/tasks/story_commits_extractor.go index 4a5d133da53..91f1d3fa1ee 100644 --- a/backend/plugins/zentao/tasks/story_commits_extractor.go +++ b/backend/plugins/zentao/tasks/story_commits_extractor.go @@ -56,8 +56,8 @@ func ExtractStoryCommits(taskCtx plugin.SubTaskContext) errors.Error { return nil, errors.Default.WrapRaw(err) } - // only linked2revision action is valid - if res.Action != "linked2revision" { + // only linked2revision and gitcommited action is valid + if res.Action != "linked2revision" && res.Action != "gitcommited" { return nil, nil } diff --git a/backend/plugins/zentao/tasks/task_commits_extractor.go b/backend/plugins/zentao/tasks/task_commits_extractor.go index 5f52c3ebcf8..c2f2bf15771 100644 --- a/backend/plugins/zentao/tasks/task_commits_extractor.go +++ b/backend/plugins/zentao/tasks/task_commits_extractor.go @@ -56,8 +56,8 @@ func ExtractTaskCommits(taskCtx plugin.SubTaskContext) errors.Error { return nil, errors.Default.WrapRaw(err) } - // only linked2revision action is valid - if res.Action != "linked2revision" { + // only linked2revision and gitcommited action is valid + if res.Action != "linked2revision" && res.Action != "gitcommited" { return nil, nil }