feat: repo-maintenance に複数の品質チェックを追加 - #541
Conversation
## 追加したチェック項目 ### Step 3.6 Renovate / Dependabot 設定チェック - .github/renovate.json または .github/dependabot.yml の存在確認 - full モード時に renovate.json テンプレートを自動生成 ### Step 3.7 commitlint 設定チェック - commitlint.config.* の存在確認 - Husky commit-msg フックとの連携確認 - 未設定時は /setup-husky を提案 ### Step 3.8 .editorconfig 設定チェック - .editorconfig の存在確認 - full モード時に標準テンプレートを自動生成 ### Step 3.9 package.json scripts 標準チェック - test, lint, format:check, typecheck など Quality Gates 必須スクリプトの存在確認 - 未定義スクリプトをリストアップ ### ni(antfu/ni)パッケージマネージャー統合 - Step 5.2 のインストールコマンドを ni 対応に更新 - ni が利用可能な場合は優先使用、ロックファイルで自動判定 ### サマリーレポート更新 - 新規チェック項目をサマリーに追加 - Related Commands テーブルを更新 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughAdded Renovate/Dependabot configuration check under Setup category with conditional template generation in full mode. Extended Discovery/Package Audit flow to include automatic package manager detection via ni (antfu/ni). Updated summary and report outputs to reflect new configuration status and enhanced detection results. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 54df4c10cc
ℹ️ 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".
| check_script "test" "test" "test:unit" | ||
| check_script "lint" "lint" "lint:check" | ||
| check_script "format:check" "format:check" | ||
| check_script "typecheck" "typecheck" "type-check" "tsc" |
There was a problem hiding this comment.
Validate build/dev scripts in standard script check
This logic only validates test, lint, format:check, and typecheck, even though the same section defines dev and build as required (and marks build as used by CI). Repositories missing build or dev will still be reported as having all standard scripts, which creates a false pass and can hide a CI-breaking script gap.
Useful? React with 👍 / 👎.
PR レビュー全体的によく構造化された追加で、 バグ: Shell 演算子の優先順位(Step 3.6)最も重要な問題です。 Step 3.6 の Renovate チェックロジックにシェルの演算子優先順位バグがあります: [ -f ".github/renovate.json" ] || [ -f ".github/renovate.json5" ] || \
[ -f "renovate.json" ] || [ -f "renovate.json5" ] && HAS_RENOVATE=trueShell では つまり if [ -f ".github/renovate.json" ] || [ -f ".github/renovate.json5" ] || \
[ -f "renovate.json" ] || [ -f "renovate.json5" ]; then
HAS_RENOVATE=true
fi懸念点:
|
|
🎉 This PR is included in version 1.89.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
概要
repo-maintenanceスキルに 5 つの新しい品質チェックを追加しました。追加内容
Step 3.6 Renovate / Dependabot 設定チェック
.github/renovate.jsonまたは.github/dependabot.ymlの存在確認fullモード時にrenovate.jsonテンプレートを自動生成Step 3.7 commitlint 設定チェック
commitlint.config.*の存在確認commit-msgフックとの連携確認/setup-huskyを提案Step 3.8 .editorconfig 設定チェック
.editorconfigの存在確認fullモード時に標準テンプレートを自動生成(indent=2, LF, UTF-8)Step 3.9 package.json scripts 標準チェック
test,lint,format:check,typecheckなど Quality Gates 必須スクリプトの存在確認ni(antfu/ni)パッケージマネージャー統合ni対応に更新niが利用可能な場合は優先使用、ロックファイル(pnpm-lock.yaml/yarn.lock/bun.lockb)で自動判定npm/pnpm/yarn/bun/niに対応したdetect_pm()関数を追加サマリーレポート
新規チェック項目をサマリーレポートと Related Commands テーブルに追記しました。
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes