Backstage
    Preparing search index...

    Function parseGitilesUrlRef

    • Parses Gitiles urls and returns the following:

      • The project
      • The type of ref. I.e: branch name, SHA, HEAD or tag.
      • The file path from the repo root.
      • The base path as the path that points to the repo root.

      Supported types of gitiles urls that point to:

      • Branches
      • Tags
      • A commit SHA
      • HEAD

      Parameters

      Returns {
          basePath: string;
          path: string;
          project: string;
          ref: string;
          refType: "branch" | "sha" | "tag" | "head";
      }