summaryrefslogtreecommitdiff
path: root/github.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-02 10:51:02 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-02 10:51:02 +0200
commit3571c41da1d30e61e8436079073ebcbfe50ac8de (patch)
treed4b9e7a543f4cf487af4014ccebec266a6ba2779 /github.js
parent6c49b91f05262e4ce4ce992e0ab8d5275c0ef0bd (diff)
downloadsnap-3571c41da1d30e61e8436079073ebcbfe50ac8de.tar.gz
snap-3571c41da1d30e61e8436079073ebcbfe50ac8de.zip
allow setting a commit message when saving to GitHub
Diffstat (limited to 'github.js')
-rw-r--r--github.js4
1 files changed, 2 insertions, 2 deletions
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,