Releases: funnyzak/weread-bot
Releases · funnyzak/weread-bot
0.3.8
Full Changelog: 0.3.7...0.3.8
0.3.7
What's Changed
Full Changelog: 0.3.6...0.3.7
0.3.6
What's Changed
新增
- 新增执行历史持久化能力,支持通过
history.enabled、history.file、history.max_entries、history.persist_runtime_error保存最近真实执行结果到本地 JSON 文件。 - 新增
--show-last-run命令,可直接读取最近一次真实执行摘要,便于排查最近一次任务状态、失败分类和用户执行结果。 - 新增
--validate-config与--dry-run诊断模式,支持在不发起真实阅读请求的情况下校验CURL、检查用户配置差异,并输出通知链路诊断信息。 - 新增通知事件触发配置
notification.triggers,并提供notification.only_on_failure语法糖,可快速切换到“仅失败或异常通知”模式。 - GitHub Actions 工作流新增“仅失败通知”“执行历史开关”“历史保留条数”输入项,并支持通过 Secrets 覆盖运行行为。
优化
- 强化运行前配置校验,针对
curl_config.users[].name、reading_overrides非法字段、缺失file_path/content、文件路径不存在等问题提供更精确的报错路径。 - 多用户执行摘要补充成功、失败、跳过用户统计,以及失败分类汇总,便于快速识别批量执行结果。
- 执行历史写入改为临时文件替换,降低 JSON 历史文件损坏风险;历史文件缺失、损坏或格式异常时会自动回退为空历史。
- 依赖检查改为按执行模式区分,诊断类命令会优先给出缺失依赖提示,减少非必要依赖导致的启动失败。
文档与部署
- 更新
README.md,补充诊断命令、执行历史配置、仅失败通知策略和多用户覆盖规则说明。 - 更新
docs/github-action-autoread-guide.md,补充 GitHub Actions 的执行历史、通知策略、Secrets 与 artifact 使用说明。 - 更新
config.yaml.example与config-generator.html,新增执行历史配置项和失败通知开关,降低新配置接入成本。 - GitHub Actions 默认上传
logs/weread.log与logs/run-history.jsonartifact,便于回溯运行结果。
升级提示
- 本次版本无强制破坏性配置变更,旧配置默认可继续运行。
- 若希望只在失败时收到推送,可在配置文件中设置
notification.only_on_failure: true,或在 GitHub Actions 手动触发时启用“仅失败时发送通知”。 - 若需查看最近一次真实执行结果,请确保
history.enabled: true,然后运行python weread-bot.py --show-last-run --config config.yaml。
0.3.5
What's Changed
Full Changelog: 0.3.1...0.3.5
0.3.1
What's Changed
- Add Hack configuration for compatibility issues, update documentation and example configuration by @funnyzak in #24
Full Changelog: 0.3.0...0.3.1
0.3.0
What's Changed
- feat: enhance cron scheduling support with multiple time points and update documentation (#17) by @funnyzak in #23
Full Changelog: 0.2.10...0.3.0
0.2.10
0.2.9
What's Changed
Full Changelog: 0.2.8...0.2.9