https://github.com/mihaigalos/pr-bisect
Use git bisect on pull requests (PRs) / merge commits.
https://github.com/mihaigalos/pr-bisect
bisect git git-bisect pull-request pullrequest
Last synced: 4 days ago
JSON representation
Use git bisect on pull requests (PRs) / merge commits.
- Host: GitHub
- URL: https://github.com/mihaigalos/pr-bisect
- Owner: mihaigalos
- Created: 2021-09-20T15:03:17.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-15T17:41:04.000Z (almost 3 years ago)
- Last Synced: 2025-05-31T15:28:36.677Z (11 months ago)
- Topics: bisect, git, git-bisect, pull-request, pullrequest
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
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](https://github.com/mihaigalos/pr-bisect/blob/f2c7397f9cac518fe216f264deb49cbfee70e5a0/Justfile#L15-L26).