Skip to content

fix(hooks): skip JavaScript triggers in projects without JavaScript tests - #161

Merged
furedea merged 1 commit into
mainfrom
fix/skip-javascript-triggers-without-tests
Oct 15, 2026
Merged

furedea merged 1 commit into
mainfrom
fix/skip-javascript-triggers-without-tests

Conversation

@furedea

@furedea furedea commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Summary

package.json and package-lock.json are full-suite triggers for the JavaScript rule, so a Renovate bump pulled into the worktree made check_selection.javascript_plan raise test command could not be determined whenever the project declares no test script and no runner. In this repository package.json only pins oxlint, oxfmt, and the Codex CLI, so every Stop in the session was blocked until the session was restarted.

A trigger-only change with no changed JavaScript sources and no explicit targets now yields no JavaScript invocation. Changed JavaScript sources still require a runner, as before.

Closes #160

Verification

  • uv run --frozen pytest tests/agents: 1439 passed.
  • uv run --frozen ruff check, ruff format --check, and ty check are clean.
  • lefthook pre-commit and commitlint passed on the commit.
  • Reproduced in the live session: after fast-forwarding main with the Renovate merges, the Stop gate reported invalid test configuration · test command could not be determined; the new test fails on the previous code for that reason and passes with this change.

🤖 Generated with Claude Code

…ests

A dependency bump made the gate demand a JavaScript test command the project never declared.

Treat such a trigger-only change as not applicable.

Changed JavaScript sources still require a runner.

Closes #160

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 15, 2026 05:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@furedea
furedea merged commit f130452 into main Oct 15, 2026
11 checks passed
@furedea
furedea deleted the fix/skip-javascript-triggers-without-tests branch October 15, 2026 05:20
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.

Verification gate fails closed on dependency-only JavaScript changes in projects without JavaScript tests

2 participants