diff options
author | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2015-08-05 11:33:17 +0200 |
---|---|---|
committer | Raphaël Pinson <raphael.pinson@camptocamp.com> | 2015-08-05 11:33:17 +0200 |
commit | 3dd467b780435fb19fdd42d8a7ea24dff169d8a8 (patch) | |
tree | 0fd18d5b9b13360b235972f4680a2d0c9d3c7ac1 /Rakefile | |
parent | 77e8ba32df5e0036857d21335cd61f0bcefdc7eb (diff) |
Changelog generation
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1,5 +1,8 @@ require 'puppetlabs_spec_helper/rake_tasks' require 'puppet-lint/tasks/puppet-lint' +require 'github_changelog_generator/task' +require 'puppet_blacksmith' +require 'puppet_blacksmith/rake_tasks' Rake::Task[:lint].clear PuppetLint::RakeTask.new :lint do |config| @@ -10,10 +13,8 @@ end PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"] -task :changelog do - sh 'github_changelog_generator' - if File.file? 'CHANGELOG.base.md' - sh 'cat CHANGELOG.md CHANGELOG.base.md > CHANGELOG.new.md' - sh 'mv CHANGELOG.new.md CHANGELOG.md' - end +GitHubChangelogGenerator::RakeTask.new :changelog do |config| + m = Blacksmith::Modulefile.new + config.future_release = m.version + config.release_url = "https://forge.puppetlabs.com/#{m.author}/#{m.name}/%s" end |