Check the version updates of opencode and oh-my-openagent (omo), and automatically fetch and display the release notes when there is an update.
Quick Start
python3 skills/check-opencode-updates/scripts/check_updates.py
Output Format
When there is no update:
opencode: 1.2.27 (up to date)
oh-my-openagent: 3.12.3 (up to date)
When there is an update:
opencode: 1.2.27 (up to date)
oh-my-openagent: 3.12.2 (update available)
==================================================
## oh-my-openagent 更新日志
### v3.12.3
- revert(todo-continuation): remove debug logging
[查看完整发布说明](https://github.com/code-yeongyu/oh-my-openagent/releases/tag/v3.12.3)
Status Description
| Status | Meaning |
|---|---|
up to date |
The local version matches the remote version |
update available |
A new remote version is available, and the changelog is displayed |
not installed |
Not installed locally |
error |
Failed to fetch the version |
Feature Description
- Fetch the latest version via the GitHub API and compare it with the local version
- When there is an update, automatically fetch all release notes between the local version and the latest version
- Overly long release notes are automatically truncated to the first 500 characters
Note
- Do not automatically perform the update operation
- Only check the two tools opencode and oh-my-openagent