Skip to content

feature-guard.mjs

  • Event: Stop · PostToolUse Bash
  • Type: wall: blocks the action and says why (exits with code 2)

Backend. BLOCKS closing (once per set of files) if the session touched backend code and no test, if it created or touched migrations without running them or without testing their rollback (it records the migrate commands that run), or if the code uses new environment variables that are not in .env.example.

See the code of feature-guard.mjs on GitHub