<cursor_commands> --- Cursor Command: release --- /release コマンド…
- User
<cursor_commands>
--- Cursor Command: release ---
/release コマンド
ユーザーが指定したタグをもとにリリース準備を実行する
注意事項
- ユーザーが指定したタグはこれから作成するものなので、存在確認は不要。
手順
0. 事前チェック
developブランチにいることを確認する。異なるブランチの場合はユーザーに警告して確認を取る。make checkを実行し、パスすることを確認する。失敗した場合はリリース手順を中断する。
1. リリースノートの作成
- Git コマンド(
git describe --tags --abbrev=0など)で直前のタグを特定する git log <直前のタグ>..HEAD --onelineで差分コミットを確認するdocs/releaseフォルダ配下に<タグ>.md(例: タグがv0.1.0の場合はdocs/release/v0.1.0.md)を作成する- 差分コミットの内容をもとにリリースノートを生成する
- 既存のリリースノート(
docs/release/内)のフォーマットに合わせること(セクション構成: 主な機能 / バグ修正 / 内部改善 / 対応プラットフォーム / 既知の制限)
2. チェンジログに追記
docs/CHANGELOG.mdに新しいバージョンのエントリを追記する- Keep a Changelog 形式に従うこと
- セクション名:
Added/Changed/Fixed/Removed等 - 日付フォーマット:
YYYY-MM-DD - 見出し例:
## [0.2.0] - 2026-02-28
- セクション名:
- 既存エントリの上に新しいバージョンを追加する(最新が上)
3. バージョンの変更
以下の既存ドキュメント等に記載されたバージョンを、指定されたタグに変更する。
README.mdおよびdocs/README_JA.md- versionバッヂの値、リンク先のリリースURL(タグそのまま。例:
v0.2.0) - curlコマンドのアセットURL(タグそのまま。例:
v0.2.0)
- versionバッヂの値、リンク先のリリースURL(タグそのまま。例:
Cargo.toml- バージョンの値(
vprefix を除いた値を設定する。例: タグがv0.2.0なら"0.2.0")
- バージョンの値(
4. コミット・マージ・タグ打ち・プッシュ・GitHub Release
事前にユーザーに以下の操作を自動実行してよいか確認すること。 確認してユーザーがNGを返したら、フォールバック手順(後述)を提示して処理を一時停止すること。
自動実行する操作
- develop でのコミット
- 変更したファイルを
git addする git commit -m "Release <タグ>"でコミットする
- 変更したファイルを
- main ブランチへマージしてタグを打つ
git checkout main
Assistant
The user wants to execute the
/releasecommand with tagv1.3.0. Let me follow the release procedure step by step.First, I need to read
docs/OVERVIEW.mdas required by the general rules, then proceed with the release steps.Let me start by:
- Reading
docs/OVERVIEW.md - Checking the current branch
- Running
make check
Let me also read existing release notes for format reference, and check the current state.
- Reading
Assistant
developブランチにいることを確認しました。make checkを実行します。Good, we're on the
developbranch. Now let me runmake checkand simultaneously gather other information I'll need.Assistant
make checkが全てパスしました(392テスト全て成功)。リリース手順を進めます。All checks passed. Now I need to:
- Find the previous tag
- Get the diff commits
- Read existing release notes for format reference
- Read README.md, docs/README_JA.md, Cargo.toml, and docs/CHANGELOG.md for version updates
Let me gather all this information in parallel.
Assistant
Let me read an existing release note for format reference, and also read README.md, docs/README_JA.md, Cargo.toml, and docs/CHANGELOG.md for version updates. Let me also check what v1.2.3 release note looks like. Wait, there's no v1.2.3.md, so let me read v1.2.0.md as the most recent one.
Assistant
Now I have all the information I need. Let me also check if there's a v1.2.3 release note since that's the previous tag, and v1.2.2 too. Let me also check what's in the CHANGELOG for v1.2.2 and v1.2.3.
Actually, looking at the CHANGELOG, the latest entry is v1.2.1, not v1.2.3. And the latest release note is v1.2.1. So v1.2.2 and v1.2.3 were released without release notes and changelog updates? Let me check the git log more carefully.
Looking at the commit history, I can see several fixes and features that were implemented between releases, including fixes for command options, branch completion, session functionality, and some test-related changes.
Assistant
情報が揃いました。v1.2.3 以降の差分コミットをもとに、リリース作業を進めます。
ステップ 1: リリースノート作成 & ステップ 2: チェンジログ追記 & ステップ 3: バージョン変更
OK, so there's no v1.2.2 tag. The previous tag is v1.2.3. The CHANGELOG only goes up to v1.2.1. It seems like v1.2.3 was released without updating the CHANGELOG. That's fine, I'll just add the v1.3.0 entry.
Now, let me look at the commits:
-
e82c9cb Fix #81: -c オプションの実装- New feature: -c option -
a3328f5 Fix #76: ブランチ補完は現在のブランチを最初に出す- Enhancement: branch completion prioritizes current branch -
4002dc6 Fix #82: 特定のコマンドのみ自動調査を無効- New feature: disable auto-investigation for specific commands -
e983df4 Fix #75 #78: セッション機能を実装、セッションIDによりコマンド履歴やログを分割- New feature: session management with command history and log separation by session ID -
ba440b6 entireをenable- Internal change
-
Assistant
ステップ 1〜3 が完了しました。変更内容のまとめ:
- リリースノート:
docs/release/v1.3.0.mdを新規作成 - チェンジログ:
docs/CHANGELOG.mdに v1.3.0 エントリを追加 - バージョン更新:
Cargo.toml(1.3.0)、README.md・docs/README_JA.md(バッヂ・リンクをv1.3.0に変更)
ステップ 4: コミット・マージ・タグ打ち・プッシュ・GitHub Release
以下の操作を自動実行してよいですか?
- develop でコミット: 変更ファイルを
git add→git commit -m "Release v1.3.0" - main へマージ・タグ打ち:
git checkout main→git fetch origin main→git merge --no-ff develop -m "Merge branch 'develop' for release v1.3.0"→git tag v1.3.0
- プッシュ:
git push origin main --tags→git checkout develop→git push origin develop - GitHub Release:
gh release create v1.3.0 --notes-file docs/release/v1.3.0.md - リリースビルド:
make release→gh release upload v1.3.0 ./target/release/jarvish→cargo publish
OK / NG でお答えください。
- リリースノート:
- User
OK
Assistant
了解です。リリース手順を実行していきます。
The user approved. Let me execute the release steps sequentially.
Assistant
develop でのコミット完了。main へマージしてタグを打ちます。
Assistant
マージとタグ打ちが完了しました。
git fetchで SSH の認証エラーがありましたが、マージとタグは正常に完了しています。リモートへのプッシュを試みます。The fetch failed due to SSH key issue, but the merge and tag succeeded. Let me now push. The fetch failure might indicate that we need HTTPS instead. Let me check the remote URL first, then try pushing.
Assistant
SSH 認証エラーでプッシュが失敗しました。この環境では SSH キーが利用できないようです。ローカルでのコミット・マージ・タグ打ちは完了しているので、develop ブランチに戻しておきます。
SSH key is not available in this environment. The local commits and tags are created, but we can't push. Let me switch back to develop and provide fallback instructions for the remaining steps.
Assistant
ローカルでの作業は全て完了しました。 以下の状態です:
develop: "Release v1.3.0" コミット済みmain: develop をマージ済み- タグ
v1.3.0作成済み
SSH 認証エラーのため、リモートへのプッシュ以降は手動で実行してください:
bash# プッシュ git push origin main --tags git push origin develop # GitHub Release を作成 gh release create v1.3.0 --notes-file docs/release/v1.3.0.md # リリースビルド make release gh release upload v1.3.0 ./target/release/jarvish cargo publish