crossplane-contrib / provider-upjet-github

Apache License 2.0
27 stars 14 forks source link

RepositoryFile unable to use branchSelector due to wrong value returned #106

Open asafhm opened 2 days ago

asafhm commented 2 days ago

When attempting to use RepostioryFile resource with a branchSelector instead of branch, the value returned by the referenced object is the terraform ID of the resource, which unfortunately is not the branch name, but repository_name:branch. E.g.: my-repo:main instead of main .

This in turn causes the resource to receive a confusing error:

unexpected status code: 404 Not Found

There's a need to use the branch attribute of the terraform resource for this selector, instead of the default ID.