我按照以下链接将我的存储库集成到 pubsub。 https://cloud.google.com/source-repositories/docs/quickstart-adding-pubsub-notifications#before-you-begin
但是,我的存储库无法发布 pubsub 消息。这是我的存储库的描述:
$ gcloud beta source repos describe test
name: projects/[my-project-id]/repos/test
pubsubConfigs:
projects/[my-project-id]/topics/test:
messageFormat: JSON
serviceAccountEmail: xxx-compute@developer.gserviceaccount.com
topic: projects/[my-project-id]/topics/test
size: '2425'
url: https://source.developers.google.com/p/[my-project-id]/r/test
主题“测试”有一个名为“测试订阅”的订阅。
$ gcloud pubsub subscriptions describe test-subscription
ackDeadlineSeconds: 10
expirationPolicy:
ttl: 2678400s
messageRetentionDuration: 604800s
name: projects/[my-project-id]/subscriptions/test-subscription
pushConfig: {}
topic: projects/[my-project-id]/topics/test
因此,我尝试在推送新更改后提取消息。但是,没有来自源存储库的消息。我有什么问题?我还能做什么?请帮我。