MCPcopy
hub / github.com/Famous/famous-angular / generate

Function generate

changelog.js:188–197  ·  view source on GitHub ↗
(version, file)

Source from the content-addressed store, hash-verified

186
187
188var generate = function(version, file) {
189 getPreviousTag().then(function(tag) {
190 // console.log('Reading git log since', tag);
191 readGitLog('^fix|^feat|^perf|^docs|BREAKING', tag).then(function(commits) {
192 // console.log('Parsed', commits.length, 'commits');
193 // console.log('Generating changelog to', file || 'stdout', '(', version, ')');
194 writeChangelog(file ? fs.createWriteStream(file) : process.stdout, commits, version);
195 });
196 });
197};
198
199
200// publish for testing

Callers 1

changelog.jsFile · 0.85

Calls 3

getPreviousTagFunction · 0.85
readGitLogFunction · 0.85
writeChangelogFunction · 0.85

Tested by

no test coverage detected