mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-18 12:47:50 +01:00
config: get commit author email from git config
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
const { execSync } = require("child_process");
|
const { execSync } = require("child_process");
|
||||||
const { readFileSync } = require("fs");
|
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")
|
.toString("utf-8")
|
||||||
.trim();
|
.trim();
|
||||||
const authors = readFileSync("AUTHORS", "utf-8");
|
const authors = readFileSync("AUTHORS", "utf-8");
|
||||||
|
|||||||
Reference in New Issue
Block a user