Debugging statements
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 21s

This commit is contained in:
thepaperpilot 2024-06-05 23:20:22 -05:00
parent 3a535bd5ae
commit 16c755e868

View file

@ -195,9 +195,11 @@ function toSlug(string) {
fs.mkdirSync("./site/changelog"); fs.mkdirSync("./site/changelog");
const { stdout } = await exec('git log --after="2024-06-03T0:0:0+0000" --pretty=%H site/garden'); const { stdout } = await exec('git log --after="2024-06-03T0:0:0+0000" --pretty=%H site/garden');
console.log(stdout);
const entries = await Promise.all(stdout.split("\n").filter(p => p).map(hash => new Promise(async (resolve) => { const entries = await Promise.all(stdout.split("\n").filter(p => p).map(hash => new Promise(async (resolve) => {
const { stdout: title } = await exec(`git show --quiet --format=%s ${hash}`); const { stdout: title } = await exec(`git show --quiet --format=%s ${hash}`);
const { stdout: time } = await exec(`git show --quiet --format=%as ${hash}`); const { stdout: time } = await exec(`git show --quiet --format=%as ${hash}`);
console.log(">", hash, title, time)
let { stdout: changes } = await exec(`git show --format="" --stat=100 --relative ${hash} .`, { cwd: 'site/garden' }); let { stdout: changes } = await exec(`git show --format="" --stat=100 --relative ${hash} .`, { cwd: 'site/garden' });
changes = changes.replaceAll(/\/index.md/g, ''); changes = changes.replaceAll(/\/index.md/g, '');