Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Jul 11, 2024
1 parent 219e1e1 commit 87ac9a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/scripts/nugetSlackNotifications/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ static async Task CheckPackage(PackageInfo package, PackageMetadataResource meta
var previous = metaData.Skip(1).FirstOrDefault();

// see if it was published within the last _daysToSearch days
if (latest.Published > DateTime.Today.AddDays(-_daysToSearch))
if (latest.Published.Value.Date.Date >= DateTime.Today.AddDays(-_daysToSearch))
{
if (previous != null && (package.IgnorePatch || package.IgnoreMinor))
{
Expand Down Expand Up @@ -135,7 +135,7 @@ static async Task AlertOnNewVersions()
var msg = "Hi team! Dotty here :technologist::pager:\nThere's some new NuGet releases you should know about :arrow_heading_down::sparkles:";
foreach (var versionData in _newVersions)
{
msg += $"\n\t:package: {char.ToUpper(versionData.PackageName[0]) + versionData.PackageName[1..]} {versionData.OldVersion} :point_right: <{versionData.Url}|{versionData.NewVersion}>";
msg += $"\n\t:package: {versionData.PackageName} {versionData.OldVersion} :point_right: <{versionData.Url}|{versionData.NewVersion}>";
}
msg += $"\nThanks and have a wonderful {DateTime.Now.DayOfWeek}.";

Expand All @@ -160,7 +160,7 @@ static async Task CreateGithubIssuesForNewVersions()
{
var newIssue = new NewIssue($"Dotty: update tests for {versionData.PackageName} from {versionData.OldVersion} to {versionData.NewVersion}")
{
Body = versionData.Url
Body = $"Package [{versionData.PackageName}]({versionData.Url}) was updated from {versionData.OldVersion} to {versionData.NewVersion} on {versionData.PublishDate.ToShortDateString()}."
};
newIssue.Labels.Add("testing");
newIssue.Labels.Add("Core Technologies");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
{ "packageName": "serilog.aspnetcore", "ignorePatch": false, "ignoreMinor": false },
{ "packageName": "serilog.sinks.file", "ignorePatch": false, "ignoreMinor": false },
{ "packageName": "serilog.sinks.console", "ignorePatch": false, "ignoreMinor": false },
{ "packageName": "stackexchange.redis", "ignorePatch": false, "ignoreMinor": true },
{ "packageName": "stackexchange.redis", "ignorePatch": false, "ignoreMinor": false },
{ "packageName": "system.data.sqlclient", "ignorePatch": false, "ignoreMinor": false}
]

0 comments on commit 87ac9a7

Please sign in to comment.