Skip to content

fix(hooks): check-ci を pnpm スクリプト経由に統一 - #12

Merged
aloekun merged 1 commit into
masterfrom
fix/check-ci-pnpm-script
Apr 2, 2026
Merged

fix(hooks): check-ci を pnpm スクリプト経由に統一#12
aloekun merged 1 commit into
masterfrom
fix/check-ci-pnpm-script

Conversation

@aloekun

@aloekun aloekun commented Apr 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • CronCreate ポーリング時に毎回ユーザー承認が必要だった問題を解決
  • check-ci-coderabbit.exe の直接呼び出しを pnpm check-ci 経由に変更
  • settings.local.json の許可リスト Bash(pnpm check-ci *) で自動許可可能に
  • DEFAULT_POLL_INTERVAL を 30秒 → 120秒 (2分) に変更

Test plan

  • cargo test — hooks-post-pr-monitor 36テスト通過
  • cargo test — check-ci-coderabbit 41テスト通過
  • pnpm build:hooks — 全 exe ビルド成功
  • pnpm push — push パイプライン通過

🤖 Generated with Claude Code

Summary by CodeRabbit

リリースノート

  • New Features

    • スケジュール生成の実行コマンドを「pnpm check-ci」に変更しました。
    • package.json に check-ci スクリプトを追加しました。
  • Chores

    • デフォルトのポーリング間隔を30秒から120秒に変更しました。
    • ローカル設定に Bash(pnpm check-ci *) の許可を追加しました。
    • 特定のデバッグログファイルを .gitignore に追加しました。
  • Tests

    • テストを新しい間隔表示と言語表現に合わせて更新しました。

@coderabbitai

coderabbitai Bot commented Apr 2, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6dbcab5c-332a-4bc3-978c-5346a0c67a8f

📥 Commits

Reviewing files that changed from the base of the PR and between 38afff9 and cda5975.

⛔ Files ignored due to path filters (1)
  • .claude/post-pr-monitor-debug.log is excluded by !**/*.log
📒 Files selected for processing (4)
  • .claude/hooks-post-pr-monitor/src/main.rs
  • .claude/settings.local.json.template
  • .gitignore
  • package.json

📝 Walkthrough

Walkthrough

post-pr-monitor のデフォルトポーリング間隔を 30→120 秒に変更し、ランタイムでのバンドル実行ファイルパス解決を廃止。CronCreate のコマンドを直接 pnpm check-ci 呼び出しへ切替え、設定テンプレート・npm スクリプト・ユニットテストをそれに合わせて更新。

Changes

Cohort / File(s) Summary
Post-PR Monitor Hook
\.claude/hooks-post-pr-monitor/src/main.rs
DEFAULT_POLL_INTERVAL を 30→120 に変更。checker_exe_path()checker_path: &Path パラメータを削除し、CronCreate のコマンドテンプレートをバンドル実行ファイル参照から pnpm check-ci 呼び出し(引数は -- --push-time "{push_time}"、オプションで --repo / --pr を追加)へ切替。run() から実行ファイル解決ロジックを除去。ユニットテスト期待値を更新。
Permission and Script Configuration
\.claude/settings.local.json.template, package.json
permissions.allow"Bash(pnpm check-ci *)" を追加。package.json に npm スクリプト check-ci を追加(.claude\check-ci-coderabbit.exe を呼ぶエントリ)。
Ignore Rules
.gitignore
.claude/post-pr-monitor-debug.log を追加して該当デバッグログを除外。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 37.50% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトルは、変更の主な目的である「check-ci を pnpm スクリプト経由に統一する」ことを正確に要約しており、変更セット全体と完全に関連しています。

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@aloekun
aloekun force-pushed the fix/check-ci-pnpm-script branch from cfc96cd to 38afff9 Compare April 2, 2026 17:27
- package.json に check-ci スクリプト追加 (exe パス直接指定を排除)
- settings.local.json.template に pnpm check-ci の自動許可を追加
- hooks-post-pr-monitor: checker パスを pnpm check-ci 経由に変更
- hooks-post-pr-monitor: DEFAULT_POLL_INTERVAL を 120 に修正 (config と整合)
- hooks-post-pr-monitor: 不要な checker_exe_path() を削除
- post-pr-monitor-debug.log を .gitignore に追加し untrack

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aloekun
aloekun force-pushed the fix/check-ci-pnpm-script branch from 38afff9 to cda5975 Compare April 2, 2026 18:14
@aloekun
aloekun merged commit a1a464c into master Apr 2, 2026
1 check was pending
@aloekun
aloekun deleted the fix/check-ci-pnpm-script branch April 2, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant