every-ts
every-ts copied to clipboard
Document how to use `every-ts bisect run` to look for a commit that *fixed* an issue
The docs explain how to use every-ts bisect run to find the commit that broke something, but sometimes you want to find the commit that fixed an issue.
Case in point: I tried to repro #33191 at HEAD today and couldn't. It was fixed sometime after 5.3.2.
I wound up doing it with this script that flips the exit codes. But maybe there's a better way that doesn't require that.
#!/bin/bash
if every-ts tsc -p tsconfig.json ; then
echo 'good'
exit 1
else
echo 'bad'
exit 0
fi
I was aiming not to do write too much on this, under the assumption that I would effectively just repeating the git bisect docs linked in the README.
I wound up doing it with this script that flips the exit codes. But maybe there's a better way that doesn't require that.
My example in the README actually uses the terms old and new for that reason. Though, I see now that I accidentally flipped the example, so I'll fix that quick.