Files
renovate/lib/util/git/pristine.ts
T
2022-11-20 07:10:25 +00:00

11 lines
280 B
TypeScript

import { getCache } from '../cache/repository';
export function getCachedPristineResult(branchName: string): boolean {
const cache = getCache();
const branch = cache.branches?.find(
(branch) => branch.branchName === branchName
);
return branch?.pristine ?? false;
}