Skip to content

Commit a6fb21c

Browse files
CopilotVetle444
andauthored
Fix release notes never being included in Slack notifications (#796)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Vetle444 <35739538+Vetle444@users.noreply.github.com>
1 parent 5825d70 commit a6fb21c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build/AwesomeBuildsystem/Core/VersionUtil.csx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static class VersionUtil
6868

6969
foreach (var line in lines)
7070
{
71-
if (!foundHeader && (changelogHeader == null || line.Contains(changelogHeader ?? "## Version")))
71+
if (!foundHeader && (changelogHeader == null || Regex.IsMatch(line, changelogHeader)))
7272
{
7373
foundHeader = true;
7474
continue;

build/build.csx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ TaskRunner
400400
var ipaFilePath = outputFiles.FirstOrDefault(f => f.EndsWith(".ipa"));
401401
var aabFilePath = outputFiles.FirstOrDefault(f => f.EndsWith(".aab"));
402402
var version = Utils.GetChangelogVersion(RootDirectory, ChangelogHeaderPrefix, VersionPattern);
403-
var releaseNote = Utils.GetChangelogNotes(RootDirectory, $"{ChangelogHeaderPrefix}{VersionPattern}] - [0-9]+-[0-9]+-[0-9]+");
403+
var releaseNote = Utils.GetChangelogNotes(RootDirectory, $"## \\[{VersionPattern}\\]");
404404
var isIOSDelivery = ipaFilePath != null;
405405
var isAndroidDelivery = aabFilePath != null;
406406

0 commit comments

Comments
 (0)