public async Task RunAsync() { var config = await configurationService.ReadConfigAsync(); if (!config.CommitArt.ShouldRun()) { return; } var sheet = excelService.ReadSheet(config.CommitArt.ExcelConfig); var matrix = excelService.ParseSheet(sheet); var commitDates = dateTimeEnumerator.GetDays(config.CommitArt.Year, matrix); await processService.ExecuteCommitsAsync( commitDates, config.CommitArt.Year, config.CommitArt.RepositoryPath); }
public async Task RunAsync() { var config = await configurationService.ReadConfigAsync(); if (!config.HistoryRandomizer.ShouldRun()) { return; } var freeDays = config.HistoryRandomizer.GetFreeDays(); var commitDates = dateTimeEnumerator.GetDays( year: config.HistoryRandomizer.Year, maxCommitsPerDay: config.HistoryRandomizer.CommitConfig.MaxCommitsPerDay, weekendWeight: config.HistoryRandomizer.CommitConfig.WeekendWeight, exceptions: freeDays); await processService.ExecuteCommitsAsync( commitDates, config.HistoryRandomizer.Year, config.HistoryRandomizer.RepositoryPath); }