Repository navigation
fix(hooks): skip commits already on the default branch in model rules - #247
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review summaryThe change is small and the base logic reads correctly. Findings
Test gaps (P3, optional)
🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 185595a5f7
ℹ️ 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".
…print Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
|
Review summary: no blocking findings. I read the diff for correctness, security and test coverage.
Optional, P3: 🤖 Generated with Claude Code |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1bc216ac5d
ℹ️ 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".
🤖 I have created a release *beep* *boop* --- ## [0.3.0](v0.2.0...v0.3.0) (2026-11-19) ### Features * **lint:** fit the bash and yaml model rule cutoffs ([#243](#243)) ([d5eab6b](d5eab6b)) * **lint:** fit the Go model rules on eval fixtures ([#244](#244)) ([cf87c36](cf87c36)) * **lint:** fit the Rust model rules to eval fixtures ([#241](#241)) ([3275ce2](3275ce2)) * **lint:** fit the TypeScript model rules on eval fixtures ([#242](#242)) ([bb41bb7](bb41bb7)) * **lint:** make bash_local_underscore_prefix an error ([#251](#251)) ([cd8c5b8](cd8c5b8)) ### Bug Fixes * **hooks:** let cleanup_worktrees remove worktrees left with only regenerable outputs ([#235](#235)) ([a25ce5b](a25ce5b)) * **hooks:** raise the model rules subject cap and keep cached findings under it ([#246](#246)) ([a451e93](a451e93)) * **hooks:** show each Stop model-rule finding once per session ([#252](#252)) ([49cd6f9](49cd6f9)) * **hooks:** skip commits already on the default branch in model rules ([#247](#247)) ([3df49a2](3df49a2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: furedea-release[bot] <353651101+furedea-release[bot]@users.noreply.github.com>
概要
Stop hook の model rules が,default branch に取り込まれた commit(他の作業,または既にレビュー済みの自分の PR)のファイルまで判定していた.判定の基準を単純な方法で見直す.
Closes #234
Refs #169
方法
commit 済みの変更の基準(base)を,セッション開始時の HEAD と
git merge-base HEAD refs/remotes/origin/HEADのうち新しい方にする.git merge-base --is-ancestor)だけ使うcommitted_paths,ADR の選択(ReviewedSpan),Reviewの--baseが同じ base を使う(review_baseをmodel_rules_files.pyに追加)#237 の reflog 解析は重すぎるため使っていない.
_inputs)に解決後の base を含める(review の指摘 P1/P2 への対応)テスト
_Changesを直接組み立てる 2 件に base を渡すよう更新範囲外(Issue #234 のコメントと brief による)
自分の commit を隠す迂回(fast-forward,default branch への rebase,reflog 編集),merge commit の conflict 解決,default branch を持たない repository,#245.
レビュー指摘の扱い
git fetchが fingerprint と review の 2 回のreview_baseの間に ref を動かす競合): 範囲外.rules は advisory で,漏れても次の Stop までの 1 件を見逃すだけ(brief の threat model)🤖 Generated with Claude Code