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

Function getListCommitsInBranchUrl

ng-dev/utils/git/github-urls.ts:44–47  ·  view source on GitHub ↗
(client: GitClient, branchName: string)

Source from the content-addressed store, hash-verified

42
43/** Gets a Github URL that refers to a list of recent commits within a specified branch. */
44export function getListCommitsInBranchUrl(client: GitClient, branchName: string) {
45 const {owner, repo} = client.remoteParams;
46 return `https://github.com/${owner}/${repo}/commits/${branchName}`;
47}
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) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected