一键导入
release
Bump the envlit version in pyproject.toml, commit, and publish a GitHub release with handwritten notes. Usage: /release <new-version>
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Bump the envlit version in pyproject.toml, commit, and publish a GitHub release with handwritten notes. Usage: /release <new-version>
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | release |
| description | Bump the envlit version in pyproject.toml, commit, and publish a GitHub release with handwritten notes. Usage: /release <new-version> |
Argument: new version string (e.g. 0.0.7).
1. Confirm version
Read pyproject.toml to get the current version. Tell the user: current → new. Ask for confirmation before proceeding.
2. Gather changes since last release
# Get the previous release tag
PREV=$(gh release list --limit 1 --json tagName --jq '.[0].tagName')
# Fetch that tag locally so git log works
git fetch origin tag "$PREV" --no-tags 2>/dev/null || true
# List commits since then
git log "${PREV}..HEAD" --oneline
Read the commit list and write concise release notes in this format — focus on user-visible changes, group by type, omit chore/internal noise unless significant:
## What's changed
### Features
- ...
### Fixes
- ...
### Docs
- ...
Omit any section that has nothing to list. Keep bullets short (one line each).
3. Bump version
Edit pyproject.toml: replace version = "<old>" with version = "<new>".
4. Commit and push
git add pyproject.toml
git commit -m "chore: bump version to <new>"
git push
5. Publish release
gh release create v<new> \
--title "v<new>" \
--notes "<release notes markdown>"
Return the release URL to the user.