Skip to content

Commit 09b30ac

Browse files
fix(zentao): make gitcommited a valiad action (#8115) (#8116)
Co-authored-by: Lynwee <[email protected]>
1 parent 20633ab commit 09b30ac

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

backend/plugins/zentao/tasks/bug_commits_extractor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ func ExtractBugCommits(taskCtx plugin.SubTaskContext) errors.Error {
6060
if err != nil {
6161
return nil, errors.Default.WrapRaw(err)
6262
}
63-
// only linked2revision action is valid
64-
if res.Action != "linked2revision" {
63+
// only linked2revision and gitcommited action is valid
64+
if res.Action != "linked2revision" && res.Action != "gitcommited" {
6565
return nil, nil
6666
}
6767

backend/plugins/zentao/tasks/story_commits_extractor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ func ExtractStoryCommits(taskCtx plugin.SubTaskContext) errors.Error {
5656
return nil, errors.Default.WrapRaw(err)
5757
}
5858

59-
// only linked2revision action is valid
60-
if res.Action != "linked2revision" {
59+
// only linked2revision and gitcommited action is valid
60+
if res.Action != "linked2revision" && res.Action != "gitcommited" {
6161
return nil, nil
6262
}
6363

backend/plugins/zentao/tasks/task_commits_extractor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ func ExtractTaskCommits(taskCtx plugin.SubTaskContext) errors.Error {
5656
return nil, errors.Default.WrapRaw(err)
5757
}
5858

59-
// only linked2revision action is valid
60-
if res.Action != "linked2revision" {
59+
// only linked2revision and gitcommited action is valid
60+
if res.Action != "linked2revision" && res.Action != "gitcommited" {
6161
return nil, nil
6262
}
6363

0 commit comments

Comments
 (0)