add proper link in update log generation

This commit is contained in:
sunxyw
2023-01-13 22:35:25 +08:00
parent 0f44ea31bb
commit 0a979e3674
2 changed files with 111 additions and 102 deletions

View File

@@ -6,135 +6,135 @@
> 更新时间2023-01-04 > 更新时间2023-01-04
* 添加 Phar 构建命令 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/226 * 添加 Phar 构建命令 by [@sunxyw](https://github.com/sunxyw) in [PR#226](https://github.com/zhamao-robot/zhamao-framework/pull/226)
* update v3.sh update script by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/227 * update v3.sh update script by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#227](https://github.com/zhamao-robot/zhamao-framework/pull/227)
* 重构命令手册插件 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/228 * 重构命令手册插件 by [@sunxyw](https://github.com/sunxyw) in [PR#228](https://github.com/zhamao-robot/zhamao-framework/pull/228)
* 重构注解解析器和优化部分代码 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/229 * 重构注解解析器和优化部分代码 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#229](https://github.com/zhamao-robot/zhamao-framework/pull/229)
* 新增 Redis 支持 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/230 * 新增 Redis 支持 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#230](https://github.com/zhamao-robot/zhamao-framework/pull/230)
* 修复 Route 注解无法正常解析的 Bug by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/231 * 修复 Route 注解无法正常解析的 Bug by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#231](https://github.com/zhamao-robot/zhamao-framework/pull/231)
* 添加定时任务支持 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/232 * 添加定时任务支持 by [@sunxyw](https://github.com/sunxyw) in [PR#232](https://github.com/zhamao-robot/zhamao-framework/pull/232)
* 修复测试结果输出错误 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/233 * 修复测试结果输出错误 by [@sunxyw](https://github.com/sunxyw) in [PR#233](https://github.com/zhamao-robot/zhamao-framework/pull/233)
* 暂时停用网络请求测试并修复文件系统测试 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/234 * 暂时停用网络请求测试并修复文件系统测试 by [@sunxyw](https://github.com/sunxyw) in [PR#234](https://github.com/zhamao-robot/zhamao-framework/pull/234)
* 修复一些小问题和添加 GitAttributes by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/235 * 修复一些小问题和添加 GitAttributes by [@sunxyw](https://github.com/sunxyw) in [PR#235](https://github.com/zhamao-robot/zhamao-framework/pull/235)
* 修复 Doxygen 权限 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/238 * 修复 Doxygen 权限 by [@sunxyw](https://github.com/sunxyw) in [PR#238](https://github.com/zhamao-robot/zhamao-framework/pull/238)
* 更新首页介绍 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/237 * 更新首页介绍 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#237](https://github.com/zhamao-robot/zhamao-framework/pull/237)
* 增加 PostgreSQL 支持 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/236 * 增加 PostgreSQL 支持 by [@sunxyw](https://github.com/sunxyw) in [PR#236](https://github.com/zhamao-robot/zhamao-framework/pull/236)
* 修复 Doxygen Sudo 权限 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/239 * 修复 Doxygen Sudo 权限 by [@sunxyw](https://github.com/sunxyw) in [PR#239](https://github.com/zhamao-robot/zhamao-framework/pull/239)
* Beta5 系列升级内容(包含 Redis、sendAction 协程、reply 模式、修复 data 报错) by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/240 * Beta5 系列升级内容(包含 Redis、sendAction 协程、reply 模式、修复 data 报错) by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#240](https://github.com/zhamao-robot/zhamao-framework/pull/240)
* 重构新的 waitMessage 到 prompt by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/241 * 重构新的 waitMessage 到 prompt by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#241](https://github.com/zhamao-robot/zhamao-framework/pull/241)
* 添加 OneBot 12 文件上传和下载工具 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/242 * 添加 OneBot 12 文件上传和下载工具 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#242](https://github.com/zhamao-robot/zhamao-framework/pull/242)
**Full Changelog**: https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta4...3.0.0-beta5 **Full Changelog**: <https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta4...3.0.0-beta5>
## v3.0.0-beta4 ## v3.0.0-beta4
> 更新时间2022-12-31 > 更新时间2022-12-31
* 切换 Git Hook 至 Captainhook by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/218 * 切换 Git Hook 至 Captainhook by [@sunxyw](https://github.com/sunxyw) in [PR#218](https://github.com/zhamao-robot/zhamao-framework/pull/218)
* 升级 v3 文档构建发布路径 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/219 * 升级 v3 文档构建发布路径 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#219](https://github.com/zhamao-robot/zhamao-framework/pull/219)
* 根据最新的分支命名更新 Workflows by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/220 * 根据最新的分支命名更新 Workflows by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#220](https://github.com/zhamao-robot/zhamao-framework/pull/220)
* 更新部分文档 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/221 * 更新部分文档 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#221](https://github.com/zhamao-robot/zhamao-framework/pull/221)
* 将 KV 库接口调整为 PSR-16 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/222 * 将 KV 库接口调整为 PSR-16 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#222](https://github.com/zhamao-robot/zhamao-framework/pull/222)
* 修复有关 BotCommand 的 Bug by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/223 * 修复有关 BotCommand 的 Bug by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#223](https://github.com/zhamao-robot/zhamao-framework/pull/223)
* 边缘 Bug 修复 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/224 * 边缘 Bug 修复 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#224](https://github.com/zhamao-robot/zhamao-framework/pull/224)
* 重构配置类配置 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/225 * 重构配置类配置 by [@sunxyw](https://github.com/sunxyw) in [PR#225](https://github.com/zhamao-robot/zhamao-framework/pull/225)
**Full Changelog**: https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta3...3.0.0-beta4 **Full Changelog**: <https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta3...3.0.0-beta4>
## v3.0.0-beta3 ## v3.0.0-beta3
> 更新时间2022-12-31 > 更新时间2022-12-31
* 添加 Windows 入口 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/208 * 添加 Windows 入口 by [@sunxyw](https://github.com/sunxyw) in [PR#208](https://github.com/zhamao-robot/zhamao-framework/pull/208)
* 重构异常处理 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/209 * 重构异常处理 by [@sunxyw](https://github.com/sunxyw) in [PR#209](https://github.com/zhamao-robot/zhamao-framework/pull/209)
* 添加命令帮助插件 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/210 * 添加命令帮助插件 by [@sunxyw](https://github.com/sunxyw) in [PR#210](https://github.com/zhamao-robot/zhamao-framework/pull/210)
* 加(一些)事件文档 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/212 * 加(一些)事件文档 by [@sunxyw](https://github.com/sunxyw) in [PR#212](https://github.com/zhamao-robot/zhamao-framework/pull/212)
* 修复 BotContext 不同步问题 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/211 * 修复 BotContext 不同步问题 by [@sunxyw](https://github.com/sunxyw) in [PR#211](https://github.com/zhamao-robot/zhamao-framework/pull/211)
* 让容器支持协程 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/213 * 让容器支持协程 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#213](https://github.com/zhamao-robot/zhamao-framework/pull/213)
* 拆分 Bot 动作到 Trait 以及更新一些类型强化的代码 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/214 * 拆分 Bot 动作到 Trait 以及更新一些类型强化的代码 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#214](https://github.com/zhamao-robot/zhamao-framework/pull/214)
* 添加 v3 版本的一键安装脚本 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/215 * 添加 v3 版本的一键安装脚本 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#215](https://github.com/zhamao-robot/zhamao-framework/pull/215)
* 新增 ZMRequest by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/216 * 新增 ZMRequest by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#216](https://github.com/zhamao-robot/zhamao-framework/pull/216)
* 新增全新的 LightCache by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/217 * 新增全新的 LightCache by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#217](https://github.com/zhamao-robot/zhamao-framework/pull/217)
**Full Changelog**: https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta2...3.0.0-beta3 **Full Changelog**: <https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta2...3.0.0-beta3>
## v3.0.0-beta2 ## v3.0.0-beta2
> 更新时间2022-12-26 > 更新时间2022-12-26
* 修复相对路径问题 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/190 * 修复相对路径问题 by [@sunxyw](https://github.com/sunxyw) in [PR#190](https://github.com/zhamao-robot/zhamao-framework/pull/190)
* 改进测试运行 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/193 * 改进测试运行 by [@sunxyw](https://github.com/sunxyw) in [PR#193](https://github.com/zhamao-robot/zhamao-framework/pull/193)
* 添加些许测试 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/194 * 添加些许测试 by [@sunxyw](https://github.com/sunxyw) in [PR#194](https://github.com/zhamao-robot/zhamao-framework/pull/194)
* 添加 EventProvider 测试 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/195 * 添加 EventProvider 测试 by [@sunxyw](https://github.com/sunxyw) in [PR#195](https://github.com/zhamao-robot/zhamao-framework/pull/195)
* 修复 getClassesPsr4 中默认过滤方法的路径 Bug by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/198 * 修复 getClassesPsr4 中默认过滤方法的路径 Bug by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#198](https://github.com/zhamao-robot/zhamao-framework/pull/198)
* 用 Doxygen 替代 API Docs by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/192 * 用 Doxygen 替代 API Docs by [@sunxyw](https://github.com/sunxyw) in [PR#192](https://github.com/zhamao-robot/zhamao-framework/pull/192)
* 重构配置类测试 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/199 * 重构配置类测试 by [@sunxyw](https://github.com/sunxyw) in [PR#199](https://github.com/zhamao-robot/zhamao-framework/pull/199)
* 新增 CatCode encode 时选择是否编码文本的参数 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/197 * 新增 CatCode encode 时选择是否编码文本的参数 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#197](https://github.com/zhamao-robot/zhamao-framework/pull/197)
* 切换容器实现为 PHP-DI by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/201 * 切换容器实现为 PHP-DI by [@sunxyw](https://github.com/sunxyw) in [PR#201](https://github.com/zhamao-robot/zhamao-framework/pull/201)
* 添加 HttpEventListener 测试 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/200 * 添加 HttpEventListener 测试 by [@sunxyw](https://github.com/sunxyw) in [PR#200](https://github.com/zhamao-robot/zhamao-framework/pull/200)
* 添加插件生成功能 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/202 * 添加插件生成功能 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#202](https://github.com/zhamao-robot/zhamao-framework/pull/202)
* 完善 BotCommand 和 CommandArgument 的解析 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/203 * 完善 BotCommand 和 CommandArgument 的解析 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#203](https://github.com/zhamao-robot/zhamao-framework/pull/203)
* 重写文档 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/205 * 重写文档 by [@sunxyw](https://github.com/sunxyw) in [PR#205](https://github.com/zhamao-robot/zhamao-framework/pull/205)
* 发布 beta2 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/206 * 发布 beta2 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#206](https://github.com/zhamao-robot/zhamao-framework/pull/206)
**Full Changelog**: https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta1...3.0.0-beta2 **Full Changelog**: <https://github.com/zhamao-robot/zhamao-framework/compare/3.0.0-beta1...3.0.0-beta2>
## v3.0.0-beta1 ## v3.0.0-beta1
> 更新时间2022-12-20 > 更新时间2022-12-20
* 修改 Workflows 以适配未来开发 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/123 * 修改 Workflows 以适配未来开发 by [@sunxyw](https://github.com/sunxyw) in [PR#123](https://github.com/zhamao-robot/zhamao-framework/pull/123)
* 添加 Adapter 基础 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/121 * 添加 Adapter 基础 by [@sunxyw](https://github.com/sunxyw) in [PR#121](https://github.com/zhamao-robot/zhamao-framework/pull/121)
* 重构 ZMConfig by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/124 * 重构 ZMConfig by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#124](https://github.com/zhamao-robot/zhamao-framework/pull/124)
* 框架V3部分重构 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/125 * 框架V3部分重构 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#125](https://github.com/zhamao-robot/zhamao-framework/pull/125)
* 添加 PHPStan 相关扩展 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/126 * 添加 PHPStan 相关扩展 by [@sunxyw](https://github.com/sunxyw) in [PR#126](https://github.com/zhamao-robot/zhamao-framework/pull/126)
* 添加日志配置 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/127 * 添加日志配置 by [@sunxyw](https://github.com/sunxyw) in [PR#127](https://github.com/zhamao-robot/zhamao-framework/pull/127)
* 移除废弃的全局函数 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/130 * 移除废弃的全局函数 by [@sunxyw](https://github.com/sunxyw) in [PR#130](https://github.com/zhamao-robot/zhamao-framework/pull/130)
* 轻量重构 Framework 类 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/131 * 轻量重构 Framework 类 by [@sunxyw](https://github.com/sunxyw) in [PR#131](https://github.com/zhamao-robot/zhamao-framework/pull/131)
* 优化容器服务注册 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/129 * 优化容器服务注册 by [@sunxyw](https://github.com/sunxyw) in [PR#129](https://github.com/zhamao-robot/zhamao-framework/pull/129)
* 修复 OneBot11Adapter 无限回调溢出及其他小补丁 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/133 * 修复 OneBot11Adapter 无限回调溢出及其他小补丁 by [@sunxyw](https://github.com/sunxyw) in [PR#133](https://github.com/zhamao-robot/zhamao-framework/pull/133)
* 替换 zhamao/console 为 zhamao/logger by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/135 * 替换 zhamao/console 为 zhamao/logger by [@sunxyw](https://github.com/sunxyw) in [PR#135](https://github.com/zhamao-robot/zhamao-framework/pull/135)
* 3.0 重构驱动 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/138 * 3.0 重构驱动 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#138](https://github.com/zhamao-robot/zhamao-framework/pull/138)
* fix container and coroutine bug by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/144 * fix container and coroutine bug by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#144](https://github.com/zhamao-robot/zhamao-framework/pull/144)
* Refactor/phpunit test rebuild by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/147 * Refactor/phpunit test rebuild by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#147](https://github.com/zhamao-robot/zhamao-framework/pull/147)
* 完善 MySQL 连接池和组件 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/148 * 完善 MySQL 连接池和组件 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#148](https://github.com/zhamao-robot/zhamao-framework/pull/148)
* 修复 gendoc 不兼容 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/150 * 修复 gendoc 不兼容 by [@sunxyw](https://github.com/sunxyw) in [PR#150](https://github.com/zhamao-robot/zhamao-framework/pull/150)
* 添加类别名 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/149 * 添加类别名 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#149](https://github.com/zhamao-robot/zhamao-framework/pull/149)
* 修复对 Windows 环境开发的支持 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/151 * 修复对 Windows 环境开发的支持 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#151](https://github.com/zhamao-robot/zhamao-framework/pull/151)
* add phpunit windows support by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/152 * add phpunit windows support by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#152](https://github.com/zhamao-robot/zhamao-framework/pull/152)
* 基于 LibOB Config 类重构 ZMConfig by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/146 * 基于 LibOB Config 类重构 ZMConfig by [@sunxyw](https://github.com/sunxyw) in [PR#146](https://github.com/zhamao-robot/zhamao-framework/pull/146)
* 添加 REPL (PsySH) 集成 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/155 * 添加 REPL (PsySH) 集成 by [@sunxyw](https://github.com/sunxyw) in [PR#155](https://github.com/zhamao-robot/zhamao-framework/pull/155)
* 修正&改进配置加载 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/157 * 修正&改进配置加载 by [@sunxyw](https://github.com/sunxyw) in [PR#157](https://github.com/zhamao-robot/zhamao-framework/pull/157)
* Sqlite 支持 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/160 * Sqlite 支持 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#160](https://github.com/zhamao-robot/zhamao-framework/pull/160)
* 修复 Framework 中 Config 重写的 Bug by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/161 * 修复 Framework 中 Config 重写的 Bug by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#161](https://github.com/zhamao-robot/zhamao-framework/pull/161)
* FileSystem.php isRelativePath() 对 Windows 的兼容性 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/162 * FileSystem.php isRelativePath() 对 Windows 的兼容性 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#162](https://github.com/zhamao-robot/zhamao-framework/pull/162)
* 添加日志追踪功能 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/159 * 添加日志追踪功能 by [@sunxyw](https://github.com/sunxyw) in [PR#159](https://github.com/zhamao-robot/zhamao-framework/pull/159)
* 添加定制PHPUnit样式 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/164 * 添加定制PHPUnit样式 by [@sunxyw](https://github.com/sunxyw) in [PR#164](https://github.com/zhamao-robot/zhamao-framework/pull/164)
* 取消配置ArrayAccess支持 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/163 * 取消配置ArrayAccess支持 by [@sunxyw](https://github.com/sunxyw) in [PR#163](https://github.com/zhamao-robot/zhamao-framework/pull/163)
* 重构 Workflow by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/165 * 重构 Workflow by [@sunxyw](https://github.com/sunxyw) in [PR#165](https://github.com/zhamao-robot/zhamao-framework/pull/165)
* 修复 isRelativePath 在 Windows 环境判断相反的 Bug by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/167 * 修复 isRelativePath 在 Windows 环境判断相反的 Bug by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#167](https://github.com/zhamao-robot/zhamao-framework/pull/167)
* 修复上游 Config 类更改 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/168 * 修复上游 Config 类更改 by [@sunxyw](https://github.com/sunxyw) in [PR#168](https://github.com/zhamao-robot/zhamao-framework/pull/168)
* add state and ctrl+C support for windows by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/169 * add state and ctrl+C support for windows by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#169](https://github.com/zhamao-robot/zhamao-framework/pull/169)
* 更新Workflow by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/171 * 更新Workflow by [@sunxyw](https://github.com/sunxyw) in [PR#171](https://github.com/zhamao-robot/zhamao-framework/pull/171)
* 添加代理、升级到 PHP8.0 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/170 * 添加代理、升级到 PHP8.0 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#170](https://github.com/zhamao-robot/zhamao-framework/pull/170)
* 重新组织 Bootstraper by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/172 * 重新组织 Bootstraper by [@sunxyw](https://github.com/sunxyw) in [PR#172](https://github.com/zhamao-robot/zhamao-framework/pull/172)
* 改进异常 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/173 * 改进异常 by [@sunxyw](https://github.com/sunxyw) in [PR#173](https://github.com/zhamao-robot/zhamao-framework/pull/173)
* 增加 Docker Compose 支持 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/176 * 增加 Docker Compose 支持 by [@sunxyw](https://github.com/sunxyw) in [PR#176](https://github.com/zhamao-robot/zhamao-framework/pull/176)
* 添加贡献指南 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/178 * 添加贡献指南 by [@sunxyw](https://github.com/sunxyw) in [PR#178](https://github.com/zhamao-robot/zhamao-framework/pull/178)
* 迁移 Symfony Console V6 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/179 * 迁移 Symfony Console V6 by [@sunxyw](https://github.com/sunxyw) in [PR#179](https://github.com/zhamao-robot/zhamao-framework/pull/179)
* 兼容 8.x PHP 一些改动 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/181 * 兼容 8.x PHP 一些改动 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#181](https://github.com/zhamao-robot/zhamao-framework/pull/181)
* 升级部分依赖 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/180 * 升级部分依赖 by [@sunxyw](https://github.com/sunxyw) in [PR#180](https://github.com/zhamao-robot/zhamao-framework/pull/180)
* 插件和 OneBot 12 适配器前置内容 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/184 * 插件和 OneBot 12 适配器前置内容 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#184](https://github.com/zhamao-robot/zhamao-framework/pull/184)
* 完善插件加载系统 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/185 * 完善插件加载系统 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#185](https://github.com/zhamao-robot/zhamao-framework/pull/185)
* 更新 README 测试徽章路径 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/186 * 更新 README 测试徽章路径 by [@sunxyw](https://github.com/sunxyw) in [PR#186](https://github.com/zhamao-robot/zhamao-framework/pull/186)
* PHP80 小修 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/187 * PHP80 小修 by [@sunxyw](https://github.com/sunxyw) in [PR#187](https://github.com/zhamao-robot/zhamao-framework/pull/187)
* 容器增加 class_alias 支持 by @sunxyw in https://github.com/zhamao-robot/zhamao-framework/pull/189 * 容器增加 class_alias 支持 by [@sunxyw](https://github.com/sunxyw) in [PR#189](https://github.com/zhamao-robot/zhamao-framework/pull/189)
* Beta 1 发布 by @crazywhalecc in https://github.com/zhamao-robot/zhamao-framework/pull/188 * Beta 1 发布 by [@crazywhalecc](https://github.com/crazywhalecc) in [PR#188](https://github.com/zhamao-robot/zhamao-framework/pull/188)
**Full Changelog**: https://github.com/zhamao-robot/zhamao-framework/compare/2.8.0...3.0.0-beta1 **Full Changelog**: <https://github.com/zhamao-robot/zhamao-framework/compare/2.8.0...3.0.0-beta1>

View File

@@ -68,10 +68,19 @@ class TextGenerateCommand extends Command
continue; continue;
} }
$time = '> 更新时间:' . date('Y-m-d', strtotime($v['published_at'])); $time = '> 更新时间:' . date('Y-m-d', strtotime($v['published_at']));
// TODO: 匹配用户名 @xxx 和 PR 链接 https://xxx.com添加可点击的访问链接
$line .= '## v' . $v['tag_name'] . "\r\n\r\n" . $time . "\r\n\r\n" . trim(str_replace("## What's Changed", '', $v['body'])) . "\r\n\r\n"; $line .= '## v' . $v['tag_name'] . "\r\n\r\n" . $time . "\r\n\r\n" . trim(str_replace("## What's Changed", '', $v['body'])) . "\r\n\r\n";
} }
$line = str_replace("\r\n", "\n", $line); $line = str_replace("\r\n", "\n", $line);
// 将所有的链接转换为可点击的链接,例如 https://example.com -> <https://example.com>
$line = preg_replace('/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&\/=]*)/', '<$0>', $line);
// 替换 PR 链接,例如 <.../pull/123> -> [PR#123](.../pull/123)
$line = preg_replace('/<(https:\/\/github\.com\S+zhamao-framework\/pull\/(\d+))>/', '[PR#$2]($1)', $line);
// 将 mention 转换为可点击的链接,例如 @sunxyw -> [@sunxyw](https://github.com/sunxyw)
$line = preg_replace('/(?<=^|\s)@([\w.]+)(?<!\.)/', '[@$1](https://github.com/$1)', $line);
file_put_contents(FRAMEWORK_ROOT_DIR . '/docs/update/v3.md', $line); file_put_contents(FRAMEWORK_ROOT_DIR . '/docs/update/v3.md', $line);
return static::SUCCESS; return static::SUCCESS;
} }