(ref: RepoRef)
| 133 | } |
| 134 | |
| 135 | export function getLegacyCacheKey(ref: RepoRef): string { |
| 136 | return `${ref.owner.toLowerCase()}/${ref.repo.toLowerCase()}`; |
| 137 | } |
| 138 | |
| 139 | export function getAuthTokenKey(ref: RepoRef): string { |
| 140 | return ref.provider === "gitlab" ? "gitlab_pat" : "github_pat"; |