-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for github_changelog_generator Raketask #309
Conversation
- 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Would you mind adding basic docs for the new entries to the README as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is basically good for merge (THANKYOU for updating the docs!!)
Just one comment on adding examples or reference another site for help.
774545b
to
1eeb4ee
Compare
@scotje @glennsarti can you please re-approve. I messed up and ended up having to force-push |
@@ -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 %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without tests this could be interesting. .inspect
has bitten us before with YAML files. But as this is a ruby file and inspect generates ruby code, this is probably safe (?)
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.