This is my contribution to Superalgos

This commit is contained in:
Luis Fernando Molina committed 2021-01-05 15:40:52 +01:00
commit b954703041
33 files changed
+207 -737

No files matched your search

+2 -1
View File
@@ -526,7 +526,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
switch (requestParameters[2]) { // switch by command
case 'Contribute': {
try {
let GITHUB
let GITHUB
try {
GITHUB = require('../Github.json')
} catch (err) {
@@ -549,6 +549,7 @@ exports.newHttpInterface = function newHttpInterface(WEB_SERVER, DATA_FILE_SERVE
const remote = `https://${GITHUB.user}:${GITHUB.password}@${GITHUB.repository}`;
git
.pull()
.add('./*')
.commit(commitMessage)
.push(remote)