GoogleCloudPlatform / cloud-builders-community

Community-contributed images for Google Cloud Build
https://cloud.google.com/cloud-build/
Apache License 2.0
1.25k stars 851 forks source link

Cancelot: fix filtering and upgrade #614

Open p-jahn opened 1 year ago

p-jahn commented 1 year ago

Filtering was broken when using connected source repos as source.repo_source isn't filled in that case. Now, we check if source.repo_source is filled for the current trigger. If not, we resort to filtering locally via the available Substitutions.

I also upgraded to go modules and switched to the cloud.google.com rpc API, using the filter names as documented here.

fixes https://github.com/GoogleCloudPlatform/cloud-builders-community/issues/386