Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

fix(changelog): a regeneration commit must not appear in the file it regenerates

Rahmana7941565ab66
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 9c03982a..6dbf99a6 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -15,6 +15,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Fixed**
+- `changelog` a regeneration commit must not appear in the file it regenerates
- `deps` pin nanoid >=3.3.18 — the audit gate has been failing on main
- `managed-apps` say why a dashboard is missing instead of silently opening a terminal
- `install` write the uid out — %U resolves to 0 for a User=<name> system unit
diff --git a/scripts/gen-changelog.mjs b/scripts/gen-changelog.mjs
index 2a52251f..765347b0 100644
--- a/scripts/gen-changelog.mjs
+++ b/scripts/gen-changelog.mjs
@@ -52,8 +52,19 @@ const RAW = execSync(
/** @type {Map<string, {hash:string,type:string,scope:string,subject:string}[]>} */
const byDay = new Map();
+// A commit that only regenerates THIS file must not appear IN it. It is not a
+// change anyone reads about, and listing it makes the file stale the instant it is
+// committed: the generator reads subjects, so "docs(changelog): regenerate" is a
+// subject the freshly-written file does not contain. `ship.sh` normally folds the
+// regeneration into the commit it describes and never hits that, but when there is
+// nothing to fold into (`ship` with an already-committed tree) it made its own
+// commit — and the staleness gate then blocked every push, forever. Fixed here
+// rather than in ship.sh so no caller can reintroduce the loop.
+const SELF = /^docs\(changelog\)/i;
+
for (const line of RAW.split("\n").filter(Boolean)) {
const [hash, date, subject] = line.split("\0");
+ if (SELF.test(subject ?? "")) continue;
const m = /^(\w+)(?:\(([^)]*)\))?!?:\s*(.+)$/.exec(subject ?? "");
const type = m && LABEL.has(m[1]) ? m[1] : "other";
if (!byDay.has(date)) byDay.set(date, []);