(client: GitClient, branchName: string)
| 42 | |
| 43 | /** Gets a Github URL that refers to a list of recent commits within a specified branch. */ |
| 44 | export 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. */ |
| 50 | export function getFileContentsUrl(client: GitClient, ref: string, relativeFilePath: string) { |
no outgoing calls
no test coverage detected