Skip to content

Commit

Permalink
fix: Revert "refactor: write branches cache"
Browse files Browse the repository at this point in the history
This reverts commit 266534e.
  • Loading branch information
rarkins committed Sep 22, 2020
1 parent feadc14 commit f0ba97b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 93 deletions.
1 change: 0 additions & 1 deletion lib/manager/common.ts
Expand Up @@ -158,7 +158,6 @@ export interface PackageDependency<T = Record<string, any>> extends Package<T> {
digestOneAndOnly?: boolean;
displayFrom?: string;
displayTo?: string;
fixedVersion?: string;
fromVersion?: string;
lockedVersion?: string;
propSource?: string;
Expand Down
23 changes: 0 additions & 23 deletions lib/util/cache/repository/index.ts
Expand Up @@ -11,30 +11,7 @@ export interface BaseBranchCache {
packageFiles: PackageFile[]; // extract result
}

export interface BranchUpgradeCache {
currentDigest?: string;
currentValue?: string;
datasource?: string;
depName?: string;
fixedVersion?: string;
fromVersion?: string;
lookupName?: string;
newDigest?: string;
newValue?: string;
toVersion?: string;
}

export interface BranchCache {
automerge: boolean;
branchName: string;
isModified: boolean;
prNo: number | null;
sha: string | null;
upgrades: BranchUpgradeCache[];
}

export interface Cache {
branches?: BranchCache[];
repository?: string;
init?: RepoInitConfig;
scan?: Record<string, BaseBranchCache>;
Expand Down
67 changes: 0 additions & 67 deletions lib/workers/repository/cache.ts

This file was deleted.

2 changes: 0 additions & 2 deletions lib/workers/repository/index.ts
Expand Up @@ -3,7 +3,6 @@ import { RenovateConfig } from '../../config';
import { logger, setMeta } from '../../logger';
import { deleteLocalFile } from '../../util/fs';
import { addSplit, getSplits, splitInit } from '../../util/split';
import { setBranchCache } from './cache';
import { ensureMasterIssue } from './dependency-dashboard';
import handleError from './error';
import { finaliseRepo } from './finalise';
Expand Down Expand Up @@ -42,7 +41,6 @@ export async function renovateRepository(
await ensureOnboardingPr(config, packageFiles, branches);
const res = await updateRepo(config, branches);
addSplit('update');
await setBranchCache(branches);
if (res !== 'automerged') {
await ensureMasterIssue(config, branches);
}
Expand Down

0 comments on commit f0ba97b

Please sign in to comment.