()
| 43 | } |
| 44 | |
| 45 | function parseCurrentUrl(): string[] { |
| 46 | const parts = getCleanPathname().split('/'); |
| 47 | if (parts[2] === 'blob') { // Blob URLs are never useful |
| 48 | parts[2] = 'tree'; |
| 49 | } |
| 50 | |
| 51 | return parts; |
| 52 | } |
| 53 | |
| 54 | async function getLatestCommitToFile(branch: string, filePath: string): Promise<string> { |
| 55 | const {repository} = await api.v4(GetLatestCommitToFile, { |
no outgoing calls
no test coverage detected