Skip to content

Commit 56074a5

Browse files
author
Maxime Mangel
committed
Include release description in the output
1 parent fc35778 commit 56074a5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Ionide.KeepAChangelog.Tasks/Library.fs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,12 @@ type ParseChangelogs() =
9292
sortedReleases
9393
|> Seq.tryHead
9494
|> Option.iter (fun release ->
95-
release.Data
96-
|> Option.iter (fun data -> this.LatestReleaseNotes <- data.ToMarkdown()))
95+
match release.Description, release.Data with
96+
| Some desc, None -> this.LatestReleaseNotes <- desc
97+
| None, Some data -> this.LatestReleaseNotes <- data.ToMarkdown()
98+
| Some desc, Some data ->
99+
this.LatestReleaseNotes <- $"{desc}{System.Environment.NewLine}{data.ToMarkdown()}"
100+
| None, None -> ())
97101

98102
true
99103
| Error(formatted, msg) ->

0 commit comments

Comments
 (0)