Skip to content

Commit

Permalink
feat(cloudevents): fix not add the not runned steps in notificatioins (
Browse files Browse the repository at this point in the history
…#101)

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Mar 22, 2024
1 parent 0f89dbe commit edad397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloudevents-server/pkg/events/custom/tekton/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ func getStepStatuses(status *v1beta1.TaskRunStatus) [][2]string {
for _, s := range status.Steps {
if s.Terminated != nil {
ret = append(ret, [2]string{s.Name, s.Terminated.Reason})
if s.Terminated.Reason != "Completed" {
break
}
}
}

Expand Down

0 comments on commit edad397

Please sign in to comment.