fix(automation): issue watcher must not open PRs without tests #138

Merged
shad0w merged 1 commit from fix/watcher-test-gate into master 2026-06-25 22:24:54 +00:00
Owner

PR #137 shipped a code change under App/app with no test — the test-presence
gate in pr-checks.yml would reject it, but the watcher opened the PR anyway.

Add the same gate to the watcher's fix phase: before pushing/opening a PR, run
the pr-checks.yml test-presence check against the branch diff. If code under
App/(app|lib|components|hooks) changed with no accompanying test, the watcher
does NOT open a PR — it marks the issue claude-failed and comments, so the
queue can retry. Never raises a PR the CI would immediately fail.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

PR #137 shipped a code change under App/app with no test — the test-presence gate in pr-checks.yml would reject it, but the watcher opened the PR anyway. Add the same gate to the watcher's fix phase: before pushing/opening a PR, run the pr-checks.yml test-presence check against the branch diff. If code under App/(app|lib|components|hooks) changed with no accompanying test, the watcher does NOT open a PR — it marks the issue claude-failed and comments, so the queue can retry. Never raises a PR the CI would immediately fail. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
shad0w added 1 commit 2026-06-25 22:23:34 +00:00
fix(automation): issue watcher must not open PRs without tests
All checks were successful
PR checks / checks (pull_request) Successful in 48s
PR checks / integration (pull_request) Successful in 30s
a5248e5c23
PR #137 shipped a code change under App/app with no test — the test-presence
gate in pr-checks.yml would reject it, but the watcher opened the PR anyway.

Add the same gate to the watcher's fix phase: before pushing/opening a PR, run
the pr-checks.yml test-presence check against the branch diff. If code under
App/(app|lib|components|hooks) changed with no accompanying test, the watcher
does NOT open a PR — it marks the issue claude-failed and comments, so the
queue can retry. Never raises a PR the CI would immediately fail.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
shad0w merged commit 90a831790d into master 2026-06-25 22:24:54 +00:00
Sign in to join this conversation.
No description provided.