Skip to content

Commit

Permalink
fix(zentao): make gitcommited a valiad action (apache#8115) (apache…
Browse files Browse the repository at this point in the history
…#8117)

Co-authored-by: Lynwee <[email protected]>
  • Loading branch information
github-actions[bot] and d4x1 authored Sep 30, 2024
1 parent 988805b commit 06040fb
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 06040fb

Please sign in to comment.