MCPcopy Create free account
hub / github.com/angular/dev-infra / getFileContentsUrl

Function getFileContentsUrl

ng-dev/utils/git/github-urls.ts:50–53  ·  view source on GitHub ↗
(client: GitClient, ref: string, relativeFilePath: string)

Source from the content-addressed store, hash-verified

48
49/** Gets a Github URL for viewing the file contents of a specified file for the given ref. */
50export function getFileContentsUrl(client: GitClient, ref: string, relativeFilePath: string) {
51 const {owner, repo} = client.remoteParams;
52 return `https://github.com/${owner}/${repo}/blob/${ref}/${relativeFilePath}`;
53}

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected