Files
renovate/lib/modules/platform/util.ts
T
Michael Kriese 9caf45ed43 fix(git): wrong git url handling (#17380)
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2022-08-24 19:41:43 +00:00

11 lines
258 B
TypeScript

import hasha from 'hasha';
export function repoFingerprint(
repoId: number | string,
endpoint: string | undefined
): string {
const input = endpoint ? `${endpoint}::${repoId}` : `${repoId}`;
const fingerprint = hasha(input);
return fingerprint;
}