diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-08-02 10:51:02 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-08-02 10:51:02 +0200 |
| commit | 3571c41da1d30e61e8436079073ebcbfe50ac8de (patch) | |
| tree | d4b9e7a543f4cf487af4014ccebec266a6ba2779 /github.js | |
| parent | 6c49b91f05262e4ce4ce992e0ab8d5275c0ef0bd (diff) | |
| download | snap-3571c41da1d30e61e8436079073ebcbfe50ac8de.tar.gz snap-3571c41da1d30e61e8436079073ebcbfe50ac8de.zip | |
allow setting a commit message when saving to GitHub
Diffstat (limited to 'github.js')
| -rw-r--r-- | github.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |
