diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-05-20 10:58:08 +0300 |
---|---|---|
committer | GitHub <[email protected]> | 2017-05-20 10:58:08 +0300 |
commit | 4d1989d59c5abc9712b66c628c6742e58f7daf99 (patch) | |
tree | 4ea4cd06a2b5c3a977fbc66b296f37904836e230 /releaser/releasenotes_writer_test.go | |
parent | a59525b05b071de020ecc457c94ad0a987040d93 (diff) | |
download | hugo-4d1989d59c5abc9712b66c628c6742e58f7daf99.tar.gz hugo-4d1989d59c5abc9712b66c628c6742e58f7daf99.zip |
releaser: Fix tag detection for changelog when doing a main release
Also improve the changelog slightly.
Fixes #3482
Diffstat (limited to 'releaser/releasenotes_writer_test.go')
-rw-r--r-- | releaser/releasenotes_writer_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/releaser/releasenotes_writer_test.go b/releaser/releasenotes_writer_test.go index 95e30e2a2..1b759b1d9 100644 --- a/releaser/releasenotes_writer_test.go +++ b/releaser/releasenotes_writer_test.go @@ -18,6 +18,7 @@ package releaser import ( "bytes" + "fmt" "os" "testing" @@ -33,9 +34,11 @@ func _TestReleaseNotesWriter(t *testing.T) { var b bytes.Buffer // TODO(bep) consider to query GitHub directly for the gitlog with author info, probably faster. - infos, err := getGitInfosBefore("v0.20", false) + infos, err := getGitInfosBefore("HEAD", "v0.20", false) require.NoError(t, err) - require.NoError(t, writeReleaseNotes("0.20", infos, &b)) + require.NoError(t, writeReleaseNotes("0.21", infos, &b)) + + fmt.Println(b.String()) } |