Skip to content

Commit 40db387

Browse files
🔖 chore: 添加数据包发布命令
添加release命令,用于自动化数据包版本发布流程 - 支持版本号更新和SemVer规范验证 - 自动生成中英文更新日志 - 提供版本发布总结报告
1 parent cbda8ef commit 40db387

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

.claude/commands/release.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
比对 @$ARGUMENTS 的上一个release(检索git标签)和最新commit的差异,总结然后执行以下步骤:
2+
3+
- 询问用户此次更新的级别,更新 @$ARGUMENTS/BUILD.bazel 的pack_version,确保符合SemVer规范: @SemVer.md
4+
- 更新 @$ARGUMENTS/NEWS.md 先添加中文更新日志(格式为无序列表),然后空一行添加分割线,再空一行添加英文翻译
5+
- 检查 @$ARGUMENTS/README.md ,如果有陈旧描述,更新它
6+
- 添加一个包含此次更改的commit,等待用户最终发布新版本
7+
- 最后提供一个总结报告

datapack-function-library/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
load("@//rule:datapack.bzl", "complete_datapack_config", "minecraft_versions_range")
22
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup")
33

4-
pack_version = "1.0.0"
4+
pack_version = "1.0.1"
55

66
# 主要的数据包配置,目标名称为包名称
77
complete_datapack_config(

datapack-function-library/NEWS.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
- 现在 dfl:dfl_enable 函数会使用 dfl_scoreboard 记分板而不是 dfl_enable
2-
- 更新了 README
3-
- 现在数据包版本号使用 SemVer 标准,并重置为 1.0.0
1+
- 重构自动冶炼函数,使用子函数提高代码可读性和可维护性
2+
- 为所有函数文件添加详细注释和格式化,提升代码质量
3+
- 优化函数结构,改进代码组织
44

55
---
66

7-
- Now the `dfl:dfl_enable` function uses the `dfl_scoreboard` scoreboard instead of `dfl_enable`
8-
- Updated README
9-
- The data pack version now uses the SemVer standard and has been reset to 1.0.0
7+
- Refactored auto smelting function using sub-functions for improved code readability and maintainability
8+
- Added detailed comments and formatting to all function files, enhancing code quality
9+
- Optimized function structure and improved code organization

0 commit comments

Comments
 (0)