|
1 | 1 | # frozen_string_literal: true
|
2 | 2 |
|
3 |
| -require 'bundler' |
4 | 3 | require 'puppetlabs_spec_helper/rake_tasks'
|
5 | 4 | require 'puppet-syntax/tasks/puppet-syntax'
|
6 | 5 | require 'beaker-rspec/rake_task' if Bundler.rubygems.find_name('beaker-rspec').any?
|
@@ -40,52 +39,50 @@ def changelog_future_release
|
40 | 39 | returnVal
|
41 | 40 | end
|
42 | 41 |
|
43 |
| -PuppetLint.configuration.send('disable_80chars') |
44 |
| -PuppetLint.configuration.send('disable_140chars') |
45 |
| -PuppetLint.configuration.send('disable_manifest_whitespace_opening_brace_after') |
46 | 42 | PuppetLint.configuration.send('disable_relative')
|
47 | 43 | PuppetLint.configuration.send('fail_on_warnings')
|
48 | 44 |
|
49 |
| - |
50 | 45 | if Bundler.rubygems.find_name('github_changelog_generator').any?
|
51 | 46 | GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
52 | 47 | raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
|
53 | 48 | config.user = "#{changelog_user}"
|
54 | 49 | config.project = "#{changelog_project}"
|
| 50 | + config.since_tag = "v7.0.0" |
55 | 51 | config.future_release = "#{changelog_future_release}"
|
56 | 52 | config.exclude_labels = ['maintenance']
|
57 | 53 | config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."
|
58 | 54 | config.add_pr_wo_labels = true
|
59 | 55 | config.issues = false
|
60 |
| - config.merge_prefix = "### UNCATEGORIZED PRS; LABEL THEM ON GITHUB" |
| 56 | + config.merge_prefix = "### UNCATEGORIZED PRS; GO LABEL THEM" |
61 | 57 | config.configure_sections = {
|
62 | 58 | "Changed" => {
|
63 | 59 | "prefix" => "### Changed",
|
64 | 60 | "labels" => ["backwards-incompatible"],
|
65 | 61 | },
|
66 | 62 | "Added" => {
|
67 | 63 | "prefix" => "### Added",
|
68 |
| - "labels" => ["enhancement", "feature"], |
| 64 | + "labels" => ["feature", "enhancement"], |
69 | 65 | },
|
70 | 66 | "Fixed" => {
|
71 | 67 | "prefix" => "### Fixed",
|
72 |
| - "labels" => ["bug", "documentation", "bugfix"], |
| 68 | + "labels" => ["bugfix"], |
73 | 69 | },
|
74 | 70 | }
|
75 | 71 | end
|
76 | 72 | else
|
77 | 73 | desc 'Generate a Changelog from GitHub'
|
78 | 74 | task :changelog do
|
79 | 75 | raise <<EOM
|
80 |
| -The changelog tasks depends on recent features of the github_changelog_generator gem. |
| 76 | +The changelog tasks depends on unreleased features of the github_changelog_generator gem. |
81 | 77 | Please manually add it to your .sync.yml for now, and run `pdk update`:
|
82 | 78 | ---
|
83 | 79 | Gemfile:
|
84 | 80 | optional:
|
85 | 81 | ':development':
|
86 | 82 | - gem: 'github_changelog_generator'
|
87 |
| - version: '~> 1.15' |
88 |
| - condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.3.0')" |
| 83 | + git: 'https://github.com/skywinder/github-changelog-generator' |
| 84 | + ref: '20ee04ba1234e9e83eb2ffb5056e23d641c7a018' |
| 85 | + condition: "Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')" |
89 | 86 | EOM
|
90 | 87 | end
|
91 | 88 | end
|
|
100 | 97 |
|
101 | 98 | desc "Release new module version (changelog, reference, commit, tag, gh pages)"
|
102 | 99 | task :release => [:changelog, "strings:generate:reference", "release:commit", "module:tag"]
|
103 |
| - |
0 commit comments