none
Selected Version Azure DevOps Services REST API 5.0 Fork Create RRS feed

  • Question

  • I am trying to fork one repo to another repo using the rest API request.

    ex. dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests?api-version=5.0-preview.1

    However it returns and error "Source and Target repos must share an ODB". I cannot find any other details how to fix it.

    Please let know if you have encounter the same issue.

    Thursday, July 11, 2019 11:20 AM

Answers

All replies

  • Hello Mark,

    I understand that you are facing issue with Azure DevOps. I would like to help you redirecting it to the correct forum as this forum is for Azure API Managemenet and your question is related to the AzureDevOps.

    Please open the same question at the AzureDevOps community. Once you post your issue, it will have visibility across the product owners which is a better suited audience for such types of issues.

    Thursday, July 11, 2019 2:59 PM
  • Also try asking for help over here.

    https://stackoverflow.com/questions/tagged/azure-devops

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Thursday, July 11, 2019 8:36 PM
    Moderator
  • https://developer.atlassian.com/static/rest/stash/3.10.2/stash-rest.html#idp2686544

    POST http://bitbuckeket.company.com/rest/api/1.0/projects/origin_project/repos/origin_repo
    with a data block of

    data = {
                 "name": fork_repo,
                 "project": {
                               "key": fork_project 
                            }
                 };
    Friday, December 6, 2019 5:15 AM