Git hooks
Yellow Jacket can act as an HTTP regression gate before code leaves the developer machine.
Install the hook
Run:
yellow-jacket installYellow Jacket creates:
.yellow-jacket/
└── hooks/
└── pre-pushand configures the repository with:
git config \
--local \
core.hooksPath \
.yellow-jacket/hooksPush flow
After installation:
git push
|
v
yellow-jacket run
|
+-- no regression --> push continues
|
+-- regression ----> push stopsThe hook executes the same Yellow Jacket configuration used manually.
Exit behavior
A successful run returns:
exit 0Assertions or regressions return:
exit 1Git uses that exit code to decide whether the push can continue.
Temporary bypass
Skip Yellow Jacket for one push:
YELLOW_JACKET=0 git pushThe bypass applies only to that command invocation.
Existing hook managers
Yellow Jacket does not silently overwrite an existing core.hooksPath.
If a repository already uses another hook manager, such as Husky, Yellow Jacket asks you to chain the command instead.
For example, call:
yellow-jacket runfrom the existing pre-push hook.
Action safety
The generated Yellow Jacket hook does not pass:
--allow-actionsThis means mutating requests remain restricted to localhost and loopback targets by default. Redirects that preserve a mutating method are checked before the next request is sent.
That behavior is intentional: a normal git push should never silently trigger a destructive request against a remote production API.
