From 77d873c942450a2968588479b7cb211cf180bb71 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 2 Jul 2019 15:05:28 -0500 Subject: [PATCH] updates to GH Issue body --- src/FilterLists.Agent/Features/Urls/BuildGitHubIssueBody.cs | 4 ++-- .../Urls/Models/ValidationResults/UrlValidationResult.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FilterLists.Agent/Features/Urls/BuildGitHubIssueBody.cs b/src/FilterLists.Agent/Features/Urls/BuildGitHubIssueBody.cs index 0e3249b8c..1c34ac6ed 100644 --- a/src/FilterLists.Agent/Features/Urls/BuildGitHubIssueBody.cs +++ b/src/FilterLists.Agent/Features/Urls/BuildGitHubIssueBody.cs @@ -20,7 +20,7 @@ public Command(IEnumerable dataFileUrlValidationRe public class Handler : RequestHandler { private const string IssueHeader = - "

This issue is auto-generated by the [FilterLists.Agent](https://github.com/collinbarrett/FilterLists/tree/master/src/FilterLists.Agent). If it is still open at 9am UTC daily, it is updated around that time.

We rely on the help of the community to ensure that the FilterLists site data remains up-to-date. The URLs listed below have been automatically flagged and may [need to be updated](https://github.com/collinbarrett/FilterLists/tree/master/data). Please consider submitting a PR against this issue updating some or all of the URLs accordingly.

Thanks for your contributions!

"; + "

This issue is auto-generated by the FilterLists.Agent. If it is still open at 9am UTC daily, it is updated around that time.

We rely on the help of the community to ensure that the FilterLists site data remains up-to-date. The URLs listed below have been automatically flagged and may need to be updated. Please consider submitting a PR against this issue updating some or all of the URLs accordingly.

Thanks for your contributions!

"; protected override string Handle(Command request) { @@ -32,7 +32,7 @@ protected override string Handle(Command request) body.Append("
    "); foreach (var result in fileReults.Results) { - body.Append($"
  • [{result.Url.AbsolutePath}]({result.Url.AbsolutePath})"); + body.Append($"
  • {result.Url.AbsoluteUri}"); body.Append("
      "); foreach (var message in result.Messages) body.Append($"
    • {message}
    • "); diff --git a/src/FilterLists.Agent/Features/Urls/Models/ValidationResults/UrlValidationResult.cs b/src/FilterLists.Agent/Features/Urls/Models/ValidationResults/UrlValidationResult.cs index 008a5d4c9..a80b85117 100644 --- a/src/FilterLists.Agent/Features/Urls/Models/ValidationResults/UrlValidationResult.cs +++ b/src/FilterLists.Agent/Features/Urls/Models/ValidationResults/UrlValidationResult.cs @@ -22,17 +22,17 @@ public bool IsValid() public void SetBroken() { - Messages.Add("The URL is broken and should maybe be fixed, replaced, or removed."); + Messages.Add("This URL is broken and should maybe be fixed, replaced, or removed."); } public void SetSupportsHttps() { - Messages.Add("The URL is set to `http` but can support and should probably be changed to `https`."); + Messages.Add("This URL is set to `http` but can support and should probably be changed to `https`."); } public void SetRedirectsTo(Uri uri) { - Messages.Add($"The URL redirects and should maybe be changed to `{uri}`."); + Messages.Add($"This URL redirects and should maybe be changed to \"{uri}\"."); } } } \ No newline at end of file