Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Merge branch 'main' into v0lumehi/notes-copilot-ci

v0lumehidae61aeab8a0
diff --cc RELEASING.md
index efe7ad72,dcd2ab37..5bffb631
--- a/RELEASING.md
+++ b/RELEASING.md
@@@ -59,9 -59,8 +59,10 @@@ CI writes a short body: the version an
The notes of a final release are a file in the repository, `release-notes/vX.Y.Z.md`, in the form of the template (the English part, then the Chinese part, no generated block). Merge it in a normal pull request before the final tag is pushed. When the final tag is built, CI creates the release with that file, a `---` line and GitHub's generated notes appended (`python3 tools/release_notes.py build`, the previous tag is the newest final tag before this one). `python3 tools/release_notes.py check release-notes/vX.Y.Z.md` runs the rules below and also runs in the pull request CI. Without the file CI writes the short body (the version and the tested candidate) and appends the generated notes. If the tool fails, the release gets the short body and CI prints a warning: a notes problem never stops a release. CI creates the release only when it does not exist, so notes edited by hand are never overwritten, and `gh release edit <tag> --notes-file <file>` stays the way to fix them later.
+The notes can also be written by the Copilot CLI: for a final tag the workflow [release-notes.yml](.github/workflows/release-notes.yml) gathers the changelog row and the merged pull requests, lets the model write the text from them only, and runs `check` on it. A text that passes is used when there is no reviewed `release-notes/vX.Y.Z.md` (that file always wins) and sets the release title from its first line. Without the secret `COPILOT_TOKEN`, with a failed model job or a failed check the release gets the short body and a warning. To try it on an existing release, run the workflow by hand with `publish` false and read the job summary. Setup, the model variable `RELEASE_NOTES_MODEL` and the prompt: [.github/release-notes/README.md](.github/release-notes/README.md).
+
- English first, Chinese second, under `## English` and `## 中文`, with the same content in both. Each part has one bullet per change, grouped in bold: a notice, Highlights, New, Fixed, Known issues, Requires.
+ - The release title is `vX.Y.Z: the one thing this release is about / the same in Chinese`, for example `v1.0.0: The iPhone and iPad app / iPhone 和 iPad 版发布`. English first, a colon after the version, ` / ` between the languages, no dash of any kind, no emoji, no semicolon. CI creates the final release with the tag alone as its title, so set the title together with the notes: `gh release edit <tag> --title "<title>" --notes-file <file>`.
- No emojis, no pictograms and no symbols in the text. No semicolons (also not the full-width one) and no em-dashes. Plain English and plain Chinese.
- People are written as `@login`, the owner as `@LNPANDY`.
- Every claim comes from the changelog row, the merged pull requests or the issues. Nothing is invented.