appending duplicate pipelineruns leads to found multiple pipelinerun in .tekton dir issue
Closed this issue · 0 comments
savitaashture commented
When we have multiple pipelineruns with generateName in .tekton directory we are facing below issue
match_test.go:185: assertion failed: error is not nil:
found multiple pipelinerun in .tekton with the same generateName:
pull_request-test1, please update
Because here https://github.com/openshift-pipelines/pipelines-as-code/blob/main/pkg/pipelineascode/match.go#L224-L226 we have if condition to match based on Name and if there is no name specified in any of the Pipelineruns in .tekton dir then there is a chance of appending duplicate pipelineruns