This commit is contained in:
Peter Maquiran
2022-12-22 17:21:43 +01:00
parent 27ad665977
commit 7fb7064139
8 changed files with 22 additions and 31 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ const authorName = childProcess.execSync("git log -1 --pretty=format:'%an'").toS
const commitTime = childProcess.execSync("git log -1 --pretty=format:'%cd'").toString().trim();
const commitMsg = childProcess.execSync("git log -1 --pretty=%B").toString().trim();
const totalCommitCount = childProcess.execSync("git rev-list --count HEAD").toString().trim();
const change = childProcess.execSync("git diff").toString().trim();
// const change = childProcess.execSync(``).toString().trim();
const versionInfo = {
shortSHA: shortSHA,
@@ -18,7 +18,7 @@ const versionInfo = {
lastCommitTime: commitTime,
lastCommitMessage: commitMsg,
lastCommitNumber: totalCommitCount,
change
// change
}
const versionInfoJson = JSON.stringify(versionInfo, null, 2);