chore: sync Gitea 28.4.0 inputs and compatibility docs
Validate / Validate (push) Successful in 2m51s

This commit is contained in:
KenanZhu committed 2026-11-17 11:12:25 +08:00
1 parent e6925fb721
commit 27aab63baf
8 files changed
+21 -17

No files matched your search

+2
View File
@@ -13,6 +13,7 @@ Select the recommended template release for the Gitea version you run. `[PASS]`
| Gitea version | Recommended template release | Status | Notes | | Gitea version | Recommended template release | Status | Notes |
|---|---|---|---| |---|---|---|---|
| 28.4.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - |
| 28.3.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | Official outer-spacing fix; this project’s themes define their own spacing and are unaffected | | 28.3.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | Official outer-spacing fix; this project’s themes define their own spacing and are unaffected |
| 28.2.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - | | 28.2.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - |
| 28.1.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - | | 28.1.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - |
@@ -38,6 +39,7 @@ This table describes changes in **Gitea**, not fixes in this template repository
| Gitea | Release date | Mail template changes | Impact | | Gitea | Release date | Mail template changes | Impact |
|---|---|---|---| |---|---|---|---|
| **28.4.0** | 2026-11-16 | None | None |
| **28.3.0** | 2026-11-01 | Fix missing outer spacing in notification emails ([PR #40104](https://github.com/go-gitea/gitea/pull/40104)) ([PR #40111](https://github.com/go-gitea/gitea/pull/40111)) | None | | **28.3.0** | 2026-11-01 | Fix missing outer spacing in notification emails ([PR #40104](https://github.com/go-gitea/gitea/pull/40104)) ([PR #40111](https://github.com/go-gitea/gitea/pull/40111)) | None |
| **28.2.0** | 2026-10-18 | Custom-watch notification recipient rules and incoming reply token validation changed; existing templates are unaffected | None | | **28.2.0** | 2026-10-18 | Custom-watch notification recipient rules and incoming reply token validation changed; existing templates are unaffected | None |
| **28.1.0** | 2026-10-06 | None | None | | **28.1.0** | 2026-10-06 | None | None |
+3 -3
View File
@@ -69,10 +69,10 @@ The root lock file records the Gitea tag, its commit and file SHA-256 hashes. `v
#### Updating the Official Version #### Updating the Official Version
Use `sync` only when reviewing a new official version. For example, to explicitly synchronize to `v28.3.0`: Use `sync` only when reviewing a new official version. For example, to explicitly synchronize to `v28.4.0`:
```bash ```bash
go run . upstream sync --tag v28.3.0 go run . upstream sync --tag v28.4.0
go run . upstream verify go run . upstream verify
go test ./... go test ./...
go run . preview all go run . preview all
@@ -347,7 +347,7 @@ Use concise commit messages. The following prefixes are available as a reference
Release tags must match the locked Gitea tag. Version labels, badges and compatibility records are maintained manually; changing official inputs does not trigger automatic version maintenance. Retain historical release assets and check documentation and compatibility records before tagging. After validation and generation of all previews, you can package manually from the repository root: Release tags must match the locked Gitea tag. Version labels, badges and compatibility records are maintained manually; changing official inputs does not trigger automatic version maintenance. Retain historical release assets and check documentation and compatibility records before tagging. After validation and generation of all previews, you can package manually from the repository root:
```bash ```bash
python .github/scripts/package_release.py --version v28.3.0 --output build/release-review python .github/scripts/package_release.py --version v28.4.0 --output build/release-review
``` ```
Replace the example version with the tag in the root lock file and use an output directory without release archives of the same name. The script checks source and artifact hashes, packages themes, previews, documentation, the official license and provenance, and excludes stale theme builds. Replace the example version with the tag in the root lock file and use an output directory without release archives of the same name. The script checks source and artifact hashes, packages themes, previews, documentation, the official license and provenance, and excludes stale theme builds.
+3 -3
View File
@@ -126,11 +126,11 @@ Open [http://127.0.0.1:3456](http://127.0.0.1:3456). The server watches theme fi
## Compatibility ## Compatibility
- **Latest tested:** Gitea 28.3.0 - **Latest tested:** Gitea 28.4.0
- **Source build baseline:** Gitea 28.3.0 - **Source build baseline:** Gitea 28.4.0
- **Latest release:** [v28.1.0](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/latest) - **Latest release:** [v28.1.0](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/latest)
Gitea 28.3.0 introduces no mail template interface changes, so the published v28.1.0 templates remain compatible. Source builds use the locked v28.3.0 official inputs; see the [compatibility records](COMPATIBILITY.md). Gitea 28.4.0 introduces no mail template interface changes, so the published v28.1.0 templates remain compatible. Source builds use the locked v28.4.0 official inputs; see the [compatibility records](COMPATIBILITY.md).
## Project Directory Structure ## Project Directory Structure
+2
View File
@@ -13,6 +13,7 @@
| Gitea 版本 | 推荐模板版本 | 状态 | 说明 | | Gitea 版本 | 推荐模板版本 | 状态 | 说明 |
|---|---|---|---| |---|---|---|---|
| 28.4.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - |
| 28.3.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | 官方修复邮件外部间距;本项目主题自行设置间距,不受影响 | | 28.3.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | 官方修复邮件外部间距;本项目主题自行设置间距,不受影响 |
| 28.2.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - | | 28.2.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - |
| 28.1.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - | | 28.1.0 | [**v28.1.0**](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/tag/v28.1.0) | [PASS] | - |
@@ -38,6 +39,7 @@
| Gitea | 发布日期 | 邮件模板变化 | 影响 | | Gitea | 发布日期 | 邮件模板变化 | 影响 |
|---|---|---|---| |---|---|---|---|
| **28.4.0** | 2026-11-16 | 无 | 无 |
| **28.3.0** | 2026-11-01 | 修复通知邮件外部间距丢失问题 ([PR #40104](https://github.com/go-gitea/gitea/pull/40104))([PR #40111](https://github.com/go-gitea/gitea/pull/40111)) | 无 | | **28.3.0** | 2026-11-01 | 修复通知邮件外部间距丢失问题 ([PR #40104](https://github.com/go-gitea/gitea/pull/40104))([PR #40111](https://github.com/go-gitea/gitea/pull/40111)) | 无 |
| **28.2.0** | 2026-10-18 | 自定义关注的通知收件规则及入站回复令牌校验调整,不影响现有模板 | 无 | | **28.2.0** | 2026-10-18 | 自定义关注的通知收件规则及入站回复令牌校验调整,不影响现有模板 | 无 |
| **28.1.0** | 2026-10-06 | 无 | 无 | | **28.1.0** | 2026-10-06 | 无 | 无 |
+3 -3
View File
@@ -69,10 +69,10 @@ go run . upstream verify --root "C:\Projects\GiteaMailTemplates"
#### 更新官方版本 #### 更新官方版本
只有需要评审新的官方版本时才使用 `sync`。例如,明确同步到 `v28.3.0`: 只有需要评审新的官方版本时才使用 `sync`。例如,明确同步到 `v28.4.0`:
```bash ```bash
go run . upstream sync --tag v28.3.0 go run . upstream sync --tag v28.4.0
go run . upstream verify go run . upstream verify
go test ./... go test ./...
go run . preview all go run . preview all
@@ -347,7 +347,7 @@ python -B -m unittest discover -s .github/scripts -p 'test_*.py'
发行标签必须与锁定的 Gitea 标签一致。版本标记、徽章和兼容性记录由维护者手动更新;修改官方输入不会自动触发版本维护。历史发行附件应保留,文档和兼容性记录应在打标签前检查。完成验证并生成全部预览后,可在仓库根目录手动打包: 发行标签必须与锁定的 Gitea 标签一致。版本标记、徽章和兼容性记录由维护者手动更新;修改官方输入不会自动触发版本维护。历史发行附件应保留,文档和兼容性记录应在打标签前检查。完成验证并生成全部预览后,可在仓库根目录手动打包:
```bash ```bash
python .github/scripts/package_release.py --version v28.3.0 --output build/release-review python .github/scripts/package_release.py --version v28.4.0 --output build/release-review
``` ```
将示例版本替换为根锁文件中的标签,并使用没有同名发行压缩包的输出目录。脚本检查源码与产物的校验值,打包主题、预览、文档、官方许可证和来源信息,排除残留的旧主题构建。 将示例版本替换为根锁文件中的标签,并使用没有同名发行压缩包的输出目录。脚本检查源码与产物的校验值,打包主题、预览、文档、官方许可证和来源信息,排除残留的旧主题构建。
+3 -3
View File
@@ -126,11 +126,11 @@ cd ..
## 兼容性 ## 兼容性
- **最新测试:** Gitea 28.3.0 - **最新测试:** Gitea 28.4.0
- **源码构建基线:** Gitea 28.3.0 - **源码构建基线:** Gitea 28.4.0
- **最新发布版:** [v28.1.0](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/latest) - **最新发布版:** [v28.1.0](https://gitea.kenanzhu.com/KenanZhu/GiteaMailTemplates/releases/latest)
Gitea 28.3.0 未引入邮件模板接口变更,已发布的 v28.1.0 模板仍兼容;源码构建使用锁定的 v28.3.0 官方输入,详见[兼容性记录](COMPATIBILITY.zh-CN.md)。 Gitea 28.4.0 未引入邮件模板接口变更,已发布的 v28.1.0 模板仍兼容;源码构建使用锁定的 v28.4.0 官方输入,详见[兼容性记录](COMPATIBILITY.zh-CN.md)。
## 项目目录结构 ## 项目目录结构
+3 -3
View File
@@ -1,8 +1,8 @@
{ {
"schema": 1, "schema": 1,
"repository": "https://github.com/go-gitea/gitea", "repository": "https://github.com/go-gitea/gitea",
"tag": "v28.3.0", "tag": "v28.4.0",
"commit": "4f5a3e13e5f3aca85d830e3a9024c893b0bbf1e1", "commit": "0b5dfdeeeaadf6350314246c5936b53cce38170c",
"files": { "files": {
"LICENSE": "ed2f10a9d78b8c6c9ef33f1420d0eb266981891caf2f15d630553f02dc60d3ae", "LICENSE": "ed2f10a9d78b8c6c9ef33f1420d0eb266981891caf2f15d630553f02dc60d3ae",
"modules/templates/mail.go": "fb8204b79f700f88c7c3f0da16e50c3d678a2216e62e98f712805ed1d42ab3a9", "modules/templates/mail.go": "fb8204b79f700f88c7c3f0da16e50c3d678a2216e62e98f712805ed1d42ab3a9",
@@ -12,7 +12,7 @@
"options/locale/locale_cs-CZ.json": "816c4a0cfc6112c8cc9a63e63b3de0bc623819a23d2f2bbb800b09c45d23da66", "options/locale/locale_cs-CZ.json": "816c4a0cfc6112c8cc9a63e63b3de0bc623819a23d2f2bbb800b09c45d23da66",
"options/locale/locale_de-DE.json": "593ec4e3652c0faf9ecb5d5b27a649c1c0a933030ecdfbf4dc810ea4ad69bfb8", "options/locale/locale_de-DE.json": "593ec4e3652c0faf9ecb5d5b27a649c1c0a933030ecdfbf4dc810ea4ad69bfb8",
"options/locale/locale_el-GR.json": "dd03e6e083d6286d8eb2045a37bcf5c578fc339ab87a72a7397e01733078d89e", "options/locale/locale_el-GR.json": "dd03e6e083d6286d8eb2045a37bcf5c578fc339ab87a72a7397e01733078d89e",
"options/locale/locale_en-US.json": "ae6566c5c5e3fbe370363d525c1a51f09054c726d5da72bda4bf5394c7873061", "options/locale/locale_en-US.json": "667ea422b34f222dfd672fc6396991f3138dec4320bce1e7f56afb26083bb601",
"options/locale/locale_es-ES.json": "cbb1cd7bc4709a189b8b189d26a83a06fed0c32e0b5ac5602370fb0f03a39d04", "options/locale/locale_es-ES.json": "cbb1cd7bc4709a189b8b189d26a83a06fed0c32e0b5ac5602370fb0f03a39d04",
"options/locale/locale_fa-IR.json": "ad85f5829335844883608ed5ed09dee5bc5f4800cda7ef9277200aa4a7f35f32", "options/locale/locale_fa-IR.json": "ad85f5829335844883608ed5ed09dee5bc5f4800cda7ef9277200aa4a7f35f32",
"options/locale/locale_fi-FI.json": "3b811b0ee794548399bcb64a887711a26cc0c26e04dfd0305b0846742d065952", "options/locale/locale_fi-FI.json": "3b811b0ee794548399bcb64a887711a26cc0c26e04dfd0305b0846742d065952",
+2 -2
View File
@@ -12,7 +12,7 @@ func TestSnapshotAndKeys(t *testing.T) {
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
if s.Lock.Tag != "v28.3.0" || len(s.Templates) != 13 || len(s.Locales) != 28 { if s.Lock.Tag != "v28.4.0" || len(s.Templates) != 13 || len(s.Locales) != 28 {
t.Fatalf("unexpected baseline %s", s.Lock.Tag) t.Fatalf("unexpected baseline %s", s.Lock.Tag)
} }
keys, err := ReferencedKeys(s) keys, err := ReferencedKeys(s)
@@ -32,7 +32,7 @@ func TestSnapshotAndKeys(t *testing.T) {
if ValidateKeys(s) == nil { if ValidateKeys(s) == nil {
t.Fatal("missing English key accepted") t.Fatal("missing English key accepted")
} }
if !validTag("v28.0.0") || !validTag("v28.3.0") || validTag("v1.27.3") || validTag("v28.3.0-rc1") { if !validTag("v28.0.0") || !validTag("v28.4.0") || validTag("v1.27.3") || validTag("v28.4.0-rc1") {
t.Fatal("tag policy") t.Fatal("tag policy")
} }
for _, p := range []string{"../x", "/x", "C:/x", "mail\\x"} { for _, p := range []string{"../x", "/x", "C:/x", "mail\\x"} {