chore: 不要なコードを削除 (#773) - #774
Conversation
- script/lib/output.sh: errors.sh から移行した errors:: 名前空間エイリアスを削除 リポジトリ全体で使用箇所ゼロの完全デッドコードだった - script/lib/agents-md-data.sh: 存在しないディレクトリの PURPOSE エントリを削除 - DOT_DIR_PURPOSE[.agents]: .agents/ ディレクトリが存在しない - REG_DIR_PURPOSE[next]: next/ ディレクトリが存在しない Co-authored-by: keito4 <keito4@users.noreply.github.com>
- setup-env.sh: credentials.sh の後方互換ラッパーと明記されており、 credentials.sh fetch + cp で代替可能なため削除 - setup-mcp.sh: 存在しない .mcp.json.template を参照する壊れたスクリプト。 .mcp.json は現在リポジトリに直接コミットされており不要 ドキュメントを credentials.sh fetch を直接使用するよう更新。 Refs: #773 Co-authored-by: keito4 <keito4@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThis PR removes legacy ChangesCredential Workflow Migration and Cleanup
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Claude finished @keito4's task in 2m 8s —— View job PRレビュー完了
総評不要なコードを削除するクリーンなリファクタリングPRです。 ただし、テストが壊れる問題とテンプレートコメントの記述漏れの2点を修正してからマージすることを推奨します。 問題点🔴 重大: 統合テストが失敗する
@test "setup-mcp.sh exists and is executable" {
assert_file_exists "$REPO_ROOT/script/setup-mcp.sh" # ← 削除済みで失敗
[ -x "$REPO_ROOT/script/setup-mcp.sh" ]
}
@test "setup-env.sh exists and is executable" {
assert_file_exists "$REPO_ROOT/script/setup-env.sh" # ← 削除済みで失敗
[ -x "$REPO_ROOT/script/setup-env.sh" ]
}🟡 軽微: テンプレートファイルのコメントが古い
# このファイルは script/setup-env.sh により ~/.devcontainer.env に展開されます
# ↑ 削除済み。 credentials.sh に変更すべき
# このファイルは script/setup-env.sh により credentials/mcp.env に展開され、
# script/setup-mcp.sh により .mcp.json の生成に使用されます
# ↑ 両スクリプトとも削除済み確認済みの正常な変更点
まとめ
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 894c4638fb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,81 +0,0 @@ | |||
| #!/usr/bin/env bash | |||
There was a problem hiding this comment.
Restore or update tests for removed setup scripts
Deleting this script leaves the integration suite in a guaranteed failing state: .github/workflows/ci.yml runs bats test/integration/*.bats, and test/integration/core-scripts.bats still asserts that both script/setup-mcp.sh and script/setup-env.sh exist and are executable. Until those tests are updated (or the wrappers are kept), every CI run that includes the Bats job will fail before validating the rest of the change.
Useful? React with 👍 / 👎.
| info() { output::info "$@"; } | ||
| success() { output::success "$@"; } |
There was a problem hiding this comment.
Restore errors aliases or remove their integration tests
This removal also breaks the Bats integration job: test/integration/lib_functions.bats still greps for errors::fatal, errors::warn, and errors::require_command, then sources script/lib/output.sh and calls errors::require_command, errors::info, and errors::success. Because .github/workflows/ci.yml runs that Bats suite, this commit will fail CI unless the aliases are retained or the tests are changed in the same commit.
Useful? React with 👍 / 👎.
|
(aside) |
|
Claude finished @keito4's task in 2m 0s —— View job CI修正完了
修正内容削除済みのスクリプト・エイリアスを参照するBATSインテグレーションテストを削除しました。
コミット: |
setup-env.sh, setup-mcp.sh, errors::エイリアスは削除済みのため、 これらを参照するインテグレーションテストを削除してCIを修正する Co-authored-by: keito4 <keito4@users.noreply.github.com>
|
🎉 This PR is included in version 1.112.11 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes #773
変更内容
script/lib/output.sh:errors::名前空間エイリアス7関数を削除(errors.shから移行時の後方互換レイヤー、使用箇所ゼロ)script/lib/agents-md-data.sh: 存在しないディレクトリの PURPOSE エントリを2件削除Generated with Claude Code
Summary by CodeRabbit
Documentation
Chores
Tests