Features/codeprojects/disable commit checks (#30)

* hard disable for checking commits till I can debug it more

* New HtmlCode method added
This commit is contained in:
James Tombleson 2023-05-25 21:42:32 -07:00 committed by GitHub
parent 70440aa3f5
commit 39bf92dd53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -68,7 +68,7 @@ public class CodeProjectWatcherJob
foreach (var source in sources)
{
items.AddRange(CheckForReleases(source));
items.AddRange(CheckForCommits(source));
//items.AddRange(CheckForCommits(source));
}
foreach (var item in items)

View File

@ -157,7 +157,7 @@ public class DiscordNotificationJob
{
Title = article.Title,
Color = DiscordMessageEmbedColors.Red,
Description = article.Description,
Description = MessageValidation.ConvertHtmlCodes(article.Description),
Author = new DiscordMessageEmbedAuthor
{
Name = article.AuthorName,

View File

@ -11,7 +11,7 @@ public class MessageValidation
}
}
public static bool IsEmbedFooterValid(DiscordMessageEmbed[] embeds)
{
if (embeds.Count() == 0)
@ -43,6 +43,12 @@ public class MessageValidation
return true;
}
public static string ConvertHtmlCodes(string message)
{
message = message.Replace("&#39", "'");
return message;
}
public static bool IsEmbedAuthorValid(DiscordMessageEmbedAuthor author)
{
return true;