Skip to content
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

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

cdenneen
Copy link
Contributor

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.

 - 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.
@cdenneen cdenneen requested review from a team as code owners January 29, 2020 17:43
Copy link
Contributor

@scotje scotje left a 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?

scotje
scotje previously approved these changes Jan 30, 2020
Copy link
Contributor

@scotje scotje left a 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!

Copy link
Contributor

@glennsarti glennsarti left a 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.

README.md Outdated Show resolved Hide resolved
@cdenneen
Copy link
Contributor Author

@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 %>
Copy link
Contributor

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 (?)

@glennsarti glennsarti merged commit 3c9dcc2 into puppetlabs:master Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants