I am trying to create a cloudbuild Trigger Filename that reacts to pull requests in GitHub.
I am using Python with GCP classic.
I get the error: Error creating Trigger: googleapi: Error 400: Repository mapping does not exist.
My code is:
"""
_ = gcp.cloudbuild.Trigger(
filename= "ci_cd/version.cloudbuild.yaml",
name="my_resource_name",
project="my_project_id",
resource_name="my_resource_name",
github=cloudbuild.TriggerGithubArgs(
pull_request=cloudbuild.TriggerGithubPullRequestArgs(
branch="^main$"
),
),
)
"""
Thanks for your help.