mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Updated release notes format
This commit is contained in:
14
Changelog.md
14
Changelog.md
@@ -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
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user