Skip to content

Commit

Permalink
Fix Debian changelog generation [TGSDeploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberboss committed Oct 10, 2024
1 parent b0a4be7 commit 664c3e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/Tgstation.Server.ReleaseNotes/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1496,10 +1496,10 @@ [optional blank line(s), stripped]
|| component == Component.NugetCommon)
continue;

var takeNotesFrom = previousRelease.ComponentVersions[componentKvp.Key];
var hasPreviousRelease = previousRelease.ComponentVersions.TryGetValue(componentKvp.Key, out var takeNotesFrom);
var changesEnumerator = releaseNotes
.Components[component]
.Where(changelist => changelist.Version > takeNotesFrom && changelist.Version <= componentKvp.Value)
.Where(changelist => !hasPreviousRelease || (changelist.Version > takeNotesFrom && changelist.Version <= componentKvp.Value))
.SelectMany(x => x.Changes)
.OrderBy(x => x.PullRequest);
var changelist = new Changelist
Expand Down

0 comments on commit 664c3e4

Please sign in to comment.