From 30daecfc3fbaa1652eead0912de7ec3476d08621 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 10 Jun 2024 21:37:24 -0500 Subject: [PATCH] Check out all commits --- .forgejo/workflows/deploy.yml | 1 + build_garden.js | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 689e65f6..6505c929 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -19,6 +19,7 @@ jobs: with: token: ${{ secrets.GH_PAT }} 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. run: | diff --git a/build_garden.js b/build_garden.js index 851f7f90..6eed1ea9 100644 --- a/build_garden.js +++ b/build_garden.js @@ -194,17 +194,10 @@ function toSlug(string) { // Build changelog fs.mkdirSync("./site/changelog"); - await exec("git fetch --all") - 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 { stdout } = await exec('git log --after="2024-06-03T0:0:0+0000" --pretty=%H origin/master -- site/garden'); 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: 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' }); changes = changes.replaceAll(/\/index.md/g, '');