Skip to content

Commit 109b3b6

Browse files
committed
test fix
1 parent 1ba4ba3 commit 109b3b6

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/workers/repository/process/write.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export async function writeUpdates(
156156
commitFingerprintConfig: generateCommitFingerprintConfig(branch),
157157
managers,
158158
});
159-
branch.cacheFingerPrintMatch = compareCacheFingerprint(
159+
branch.cacheFingerprintMatch = compareCacheFingerprint(
160160
branchState,
161161
commitFingerprint,
162162
);

lib/workers/repository/update/branch/index.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ describe('workers/repository/update/branch/index', () => {
12261226
await branchWorker.processBranch({
12271227
...config,
12281228
baseBranch: 'new_base',
1229-
skipBranchUpdate: true,
1229+
cacheFingerprintMatch: 'matched',
12301230
});
12311231
expect(logger.debug).toHaveBeenCalledWith(
12321232
'Base branch changed by user, rebasing the branch onto new base',
@@ -1480,7 +1480,7 @@ describe('workers/repository/update/branch/index', () => {
14801480
branchPrefixOld: 'old/',
14811481
commitFingerprint: '111',
14821482
reuseExistingBranch: true,
1483-
skipBranchUpdate: true,
1483+
cacheFingerprintMatch: 'matched',
14841484
};
14851485
expect(await branchWorker.processBranch(inconfig)).toEqual({
14861486
branchExists: true,
@@ -2500,7 +2500,7 @@ describe('workers/repository/update/branch/index', () => {
25002500
}),
25012501
);
25022502
config.reuseExistingBranch = true;
2503-
config.skipBranchUpdate = true;
2503+
config.cacheFingerprintMatch = 'matched';
25042504
const inconfig = {
25052505
...config,
25062506
branchName: 'new/some-branch',

lib/workers/repository/update/branch/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export async function processBranch(
475475
'Base branch changed by user, rebasing the branch onto new base',
476476
);
477477
config.reuseExistingBranch = false;
478-
} else if (config.cacheFingerPrintMatch === 'no-match') {
478+
} else if (config.cacheFingerprintMatch === 'no-match') {
479479
logger.debug(
480480
'Cache fingerprint does not match, cannot reuse existing branch',
481481
);
@@ -487,7 +487,7 @@ export async function processBranch(
487487
logger.debug(`Using reuseExistingBranch: ${config.reuseExistingBranch!}`);
488488
if (
489489
!(
490-
config.reuseExistingBranch && config.cacheFingerPrintMatch === 'matched'
490+
config.reuseExistingBranch && config.cacheFingerprintMatch === 'matched'
491491
)
492492
) {
493493
await scm.checkoutBranch(config.baseBranch);

lib/workers/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export interface BranchConfig
134134
stopUpdating?: boolean;
135135
isConflicted?: boolean;
136136
commitFingerprint?: string;
137-
cacheFingerPrintMatch?: 'no-fingerprint' | 'no-match' | 'matched';
137+
cacheFingerprintMatch?: 'no-fingerprint' | 'no-match' | 'matched';
138138
}
139139

140140
export interface BranchMetadata {

0 commit comments

Comments
 (0)