Skip to content

push-guard--v0.4.0

Choose a tag to compare

@seanjohnson-dev seanjohnson-dev released this 26 Oct 15:05
· 16 commits to main since this release
  • New: a push whose commits change existing tests is held, even when the tests pass. When a test
    file loses lines, is deleted or is renamed between where the branch left its upstream (or the
    remote's default branch, for a new branch) and HEAD, Claude is told which files changed and to
    ask you. Type /push-guard allow to let that commit through; it only counts when a person runs
    it, not Claude, another plugin or claude -p. New test files, and lines only added
    to a test file, go through with a note.
  • New: the testChanges option: block (default), warn or off.
  • New: "pushGuard": { "testFiles": [globs] } in package.json adds a project's own test paths
    (*, ? and **).
  • Limits: it counts removed lines, it does not read them; tests outside the usual names and folders
    are not seen unless named; only the checked-out branch's commits are judged. See the README.
    Suggested by u/kaijurules on r/ClaudeCode.