1.3.0 • Published 10 years ago
generate_release_notes v1.3.0
Generate Release Notes
This generates two files
notes.html a view of your change logs and readme
changelogs.json the github dump
CLI Usage
Install using
npm i -g generate_release_notes
You need the following param
--repo=:owner/:repo
The following params are optional
--save-to=folder_locationsaves notes.html and changelog.json to this folder, defaults to./--token=xxxthe github oatuh token--from-tag-name=x.x.x.x.x.x...assumption it is a versioned number--last-releases=Xgets the last X releases--readme-location=file_locationthis will be in the top of notes.html, will not be present when not given--style-sheet-location=file_locationadds style sheet for notes.html, will still look like readme--usageor--helpexits and displays this message
Node Usage
Install using
npm i --save-dev generate_release_notes
var generate = require('generate_release_notes');
var options = {
'repo':':owner/:repo',
'save-to':'folder_location',
'token':'xxx',
'readme-location':'file_location',
'style-sheet-location':'file_location',
'from-tag-name':'x.x.x.x.x.x...',
'last-releases': X,
'callback': function(data) {
console.log(data.notes) // the html string
console.log(data.changelogs) // the json string
}
}
generate.create(options);In this case you will need the callback because of the call to github