diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-08-06 10:42:07 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-08-06 11:18:19 +0200 |
commit | 11e5d456e8bca845a43ba13b39cd26c60d26eb1c (patch) | |
tree | d1a8c3d5654c24865bfde24d88e41fae29636da5 /releaser/releaser.go | |
parent | f768c27f0d1a554f36e873a6d8f61628525380c4 (diff) | |
download | hugo-11e5d456e8bca845a43ba13b39cd26c60d26eb1c.tar.gz hugo-11e5d456e8bca845a43ba13b39cd26c60d26eb1c.zip |
releaser: Include stats from hugoDocs
Fixes #3727
Diffstat (limited to 'releaser/releaser.go')
-rw-r--r-- | releaser/releaser.go | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index d32e511c6..4da767949 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -130,17 +130,24 @@ func (r *ReleaseHandler) Run() error { } } - var gitCommits gitInfos + var ( + gitCommits gitInfos + gitCommitsDocs gitInfos + ) if r.shouldPrepareReleasenotes() || r.shouldRelease() { - gitCommits, err = getGitInfos(changeLogFromTag, !r.try) + gitCommits, err = getGitInfos(changeLogFromTag, "", !r.try) + if err != nil { + return err + } + gitCommitsDocs, err = getGitInfos(changeLogFromTag, "../hugoDocs", !r.try) if err != nil { return err } } if r.shouldPrepareReleasenotes() { - releaseNotesFile, err := r.writeReleaseNotesToTemp(version, gitCommits) + releaseNotesFile, err := r.writeReleaseNotesToTemp(version, gitCommits, gitCommitsDocs) if err != nil { return err } |