For GCP Cloud function can someone give me an example of what the url should look like for “source_repository” ?
I believe I need to use the following format to read from Github (from the docs)
To refer to a moveable alias (branch):
https://source.developers.google.com/projects/*/repos/*/moveable-aliases/*/paths/*.
To refer to HEAD, use the master moveable alias.
Exactly what needs to be replaced here?
Do the keywords “projects”, “repos”, “paths” remain or are replaced.
What am I suppose to do with the “*” in the example syntax?
I have something like the following url displayed in Google Cloud Repositories pointing the function source folder:
I’ve used this as the url and I get an error
Error: Error applying plan:
1 error(s) occurred:
* google_cloudfunctions_function.cloud_function_training_data: 1 error(s) occurred:
* google_cloudfunctions_function.cloud_function_training_data: googleapi: Error 400: The request has errors, badRequest
Also it seems to me the url in the docs:
“https://source.developers.google.com”
is outdated as it gets redirected to:
“https://source.cloud.google.com”
I’ve also tried to use the format specified in the doc, which also reports an error?
Confused with how to get this working?