From d11ccd183d1e00c7538a17ded8d2cf9830097ad4 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sun, 23 Feb 2020 10:45:28 +0100 Subject: [PATCH] Add commetn to index.js I don't have so much experience in writing node-js scripts. It makes sense, to point out where most of the code in index.js is coming from. --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index 395d2ec..b70f3e0 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,11 @@ +/** + * Most of this code has been copied from the following GitHub Action + * to make it simpler or not necessary to install a lot of + * JavaScript packages to execute a shell script. + * + * https://github.com/ad-m/github-push-action/blob/fe38f0a751bf9149f0270cc1fe20bf9156854365/start.js + */ + const spawn = require('child_process').spawn; const path = require("path");