Backstage
    Preparing search index...

    Function getAzureFileFetchUrl

    • Given a URL pointing to a file on a provider, returns a URL that is suitable for fetching the contents of the data.

      Parameters

      • url: string

        A URL pointing to a file

      Returns string

      Converts

      • from: https://dev.azure.com/{organization}/{project}/_git/reponame?path={path}&version=GB{commitOrBranch}&_a=contents
      • to: https://dev.azure.com/{organization}/{project}/_apis/git/repositories/reponame/items?path={path}&version={commitOrBranch}