function addVersionJSONToChangelog(version, changes) {
	if (!changelog) readChangelog();
	var entry = '\n\n## ' + version;

	changes.forEach(function(change) {
		entry += '\n* ' + change.type + ': ' + change.category + ': ' +
			change.description;
	});

	var logParts = changelog.split(insertMarker);
	logParts[0] = logParts[0]
		.replace(versionMarkerReg, versionMarker.join(version)) + insertMarker;
	changelog = logParts.join(entry);
}
function addVersionJSONToChangelog(version, changes) {
	if (!changelog) readChangelog();
	var entry = '\n\n## ' + version;

	changes.forEach(function(change) {
		entry += '\n* ' + change.type + ': ' + change.category + ': ' +
			change.description;
	});

	var logParts = changelog.split(insertMarker);
	logParts[0] = logParts[0]
		.replace(versionMarkerReg, versionMarker.join(version)) + insertMarker;
	changelog = logParts.join(entry);
}
function addVersionJSONToChangelog ( version , changes ) { if ( ! changelog ) readChangelog ( ) ; var entry = '\n\n## ' + version ; changes . forEach ( function ( change ) { entry += '\n* ' + change . type + ': ' + change . category + ': ' + change . description ; } ) ; var logParts = changelog . split ( insertMarker ) ; logParts [ 0 ] = logParts [ 0 ] . replace ( versionMarkerReg , versionMarker . join ( version ) ) + insertMarker ; changelog = logParts . join ( entry ) ; }
This will not to write to file writeToChangelog must be called after
This will not to write to file writeToChangelog must be called after
Add version to changelog