【问题标题】:Mirror a GitHub repository using the source-repositories API directly直接使用 source-repositories API 镜像 GitHub 存储库
【发布时间】:2020-07-16 09:56:52
【问题描述】:

云控制台提供了从 GitHub 镜像存储库的接口。

当您使用此功能时,它会在可从 API 读取的存储库上创建一个 mirrorConfig。然而,API 本身似乎没有提供写入此配置的方法。

尝试使用 mirrorConfig 创建存储库时的示例

{
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "field": "repo.mirror_config",
            "description": "mirror_config is a read-only field and must not be set"
          }
        ]
      },
      {
        "@type": "type.googleapis.com/google.rpc.RequestInfo",
        "requestId": "*****"
      }
    ]
  }
}

有没有办法在 Google Cloud Platform 中以编程方式创建镜像源代码库?

【问题讨论】:

标签: github google-cloud-platform google-source-repositories


【解决方案1】:

没有。

答案是:(

来源:George 的上述评论(谷歌云平台支持团队)

【讨论】:

    猜你喜欢
    • 2020-10-10
    • 2013-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-24
    • 2021-04-23
    • 2020-03-29
    • 2017-12-08
    相关资源
    最近更新 更多