Skip to content

Commit

Permalink
Fix IsEmpty property for release notes that have empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrofigo committed Feb 16, 2023
1 parent c27a246 commit c62c880
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/Nuke.Common/ChangeLog/ReleaseNotes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
using NuGet.Versioning;

Expand All @@ -15,7 +16,7 @@ public class ReleaseNotes
/// <summary>
/// Gets a value indicating whether this release notes section contains notes.
/// </summary>
public bool IsEmpty => Notes.Count == 0;
public bool IsEmpty => Notes.Count == 0 || Notes.All(string.IsNullOrWhiteSpace);

/// <summary>
/// Gets a value indicating whether this release notes section is unreleased (vNext).
Expand Down

0 comments on commit c62c880

Please sign in to comment.