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

10 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;
}