renovate
Version:
Automated dependency updates. Flexible so you don't need to be.
13 lines (12 loc) • 441 B
JavaScript
import { hash } from "../../util/hash.js";
//#region lib/modules/platform/util.ts
function repoFingerprint(repoId, endpoint) {
return hash(endpoint ? `${endpoint}::${repoId}` : `${repoId}`);
}
function getNewBranchName(branchName) {
if (branchName && !branchName.startsWith("refs/heads/")) return `refs/heads/${branchName}`;
return branchName;
}
//#endregion
export { getNewBranchName, repoFingerprint };
//# sourceMappingURL=util.js.map