From 7bff3a9c25849ccc433669aad9cc021235acafdd Mon Sep 17 00:00:00 2001 From: Hennadii Date: Wed, 26 Jun 2024 00:12:51 +0300 Subject: [PATCH] fix: Fixed appearance of the last commit of every release in the next release. --- src/Heleonix.Build/Targets/Hx_NetBuild.targets | 2 +- src/Heleonix.Build/Tasks/Hx_GitHubCommitChangeLog.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Heleonix.Build/Targets/Hx_NetBuild.targets b/src/Heleonix.Build/Targets/Hx_NetBuild.targets index e7d52f4..db6ec96 100644 --- a/src/Heleonix.Build/Targets/Hx_NetBuild.targets +++ b/src/Heleonix.Build/Targets/Hx_NetBuild.targets @@ -57,7 +57,7 @@ <_Hx_NetBuild_SigningProps Condition="Exists('$(Hx_NetBuild_SnkFile)')">SignAssembly=true;AssemblyOriginatorKeyFile=$(Hx_NetBuild_SnkFile) <_Hx_NetBuild_VersionProps Condition="'$(Hx_NetBuild_Version)' != ''">Version=$(Hx_NetBuild_Version) <_Hx_NetBuild_AssemblyVersionProps Condition="'$(Hx_NetBuild_AssemblyVersion)' != ''">AssemblyVersion=$(Hx_NetBuild_AssemblyVersion) - <_Hx_NetBuild_ReleaseNotes Condition="'$(Hx_NetBuild_ReleaseNotesFile)' != ''">PackageReleaseNotes="$([System.IO.File]::ReadAllText('$(Hx_NetBuild_ReleaseNotesFile)').Trim())" + <_Hx_NetBuild_ReleaseNotes Condition="'$(Hx_NetBuild_ReleaseNotesFile)' != ''">PackageReleaseNotes=$([System.IO.File]::ReadAllText('$(Hx_NetBuild_ReleaseNotesFile)').Trim()) ( $"{this.GitHubRepositoryApiUrl}/commits?sha={tagSource}&per_page={100}&page={pageNumber}" - + (createdAt != null ? $"&since={createdAt}" : string.Empty)); + + (since != null ? $"&since={since}" : string.Empty)); commitPage.Wait(3 * 60 * 1000); @@ -149,7 +149,7 @@ private void CollectChanges( c["commit"]["committer"]["date"].GetValue(), DateTimeFormatInfo.InvariantInfo); - if (dateTime < createdAtDateTime) + if (dateTime <= sinceDateTime) { continue; }