Compare commits
2 Commits
0a20291b94
...
0297cca236
Author | SHA1 | Date | |
---|---|---|---|
0297cca236 | |||
03e0a54399 |
@ -1,7 +1,8 @@
|
|||||||
clone:
|
clone:
|
||||||
git:
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
settings:
|
settings:
|
||||||
depth: 5
|
depth: 15
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
media="screen"
|
media="screen"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
type="text/css"
|
type="text/css"
|
||||||
href="/css/site.css?1697074571690"
|
href="/css/site.css?1697075405981"
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta
|
||||||
property="title"
|
property="title"
|
||||||
@ -150,6 +150,7 @@
|
|||||||
<details>
|
<details>
|
||||||
<summary>Recent Changes</summary>
|
<summary>Recent Changes</summary>
|
||||||
<ul id="changesList">
|
<ul id="changesList">
|
||||||
|
<li>October 11, 2023 - add this fancy recent changes module</li>
|
||||||
<li>
|
<li>
|
||||||
October 8, 2023 - move Burnt Books into Hey Kids!, update
|
October 8, 2023 - move Burnt Books into Hey Kids!, update
|
||||||
archestratus to note there's no cafe anymore
|
archestratus to note there's no cafe anymore
|
||||||
|
14
index.js
14
index.js
@ -5,14 +5,24 @@ import stores from "./stores.json" assert { type: "json" };
|
|||||||
|
|
||||||
function GetRecentChanges() {
|
function GetRecentChanges() {
|
||||||
const res = process
|
const res = process
|
||||||
.execSync('git log -4 --pretty=format:"%ct %s"')
|
.execSync('git log -15 --pretty=format:"%ct %s"')
|
||||||
.toString();
|
.toString();
|
||||||
return res.split("\n");
|
return res.split("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
function ChangeLog(logs) {
|
function ChangeLog(logs) {
|
||||||
let res = "\n";
|
let res = "\n";
|
||||||
logs.forEach((l, i) => {
|
let i = 0;
|
||||||
|
logs.forEach((l) => {
|
||||||
|
if (
|
||||||
|
i > 3 ||
|
||||||
|
l.includes("[skip]") ||
|
||||||
|
l.includes("caddy") ||
|
||||||
|
l.includes("renovate")
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
i++;
|
||||||
const s = l.split(" ");
|
const s = l.split(" ");
|
||||||
const date = new Date(s[0] * 1000).toLocaleDateString("en-US", {
|
const date = new Date(s[0] * 1000).toLocaleDateString("en-US", {
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
|
Loading…
Reference in New Issue
Block a user