Add a topic
You can add an association between a project or repository and a Cloud Pub/Sub topic using the gcloud command-line tool.
To add a topic to an entire project, type the following command:
gcloud beta source project-configs update --add-topic=[TOPIC_NAME] --service-account=[SERVICE_ACCOUNT_NAME]
To add a topic to a specific repository, type the following command:
gcloud beta source repos update [REPOSITORY_NAME] --add-topic=[TOPIC_NAME] --service-account=[SE