mirror of
https://github.com/renovatebot/renovate.git
synced 2026-10-27 07:50:47 +00:00
9caf45ed43
Co-authored-by: Rhys Arkins <rhys@arkins.net>
11 lines
258 B
TypeScript
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;
|
|
}
|