From cd93d7eb5e64bef2bd505147a4fb1b3f356b6d53 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 11 Apr 2026 17:56:55 +0200 Subject: [PATCH] Read default MSSP server name from SERVERNAME instead --- .agents/skills/ev/SKILL.md | 38 ++++++++++++++++++++--- CHANGELOG.md | 1 + evennia/game_template/server/conf/mssp.py | 5 +-- 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/.agents/skills/ev/SKILL.md b/.agents/skills/ev/SKILL.md index 43ea460e96..d2003e3d08 100644 --- a/.agents/skills/ev/SKILL.md +++ b/.agents/skills/ev/SKILL.md @@ -12,6 +12,7 @@ Route based on the first argument: - `issues` → [List issues needing triage](#issues) - `issues all` → [List all actionable open issues](#issues) - `clog #NNN` → [Add changelog entry for a PR or issue](#clog) +- `clog ` → [Add freeform changelog entry](#clog) - `clog validate` → [Validate CHANGELOG.md structure](#clog-validate) If no argument or unrecognized subcommand, show available subcommands. @@ -73,12 +74,20 @@ oldest-first. ## clog -**Usage:** `/ev clog #NNN` +**Usage:** `/ev clog #NNN` or `/ev clog ` -Add a changelog entry to `CHANGELOG.md` for a merged PR or resolved issue, -crediting the contributor. +Add a changelog entry to `CHANGELOG.md`. -### Steps +### Routing + +- If the argument is a number (with or without `#`), treat it as a **PR/issue + number** and follow the [linked entry](#clog-linked) steps. +- Otherwise, treat the entire argument string as **freeform text** and follow + the [freeform entry](#clog-freeform) steps. + +### clog-linked + +For PR/issue numbers. 1. Run the helper script to fetch metadata and generate the entry: ``` @@ -100,6 +109,27 @@ crediting the contributor. the `## Main branch` section (before the next `## ` heading). 4. Show the user the final diff for confirmation. +### clog-freeform + +For entries not tied to a specific PR or issue (local fixes, minor tweaks, +etc.). These produce unlinked entries with no link-reference line. + +1. Parse the freeform text into a changelog entry. The text may already be + a well-formed entry or just a rough description. Produce a line matching + the format: `- : ()` where: + - **Cat** — guess from the text: `Feat`, `Fix`, `Doc`, or `Security`. + Default to `Fix` if unclear. + - **Description** — clean up the text: capitalize the first letter, trim + trailing periods, keep it concise (one line preferred, wrap with + two-space indent if truly needed). + - **Author** — use the git user name (`git config user.name`). If the + text already contains a parenthesised author, keep it. +2. Show the generated entry to the user for approval. +3. Read `CHANGELOG.md` and insert the entry line into the `## Main branch` + section, ordered by category (same rules as linked entries). No link + reference is needed. +4. Show the user the final diff for confirmation. + --- ## clog-validate diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d1699f5c7..b4e56d0311 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ game template placeholder (Griatch) - [Fix][issue3890]: Log RuntimeErrors during auto-puppet on login instead of silently swallowing them (Griatch) +- Fix: MSSP game name now uses settings.SERVERNAME instead of hardcoded "Mygame" default (Griatch) - Docs: Griatch, BigJMoney [pull3866]: https://github.com/evennia/evennia/pull/3866 diff --git a/evennia/game_template/server/conf/mssp.py b/evennia/game_template/server/conf/mssp.py index 9472f4739f..baf4a4ff54 100644 --- a/evennia/game_template/server/conf/mssp.py +++ b/evennia/game_template/server/conf/mssp.py @@ -19,8 +19,9 @@ needed on the Evennia side. """ MSSPTable = { - # Required fields - "NAME": "Mygame", # usually the same as SERVERNAME + # The NAME field is automatically set from settings.SERVERNAME. To override, + # uncomment the line below. + # "NAME": "My Custom Name", # Generic "CRAWL DELAY": "-1", # limit how often crawler may update the listing. -1 for no limit "HOSTNAME": "", # telnet hostname