Skip to content

Commit

Permalink
Include release description in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Dec 16, 2023
1 parent fc35778 commit 56074a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Ionide.KeepAChangelog.Tasks/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ type ParseChangelogs() =
sortedReleases
|> Seq.tryHead
|> Option.iter (fun release ->
release.Data
|> Option.iter (fun data -> this.LatestReleaseNotes <- data.ToMarkdown()))
match release.Description, release.Data with
| Some desc, None -> this.LatestReleaseNotes <- desc
| None, Some data -> this.LatestReleaseNotes <- data.ToMarkdown()
| Some desc, Some data ->
this.LatestReleaseNotes <- $"{desc}{System.Environment.NewLine}{data.ToMarkdown()}"
| None, None -> ())

true
| Error(formatted, msg) ->
Expand Down

0 comments on commit 56074a5

Please sign in to comment.