Skip to content

Commit

Permalink
Changes for github_changelog_generator Raketask
Browse files Browse the repository at this point in the history
 - Added github_site for remote server
 - Added github_endpoint for remote server
 - Added gitlab for preparation of gitlab support added in (github-changelog-generator/github-changelog-generator#657)

 These settings will not be added by default. Only if added to .sync.yml
 They allow for GitHub Enterprise and Gitlab options down the road.
  • Loading branch information
cdenneen committed Jan 29, 2020
1 parent 2193f1f commit b711410
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions moduleroot/Rakefile.erb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ PuppetLint.configuration.send('<%= option %>')
if Bundler.rubygems.find_name('github_changelog_generator').any?
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
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?
<% if @configs['github_site'] -%>
config.github_site = <%= @configs['github_site'].inspect %>
<% end -%>
<% if @configs['github_endpoint'] -%>
config.github_endpoint = <%= @configs['github_endpoint'].inspect %>
<% end -%>
<% if @configs['gitlab'] -%>
config.gitlab = <%= @configs['gitlab'].inspect %>
<% end -%>
config.user = "#{changelog_user}"
config.project = "#{changelog_project}"
<% if @configs['changelog_since_tag'] -%>
Expand Down

0 comments on commit b711410

Please sign in to comment.