config: get commit author email from git config

This commit is contained in:
Abdullah Atta
2022-08-29 13:50:47 +05:00
parent fe793fc7ad
commit a744b3edfd

View File

@@ -3,7 +3,7 @@
const { execSync } = require("child_process");
const { readFileSync } = require("fs");
const authorEmail = execSync(`git show -s --format='%ae' HEAD`)
const authorEmail = execSync(`git config --global --get user.email`)
.toString("utf-8")
.trim();
const authors = readFileSync("AUTHORS", "utf-8");