diff --git a/Runner/Jobs/RegexDiffJob.cs b/Runner/Jobs/RegexDiffJob.cs index 90ac6d5..5d87930 100644 --- a/Runner/Jobs/RegexDiffJob.cs +++ b/Runner/Jobs/RegexDiffJob.cs @@ -449,17 +449,15 @@ private async Task UploadSourceGeneratorResultsAsync(RegexEntry[] entries) int patternsWithDiffs = entries.Count(e => e.ShortDiff is not null); + // MihuBot looks for this exact string in logs + await LogAsync($"NOTE: {patternsWithDiffs} out of {entries.Length} patterns have generated source code changes."); + if (patternsWithDiffs > 0) { string shortExample = GenerateExamplesMarkdown(entries, GitHubHelpers.CommentLengthLimit / 2, maxEntries: 10); string longExample = GenerateExamplesMarkdown(entries, GitHubHelpers.GistLengthLimit, maxEntries: int.MaxValue); - await UploadTextArtifactAsync("ShortExampleDiffs.md", - $""" - {patternsWithDiffs} out of {entries.Length} patterns have generated source code changes. - - {shortExample} - """); + await UploadTextArtifactAsync("ShortExampleDiffs.md", shortExample); if (shortExample != longExample) {