Skip to content

Commit

Permalink
fix(zentao): make gitcommited a valiad action (#8115)
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 authored and action_bot committed Sep 30, 2024
1 parent 988805b commit 97f0682
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/plugins/zentao/tasks/bug_commits_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions backend/plugins/zentao/tasks/story_commits_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions backend/plugins/zentao/tasks/task_commits_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 97f0682

Please sign in to comment.