Skip to content

Add option --require to load custom Ruby code before starting #574

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

Conversation

olleolleolle
Copy link
Collaborator

@olleolleolle olleolleolle commented Oct 13, 2017

This PR adds a feature and an option --require: it takes a comma-separated list of paths to custom Ruby files to require. This happens just before starting the changelog generation.

Example:

github_changelog_generator --require ./.changelog_hacks.rb,./.changelog_hacks2.rb
  • documentation of the new option

@olleolleolle
Copy link
Collaborator Author

olleolleolle commented Oct 13, 2017

I was inspired to add this because of the Pivotal Tracker question. In order to make things more custom for them, they need a place to put code.

Perhaps a new default-required filename could be the default list, to be required if found.

@olleolleolle olleolleolle changed the title Add option --require Add option --require to load custom Ruby code before starting Oct 13, 2017
@olleolleolle olleolleolle force-pushed the feature/add-option-require branch from 7f55fe5 to a43903d Compare October 14, 2017 12:35
@olleolleolle
Copy link
Collaborator Author

#575 was the missing meta-documentation "How do I regenerate man page documentation?"

@olleolleolle
Copy link
Collaborator Author

olleolleolle commented Oct 14, 2017

YARD does this for naming:

    -e, --load FILE                  A Ruby script to load before running command.
        --plugin PLUGIN              Load a YARD plugin (gem with `yard-' prefix)

@olleolleolle olleolleolle force-pushed the feature/add-option-require branch from 4622707 to 5456b90 Compare October 14, 2017 18:49
@olleolleolle olleolleolle merged commit ad0d972 into github-changelog-generator:master Oct 14, 2017
@olleolleolle olleolleolle deleted the feature/add-option-require branch October 14, 2017 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant