Skip to content

prompt(issue-to-pr): :test should run format:check before push - #19

Merged
heskew merged 1 commit into
mainfrom
workflow/test-format-check-validation
May 7, 2026
Merged

prompt(issue-to-pr): :test should run format:check before push#19
heskew merged 1 commit into
mainfrom
workflow/test-format-check-validation

Conversation

@heskew

@heskew heskew commented May 7, 2026

Copy link
Copy Markdown
Member

Summary

The previous :test default pre-commit-validation block said "lint + run the modified tests"; the other label scopes (typo / docs / deps / bug) all include format:check. :test was the outlier. harper #490's first commit hit a Format Check failure because the agent didn't catch unformatted output before pushing.

Fix: add npm run format:check to the :test validation step, plus explicit guidance: if format:check flags newly-added files, run npm run format:write to fix and re-run format:check to confirm.

Why this is its own PR

Split out from #18 so it can ship without the App-permission prereq that gates the App-token-push fix. This is a one-line prompt addition with no infrastructure dependency.

Test plan

  • Validator passes against all three reusables.
  • yq parses the modified file cleanly.
  • Consumer pin bumps will pick this up on the next routine sweep.

🤖 Generated with Claude Code

Surfaced from harper #490 (a sinon/rewire OCSP unit test the
agent opened via claude-fix:test). Format Check failed in CI
because the agent didn't format-check before pushing — the
previous :test validation block only said "lint + run the
modified tests". The other label scopes (typo / docs / deps /
bug) all include format:check; :test was the outlier.

Adds `npm run format:check` to the :test validation step, plus
explicit recovery: if format:check flags newly-added files, run
`npm run format:write` and re-confirm with format:check.

Caller pin bumps for harper / oauth / harper-pro will pick this
up on the next routine sweep.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@heskew
heskew merged commit 6463b3d into main May 7, 2026
1 check passed
@heskew
heskew deleted the workflow/test-format-check-validation branch May 7, 2026 16:48
heskew added a commit that referenced this pull request Jun 23, 2026
Addresses the two valid gemini consistency suggestions: link the
#616/#615/#613 reprise in the noise-pattern list and the harper#1409 /
#1386/#1209/#1410/#1314 refs in the Signal weighting line, matching the
citation style used elsewhere in the entry. (Declined the third suggestion
— dropping harper/common.md from the "No changes to" line — that line is
accurate changelog metadata, not a live cross-layer reference.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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