How to use "Method: projects.repos.create" to mirror bitbucket repo

70 Views Asked by At

I want to Mirror bitbuket repo in Google Source Repository so, what should I need to pass in below json request body.

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

There are 1 best solutions below

0
On BEST ANSWER

As mentioned in the projects.repos resource reference, the mirrorConfig field is currently set to read-only, so it is not possible to set any values for it manually.

Currently it is not possible to mirror the repository via the API, you will have to connect to the external sources through the Cloud Console, like explained in the Mirroring a Bitbucket repository documentation.