Skip to content

Instantly share code, notes, and snippets.

View makomweb's full-sized avatar
🌀

Martin Komischke makomweb

🌀
View GitHub Profile
@makomweb
makomweb / create_changelog.js
Last active December 31, 2015 15:09
Write all the GIT commit messages since the last tag (on the current branch) into a changelog file.
var usage_description = "Usage: node create_changelog.js MyChangelog.txt \"Changelog for nightly build version 0.9.0.1\"";
var args = ParseArguments();
var spawn = require('child_process').spawn;
var fs = require('fs');
var prc = spawn('git', ['describe', '--tags', '--abbrev=0']);
prc.stdout.setEncoding('utf8');
prc.stdout.on('data', function (data) {
var str = data.toString();
var lines = str.split(/(\r?\n)/g);