【问题标题】:How to use "Method: projects.repos.create" to mirror bitbucket repo如何使用“方法:projects.repos.create”来镜像 bitbucket repo
【发布时间】:2019-12-17 05:43:53
【问题描述】:

我想在 Google Source Repository 中镜像 bitbuket repo,我需要在下面的 json 请求正文中传递什么。

{
  "mirrorConfig": {
    "url": "",
    "deployKeyId": "",
    "webhookId": ""
  },
  "name": "",
  "pubsubConfigs": {}
}```

【问题讨论】:

  • 在哪里可以找到 deployKeyId
  • 我想将所有 bitbucket 存储库镜像到谷歌源存储库

标签: bitbucket google-apis-explorer google-cloud-build google-source-repositories


【解决方案1】:

projects.reposresource reference 中所述,mirrorConfig 字段当前设置为只读,因此无法手动为其设置任何值。

目前无法通过 API 镜像存储库,您必须通过 Cloud Console 连接到外部源,如 Mirroring a Bitbucket repository 文档中所述。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-25
    • 2021-03-19
    • 1970-01-01
    • 2022-08-23
    • 2021-05-01
    • 2016-10-07
    • 1970-01-01
    • 2018-08-11
    相关资源
    最近更新 更多