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.
Filtering was broken when using connected source repos as
source.repo_source
isn't filled in that case. Now, we check ifsource.repo_source
is filled for the current trigger. If not, we resort to filtering locally via the availableSubstitutions
.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