This is my contribution to Superalgos
This commit is contained in:
commit
b954703041
33 files changed
+207
-737
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user