Fix version string in changelog generator

When I made the change to pull the version from ENV (as is used
during the bump_version rake task), I neglected to prefix it with
a "v", which causes the "full changelog" links to be incorrect.

Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
Adam Leff 2017-05-11 15:15:00 -04:00
parent febce5e5a1
commit 6c006f5425
No known key found for this signature in database
GPG key ID: 7A5136DE1C1112F8

View file

@ -25,7 +25,7 @@ begin
# bump_version Rake task). If it doesn't exist, use Inspec::VERSION. We can't rely
# on Inspec::VERSION because we may have already "require'd" Inspec by the time
# we've gotten here and the version has been bumped with bump_version.
config.future_release = ENV.fetch('to', "v#{Inspec::VERSION}")
config.future_release = "v#{ENV.fetch('to', Inspec::VERSION)}"
# only generate changelog records for pull requests merged since v1.20.0
# which is the version we started tagging PRs for.