updates to GH Issue body

This commit is contained in:
Collin M. Barrett 2019-07-02 15:05:28 -05:00
parent ec77db54f2
commit 77d873c942
2 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ public Command(IEnumerable<DataFileUrlValidationResults> dataFileUrlValidationRe
public class Handler : RequestHandler<Command, string>
{
private const string IssueHeader =
"<p>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.</p><p>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.</p><p>Thanks for your contributions!</p>";
"<p>This issue is auto-generated by the <a href=\"https://github.com/collinbarrett/FilterLists/tree/master/src/FilterLists.Agent\">FilterLists.Agent</a>. If it is still open at 9am UTC daily, it is updated around that time.</p><p>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 <a href=\"https://github.com/collinbarrett/FilterLists/tree/master/data\">need to be updated</a>. Please consider submitting a PR against this issue updating some or all of the URLs accordingly.</p><p>Thanks for your contributions!</p>";
protected override string Handle(Command request)
{
@ -32,7 +32,7 @@ protected override string Handle(Command request)
body.Append("<ul>");
foreach (var result in fileReults.Results)
{
body.Append($"<li>[{result.Url.AbsolutePath}]({result.Url.AbsolutePath})");
body.Append($"<li><a href=\"{result.Url.AbsoluteUri}\">{result.Url.AbsoluteUri}</a>");
body.Append("<ul>");
foreach (var message in result.Messages)
body.Append($"<li>{message}</li>");

View file

@ -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}\".");
}
}
}