Check out all commits
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 55s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 55s
This commit is contained in:
parent
0981b00273
commit
30daecfc3f
2 changed files with 2 additions and 8 deletions
|
@ -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: |
|
||||
|
|
|
@ -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, '');
|
||||
|
|
Loading…
Reference in a new issue