( repo: string, rawWorkspaceName: string, )
| 9 | const SAPLING_CONFIG_CANDIDATES = ['.hg/hgrc', '.sl/config'] |
| 10 | |
| 11 | export function encodeWorkspaceId( |
| 12 | repo: string, |
| 13 | rawWorkspaceName: string, |
| 14 | ): string { |
| 15 | return Buffer.from(`${repo}\u0000${rawWorkspaceName}`, 'utf8').toString( |
| 16 | 'base64url', |
| 17 | ) |
| 18 | } |
| 19 | |
| 20 | export function parseCommitCloudRc(contents: string): { |
| 21 | rawWorkspaceName: string |
no test coverage detected