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:
parent
70440aa3f5
commit
39bf92dd53
@ -68,7 +68,7 @@ public class CodeProjectWatcherJob
|
|||||||
foreach (var source in sources)
|
foreach (var source in sources)
|
||||||
{
|
{
|
||||||
items.AddRange(CheckForReleases(source));
|
items.AddRange(CheckForReleases(source));
|
||||||
items.AddRange(CheckForCommits(source));
|
//items.AddRange(CheckForCommits(source));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var item in items)
|
foreach (var item in items)
|
||||||
|
@ -157,7 +157,7 @@ public class DiscordNotificationJob
|
|||||||
{
|
{
|
||||||
Title = article.Title,
|
Title = article.Title,
|
||||||
Color = DiscordMessageEmbedColors.Red,
|
Color = DiscordMessageEmbedColors.Red,
|
||||||
Description = article.Description,
|
Description = MessageValidation.ConvertHtmlCodes(article.Description),
|
||||||
Author = new DiscordMessageEmbedAuthor
|
Author = new DiscordMessageEmbedAuthor
|
||||||
{
|
{
|
||||||
Name = article.AuthorName,
|
Name = article.AuthorName,
|
||||||
|
@ -11,7 +11,7 @@ public class MessageValidation
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsEmbedFooterValid(DiscordMessageEmbed[] embeds)
|
public static bool IsEmbedFooterValid(DiscordMessageEmbed[] embeds)
|
||||||
{
|
{
|
||||||
if (embeds.Count() == 0)
|
if (embeds.Count() == 0)
|
||||||
@ -43,6 +43,12 @@ public class MessageValidation
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string ConvertHtmlCodes(string message)
|
||||||
|
{
|
||||||
|
message = message.Replace("'", "'");
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
public static bool IsEmbedAuthorValid(DiscordMessageEmbedAuthor author)
|
public static bool IsEmbedAuthorValid(DiscordMessageEmbedAuthor author)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user