[skip] hide internal commits, only show four lines
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
14
index.js
14
index.js
@@ -5,14 +5,24 @@ import stores from "./stores.json" assert { type: "json" };
|
||||
|
||||
function GetRecentChanges() {
|
||||
const res = process
|
||||
.execSync('git log -4 --pretty=format:"%ct %s"')
|
||||
.execSync('git log -15 --pretty=format:"%ct %s"')
|
||||
.toString();
|
||||
return res.split("\n");
|
||||
}
|
||||
|
||||
function ChangeLog(logs) {
|
||||
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 date = new Date(s[0] * 1000).toLocaleDateString("en-US", {
|
||||
year: "numeric",
|
||||
|
Reference in New Issue
Block a user