(item: Extension)
| 67 | } |
| 68 | |
| 69 | function getInstallUrl(item: Extension): string { |
| 70 | return ( |
| 71 | item.installUrl || |
| 72 | (item.path && item.ref |
| 73 | ? `https://github.com/github/awesome-copilot/tree/${item.ref}/${item.path.replace( |
| 74 | /\\/g, |
| 75 | "/" |
| 76 | )}` |
| 77 | : "") |
| 78 | ); |
| 79 | } |
| 80 | |
| 81 | function getSourceUrl(item: Extension): string { |
| 82 | return item.sourceUrl || (item.path ? getGitHubUrl(item.path) : ""); |