Check out all commits
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 55s

This commit is contained in:
thepaperpilot 2024-06-10 21:37:24 -05:00
parent 0981b00273
commit 30daecfc3f
2 changed files with 2 additions and 8 deletions

View file

@ -19,6 +19,7 @@ jobs:
with: with:
token: ${{ secrets.GH_PAT }} token: ${{ secrets.GH_PAT }}
submodules: recursive submodules: recursive
fetch-depth: 0
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: | run: |

View file

@ -194,17 +194,10 @@ function toSlug(string) {
// Build changelog // Build changelog
fs.mkdirSync("./site/changelog"); fs.mkdirSync("./site/changelog");
await exec("git fetch --all") const { stdout } = await exec('git log --after="2024-06-03T0:0:0+0000" --pretty=%H origin/master -- site/garden');
console.log("remotes: " + (await exec("git branch -r")).stdout);
console.log("head: " + (await exec("git show origin/master")).stdout);
console.log("head-1: " + (await exec("git show origin/master~")).stdout);
console.log("head-5: " + (await exec("git show origin/master~4")).stdout);
const { stdout } = await exec('git log --after="2024-06-03T0:0:0+0000" --pretty=%H origin/HEAD');
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, '');