From 3571c41da1d30e61e8436079073ebcbfe50ac8de Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sat, 2 Aug 2014 10:51:02 +0200 Subject: allow setting a commit message when saving to GitHub --- github.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'github.js') diff --git a/github.js b/github.js index 9534d64..6f0ce6e 100644 --- a/github.js +++ b/github.js @@ -131,7 +131,7 @@ GitHubBackend.prototype.login = function ( } }; -GitHubBackend.prototype.saveProject = function (ide, callBack, errorCall) { +GitHubBackend.prototype.saveProject = function (commitMessage, ide, callBack, errorCall) { var myself = this, pdata, media; @@ -191,7 +191,7 @@ GitHubBackend.prototype.saveProject = function (ide, callBack, errorCall) { if (myself.gh !== null) { var repo = myself.gh.getRepo(myself.username, ide.projectName); var branch = repo.getBranch(); // master (default) - var message = ''; // TODO optional: specify message + var message = commitMessage; var contents = { 'snap.xml': pdata, -- cgit v1.3.1