Skip to content

Commit

Permalink
Tweak update note, and styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Feb 2, 2024
1 parent 3ba13b9 commit 74dbaf8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/ProfanityFilter.Action/Extensions/CoreServiceExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ namespace ProfanityFilter.Action.Extensions;

internal static class CoreServiceExtensions
{
private const string UpdatedNote = "This content was automatically updated to _filter out profanity_. " +
private const string UpdatedNote =
"This content was automatically updated to _filter out profanity_. " +
"If you feel as though this was done in error, please " +
"[file an issue with the details](https://github.com/IEvangelist/profanity-filter/issues/new).";

Expand Down Expand Up @@ -46,7 +47,12 @@ internal static class CoreServiceExtensions
return finalResult;
}

return $"{finalResult}{Env.NewLine}{Env.NewLine}{UpdatedNote}";
return $"""
{finalResult}

> [!NOTE]
> {UpdatedNote}
""";
}

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions src/ProfanityFilter.Action/ProfanityProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ private static async Task SummarizeAppliedFiltersAsync(
```{Env.NewLine}{Env.NewLine}
""");

summary.AddNewLine();
summary.AddNewLine();

summary.AddRawMarkdown($"> The _potty mouth_ profanity filter ran in {elapsedTime:g}.");

if (!summary.IsBufferEmpty)
Expand Down

0 comments on commit 74dbaf8

Please sign in to comment.