Updated release notes format

This commit is contained in:
Florian Rappl
2023-04-03 13:59:04 +02:00
parent 9746edb936
commit c67f117bc7
2 changed files with 14 additions and 10 deletions

View File

@@ -1,26 +1,26 @@
# 23.6.2
ElectronNET.API:
## ElectronNET.API
* Fixed escaping of URL #735 @cosmo0
* Changed `ZoomFactor` type #754 @Yuvix25
* Fixed escaping of URL (#735) @cosmo0
* Changed `ZoomFactor` type from `int` to `double` (#754) @Yuvix25
ElectronNET.CLI:
## ElectronNET.CLI
* (none)
Infrastructure:
## Infrastructure
* Changed build system to NUKE #757 @FlorianRappl
* Updated target framework for host project #753 @r-pankevicius
# 23.6.1
ElectronNET.CLI:
## ElectronNET.CLI
* New Feature: Upgrade to .NET 6 support
ElectronNET.API:
## ElectronNET.API
* New Feature: Native Electron 23.2.0 support, but not all new API features included (we search contributors)
* New Feature: Upgrade to .NET 6 support

View File

@@ -85,6 +85,7 @@ public sealed class ReleaseNotesParser
// Parse content.
var notes = new List<string>();
while (true)
{
// Sanity checks.
@@ -93,13 +94,14 @@ public sealed class ReleaseNotesParser
break;
}
if (lines[lineIndex].StartsWith("#", StringComparison.OrdinalIgnoreCase))
if (lines[lineIndex].StartsWith("# ", StringComparison.OrdinalIgnoreCase))
{
break;
}
// Get the current line.
var line = (lines[lineIndex] ?? string.Empty).Trim('*').Trim();
var line = (lines[lineIndex] ?? string.Empty).Trim();
if (!string.IsNullOrWhiteSpace(line))
{
notes.Add(line);
@@ -127,7 +129,8 @@ public sealed class ReleaseNotesParser
}
// Trim the current line.
var line = (lines[lineIndex] ?? string.Empty).Trim('*', ' ');
var line = (lines[lineIndex] ?? string.Empty);
if (string.IsNullOrWhiteSpace(line))
{
lineIndex++;
@@ -137,6 +140,7 @@ public sealed class ReleaseNotesParser
// Parse header.
var semVer = SemVersion.Zero;
var version = SemVersion.TryParse(lines[lineIndex], out semVer);
if (!version)
{
throw new BuildAbortedException("Could not parse version from release notes header.");