File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,11 @@ import * as _mergeConfidence from '../../../../util/merge-confidence';
32
32
import * as _sanitize from '../../../../util/sanitize' ;
33
33
import type { Timestamp } from '../../../../util/timestamp' ;
34
34
import * as _limits from '../../../global/limits' ;
35
- import type { BranchConfig , BranchUpgradeConfig } from '../../../types' ;
35
+ import type {
36
+ BranchConfig ,
37
+ BranchUpgradeConfig ,
38
+ CacheFingerprintMatchResult ,
39
+ } from '../../../types' ;
36
40
import type { ResultWithPr } from '../pr' ;
37
41
import * as _prWorker from '../pr' ;
38
42
import * as _prAutomerge from '../pr/automerge' ;
@@ -1480,7 +1484,7 @@ describe('workers/repository/update/branch/index', () => {
1480
1484
branchPrefixOld : 'old/' ,
1481
1485
commitFingerprint : '111' ,
1482
1486
reuseExistingBranch : true ,
1483
- cacheFingerprintMatch : 'matched' ,
1487
+ cacheFingerprintMatch : 'matched' as CacheFingerprintMatchResult ,
1484
1488
} ;
1485
1489
expect ( await branchWorker . processBranch ( inconfig ) ) . toEqual ( {
1486
1490
branchExists : true ,
Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ export type BranchResult =
112
112
| 'rebase'
113
113
| 'update-not-scheduled' ;
114
114
115
+ export type CacheFingerprintMatchResult =
116
+ | 'matched'
117
+ | 'no-match'
118
+ | 'no-fingerprint' ;
119
+
115
120
export interface BranchConfig
116
121
extends BranchUpgradeConfig ,
117
122
LegacyAdminConfig ,
@@ -134,7 +139,7 @@ export interface BranchConfig
134
139
stopUpdating ?: boolean ;
135
140
isConflicted ?: boolean ;
136
141
commitFingerprint ?: string ;
137
- cacheFingerprintMatch ?: 'no-fingerprint' | 'no-match' | 'matched' ;
142
+ cacheFingerprintMatch ?: CacheFingerprintMatchResult ;
138
143
}
139
144
140
145
export interface BranchMetadata {
You can’t perform that action at this time.
0 commit comments