Comments (5)
Hi, @richardthombs , yeah you can write a pull request if you want.
All the default options are specified in /tasks/default.js
.
In the /tasks/command.js
you can see an example of how this defaults are overriden:
var defaults = require('./defaults');
var _ = require('lodash');
var options = _.defaults({}, defaults);
The lodash
_.defaults
methods, clones the object and assigns some extra overriden values. (See lodash.com docs)
After having the options
object, we assign some new values from the CLI with options.whatever = whatever
. Then we send them to the generator:
git_changelog.generate(options)
The generate method is in /tasks/lib/generate
. This first of all invokes the .init
method, that configures the library with the options in the this.initOptions(params);
method. (That is at /tasks/lib/init-options.js
).
I see a bit of duplicity here this.options = _.defaults(params, defaults);
. But whatever, here are finally setted the options in the library.
Your new options should arrive to this point. Then use them as needed accesing to this.options.myNewOption
at any point of the application. As all is a big object containing all the methods.
Sorry for the delay.
Be sure to add tests. 👍 @JohnnyEstilles have worked hard on getting a good coverage
from git-changelog.
Thanks for the info, I'll take a crack at it soon.
from git-changelog.
@richardthombs With the new template system you can add your custom salute message and your custom link formatting. 👍
from git-changelog.
What else could I ask for on Christmas day! THANK YOU :)
from git-changelog.
Merged and 1.2.0 released! Thank you too! merry xmas
from git-changelog.
Related Issues (20)
- .changelogrc not searched in the running directory
- Grunt git_changelog doesn't work HOT 1
- Version does not default to tag name HOT 1
- Grouped by tag for the full history (HELP WANTED) HOT 8
- Make git-changelog available for webpack or gulp? HOT 4
- What branch is the git log generated in comparing to?
- How to read tag that created in the new line? HOT 7
- Sorry, you've not configured an origin remote or passed a `repo_url` config value HOT 2
- Create changelogs from non-downloaded repositories
- How to run the `git-changelog` locally without install globally? HOT 2
- Multiple Sections in single commit HOT 2
- template.md
- explanation on the logic for git log HOT 1
- Date of commit HOT 2
- Wrong default tag HOT 3
- template docs HOT 2
- How to include all the commits HOT 2
- Add support for Node 12 HOT 4
- Upgrade test env
- error: Bad link to repo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-changelog.