openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
137 stars 81 forks source link

Gitlab pipelines fail to trigger if .tekton/ dir has more than 20 files #1799

Closed ralphbean closed 3 weeks ago

ralphbean commented 3 weeks ago

I'm still confirming this, but I believe that PaC will fail to match an event to a pipeline in pkg/matcher/annotation_matcher.go if there are more than 20 files in the .tekton/ dir.

I think the API call to v.Client.Repositories.ListTree in pkg/provider/gitlab/gitlab.go may need some pagination arguments.

The API call on the gitlab side is documented here: https://docs.gitlab.com/ee/api/repositories.html#list-repository-tree