Skip to content

Use git bisect on pull requests (PRs) / merge commits.

Notifications You must be signed in to change notification settings

mihaigalos/pr-bisect

Repository files navigation

pr-bisect

Bisection of PRs / merge commits using git bisect. If a PR merge was identified, the logic looks inside to identify the exact commit which broke.

Usage

docker run -t --rm -v $(pwd):/src -v /tmp:/tmp ghcr.io/mihaigalos/docker/pr-bisect:latest BAD_COMMIT GOOD_COMMIT RUNNER

RUNNER is the logic delegated to git bisect: i.e. from your tester returning 0 for success and != 0 for failure.

Example usage

Have a look here.