Skip to content

Commit

Permalink
Add release notes to git release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Byrd committed Feb 9, 2018
1 parent 2607f88 commit 5f2cb85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Content/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,10 @@ Target "Release" (fun _ ->

if Git.Information.getBranchName "" <> "master" then failwith "Not on master"

let releaseNotesGitCommitFormat = ("",release.Notes |> Seq.map(sprintf "* %s\n")) |> String.Join

StageAll ""
Git.Commit.Commit "" (sprintf "Bump version to %s" release.NugetVersion)
Git.Commit.Commit "" (sprintf "Bump version to %s \n%s" release.NugetVersion releaseNotesGitCommitFormat)
Branches.push ""

Branches.tag "" release.NugetVersion
Expand Down
4 changes: 3 additions & 1 deletion build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ Target "Release" (fun _ ->

if Git.Information.getBranchName "" <> "master" then failwith "Not on master"

let releaseNotesGitCommitFormat = ("",release.Notes |> Seq.map(sprintf "* %s\n")) |> String.Join

StageAll ""
Git.Commit.Commit "" (sprintf "Bump version to %s" release.NugetVersion)
Git.Commit.Commit "" (sprintf "Bump version to %s \n%s" release.NugetVersion releaseNotesGitCommitFormat)
Branches.push ""

Branches.tag "" release.NugetVersion
Expand Down

0 comments on commit 5f2cb85

Please sign in to comment.