(
git: AuthenticatedGitClient,
configs: {caretaker: CaretakerConfig; github: GithubConfig},
)
| 115 | } |
| 116 | |
| 117 | static async getG3SyncFileMatchFns( |
| 118 | git: AuthenticatedGitClient, |
| 119 | configs: {caretaker: CaretakerConfig; github: GithubConfig}, |
| 120 | ): Promise<null | { |
| 121 | ngMatchFn: SyncFileMatchFn; |
| 122 | separateMatchFn: SyncFileMatchFn; |
| 123 | }> { |
| 124 | debugger; |
| 125 | if (configs.caretaker.g3SyncConfigPath === undefined) { |
| 126 | Log.debug('No Google Sync configuration specified.'); |
| 127 | return null; |
| 128 | } |
| 129 | |
| 130 | const configPath = path.join(git.baseDir, configs.caretaker.g3SyncConfigPath); |
| 131 | const {ngMatchFn, separateMatchFn, config} = await getGoogleSyncConfig(configPath); |
| 132 | if (config.syncedFilePatterns.length === 0) { |
| 133 | Log.warn('Google Sync configuration does not specify any files being synced.'); |
| 134 | } |
| 135 | return {ngMatchFn, separateMatchFn}; |
| 136 | } |
| 137 | |
| 138 | static getLatestShas(git: AuthenticatedGitClient) { |
| 139 | /** The latest sha for the g3 branch. */ |
no test coverage detected