Replay a checkout bug
Shipping should be free on carts worth €50 or more. The first commit still charged €4.99 on a €50 cart. A one-line fix included the boundary, and Guard ran the same check again on the new commit.
Hosted Guard resultsBrowse the sample repo
The same test on two commits
- Original commit
- Failed · €4.99 shipping
- Fixed commit
- Passed · Free shipping
Run the same shipping check locally
Use Git and a shell. The replay tests carts worth €49.99, €50.00, and €50.01. The original check exits 1 and the fixed check exits 0.
git clone --branch v1.0.0 https://git.dengel.dev/tiny-moon-labs/guard-free-shipping.git
cd guard-free-shipping
sh replay.sh
Verify the commit you plan to merge
Compare the commit in the check result with the head of your proposed change. If the agent pushes again, run the required checks for the new head before approving the merge.
Follow the Guard quickstart or read The checks passed. Then the agent pushed again.
