File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,15 @@ export class Processor {
9292
9393 await cloneRepository (
9494 this . repoPaths . base ,
95- this . config ! . repos . base . replace ( 'DIFLOW_GIT_SECRET' , this . processOptions . secret ?? '' )
95+ this . config ! . repos . base . url . replace ( 'DIFLOW_GIT_SECRET' , this . processOptions . secret ?? '' )
9696 ) ;
9797 await cloneRepository (
9898 this . repoPaths . diff ,
99- this . config ! . repos . diff . replace ( 'DIFLOW_GIT_SECRET' , this . processOptions . secret ?? '' )
99+ this . config ! . repos . diff . url . replace ( 'DIFLOW_GIT_SECRET' , this . processOptions . secret ?? '' )
100100 ) ;
101101 await cloneRepository (
102102 this . repoPaths . merged ,
103- this . config ! . repos . merged . replace ( 'DIFLOW_GIT_SECRET' , this . processOptions . secret ?? '' )
103+ this . config ! . repos . merged . url . replace ( 'DIFLOW_GIT_SECRET' , this . processOptions . secret ?? '' )
104104 ) ;
105105
106106 await runGitCommand ( this . repoPaths . base , `checkout ${ this . branch } ` ) ;
Original file line number Diff line number Diff line change @@ -67,9 +67,9 @@ export async function initTestRepos() {
6767 {
6868 branches : [ 'master' ] ,
6969 repos : {
70- base : getTestRepoPath ( 'base' ) ,
71- diff : getTestRepoPath ( 'diff' ) ,
72- merged : getTestRepoPath ( 'merged' ) ,
70+ base : { url : getTestRepoPath ( 'base' ) } ,
71+ diff : { url : getTestRepoPath ( 'diff' ) } ,
72+ merged : { url : getTestRepoPath ( 'merged' ) } ,
7373 } ,
7474 ignorePaths : [ '.github/**' ] ,
7575 } ,
Original file line number Diff line number Diff line change 11export type RepoId = 'base' | 'diff' | 'merged' | 'config' ;
22export type FileAction = 'A' | 'D' | 'M' ;
33
4+ export interface RepoConfig {
5+ url : string ;
6+ }
7+
48export interface Config {
59 repos : {
6- base : string ;
7- diff : string ;
8- merged : string ;
9- config : string ;
10+ base : RepoConfig ;
11+ diff : RepoConfig ;
12+ merged : RepoConfig ;
1013 } ;
1114 ignorePaths : string [ ] ;
1215 syncCommitPrefix ?: string ;
You can’t perform that action at this time.
0 commit comments