mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 13:38:32 +00:00
11 lines
281 B
TypeScript
11 lines
281 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;
|
|
}
|