Skip to content

Commit

Permalink
info log
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Apr 21, 2024
1 parent 6d34e98 commit e0d6de0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/repository/init/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('workers/repository/init/index', () => {
it('runs', async () => {
apis.initApis.mockResolvedValue(partial<_apis.WorkerPlatformConfig>());
onboarding.checkOnboardingBranch.mockResolvedValueOnce({});
config.getRepoConfig.mockResolvedValueOnce({});
config.getRepoConfig.mockResolvedValueOnce({ mode: 'silent' });
merge.mergeRenovateConfig.mockResolvedValueOnce({});
secrets.applySecretsToConfig.mockReturnValueOnce(
partial<RenovateConfig>(),
Expand Down
5 changes: 5 additions & 0 deletions lib/workers/repository/init/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ export async function initRepo(
await initializeCaches(config as WorkerPlatformConfig);
config = await getRepoConfig(config);
setRepositoryLogLevelRemaps(config.logLevelRemap);
if (config.mode === 'silent') {
logger.info(
'Repository is running with mode=silent and will not make Issues or Prs by default',
);
}
checkIfConfigured(config);
warnOnUnsupportedOptions(config);
config = applySecretsToConfig(config);
Expand Down

0 comments on commit e0d6de0

Please sign in to comment.