(githubHttpsUrl: string, token: string)
| 19 | |
| 20 | /** Adds the provided token to the given Github HTTPs remote url. */ |
| 21 | export function addTokenToGitHttpsUrl(githubHttpsUrl: string, token: string) { |
| 22 | const url = new URL(githubHttpsUrl); |
| 23 | url.password = token; |
| 24 | url.username = 'x-access-token'; |
| 25 | return url.href; |
| 26 | } |
| 27 | |
| 28 | /** Gets the repository Git URL for the given github config. */ |
| 29 | export function getRepositoryGitUrl( |
no outgoing calls
no test coverage detected