# NOT RUN {
# copying a GitHub buildtrigger across projects and git repos
bt <- cr_buildtrigger_get("my-trigger", projectId = "my-project-1")
# a new GitHub project
gh <- GitHubEventsConfig("username/new-repo",
event = "push",
branch = "^master$"
)
# give 'Cloud Build Editor' role to your service auth key in new project
# then copy configuration across
cr_buildtrigger_copy(bt, github = gh, projectId = "my-new-project")
# }
Run the code above in your browser using DataLab