Skip to content

Commit 5be72d6

Browse files
author
Jimmy Byrd
committed
Put release notes into git commit summary on release
1 parent d5a5371 commit 5be72d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.fsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ Target.create "AssemblyInfo" (fun _ ->
122122
AssemblyInfoFile.createFSharp (folderName </> "AssemblyInfo.fs") attributes)
123123
)
124124

125+
let releaseNotes = String.toLines release.Notes
125126
Target.create "NuGet" (fun _ ->
126-
let ReleaseNotes = String.toLines release.Notes
127127
["src/FsToolkit.ErrorHandling"
128128
"src/FsToolkit.ErrorHandling.TaskResult"
129129
"src/FsToolkit.ErrorHandling.JobResult"]
@@ -136,7 +136,7 @@ Target.create "NuGet" (fun _ ->
136136
MSBuildParams = {MSBuild.CliArguments.Create() with
137137
// "/p" (property) arguments to MSBuild.exe
138138
Properties = [("Version", release.NugetVersion)
139-
("PackageReleaseNotes", ReleaseNotes)]}}))
139+
("PackageReleaseNotes", releaseNotes)]}}))
140140
)
141141

142142
Target.create "PublishNuget" (fun _ ->
@@ -151,7 +151,7 @@ let remote = Environment.environVarOrDefault "FSTK_GIT_REMOTE" "origin"
151151

152152
Target.create "Release" (fun _ ->
153153
Git.Staging.stageAll ""
154-
Git.Commit.exec "" (sprintf "Bump version to %s" release.NugetVersion)
154+
Git.Commit.exec "" (sprintf "Bump version to %s\n\n%s" release.NugetVersion releaseNotes)
155155
Git.Branches.push ""
156156

157157
Git.Branches.tag "" release.NugetVersion

0 commit comments

Comments
 (0)