File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ group(:development, optional: true) do
6666end 
6767
6868group ( :packaging )  do 
69+   gem  'github_changelog_generator' 
6970  gem  'packaging' ,  *location_for ( ENV [ 'PACKAGING_LOCATION' ]  || '~> 0.99' ) 
7071end 
7172
Original file line number Diff line number Diff line change @@ -131,3 +131,30 @@ if Rake.application.top_level_tasks.grep(/^gettext:/).any?
131131    abort ( "Run `bundle install --with documentation` to install the `gettext-setup` gem." ) 
132132  end 
133133end 
134+ 
135+ begin 
136+   require  "github_changelog_generator/task" 
137+   require_relative  "lib/puppet/version" 
138+ 
139+   GitHubChangelogGenerator ::RakeTask . new  :changelog  do  |config |
140+     config . header  =  <<~HEADER . chomp 
141+     # Changelog 
142+ 
143+     All notable changes to this project will be documented in this file. 
144+     HEADER 
145+     config . user  =  "openvoxproject" 
146+     config . project  =  "puppet" 
147+     config . exclude_labels  =  %w[ dependencies  duplicate  question  invalid  wontfix  wont-fix  modulesync  skip-changelog ] 
148+     config . since_tag  =  "7.36.1" 
149+     config . future_release  =  Puppet ::PUPPETVERSION 
150+     # FIXME: The following should be enough to ignore versions in the main 
151+     # branch only, but this does not work.  For now we rely on a regexp to 
152+     # exclude tags that should not be matched. 
153+     config . release_branch  =  "7.x" 
154+     config . exclude_tags_regex  =  /\A 8\. / 
155+   end 
156+ rescue  LoadError 
157+   task  :changelog  do 
158+     abort ( "Run `bundle install --with packaging` to install the `github_changelog_generator` gem." ) 
159+   end 
160+ end 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments