https://github.com/will/waitpr
wait on github pr checks
https://github.com/will/waitpr
Last synced: 12 months ago
JSON representation
wait on github pr checks
- Host: GitHub
- URL: https://github.com/will/waitpr
- Owner: will
- License: gpl-3.0
- Created: 2021-05-06T22:00:11.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-03T02:00:12.000Z (about 4 years ago)
- Last Synced: 2025-02-10T11:45:31.007Z (about 1 year ago)
- Language: Crystal
- Size: 34.2 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# waitpr
[](https://github.com/will/waitpr/actions/workflows/ci.yml)
See the status of github pr checks from the command line for only the current
pr. `waitpr` will spin showing you the up-to-date status until all checks are
finished, then exit.
A notification will pop up if the checks take longer than one minute. Only on
macOS right now, but patches welcome for linux.
I've lost a lot of time getting distracted waiting for checks to finish. Then
by the time I remember I'm supposed to merge a patch, someone else has already
pushed to the main branch. So then I need to rebase and wait for the checks
again, with a high probability of getting distracted again.

## Installation
First make sure you have the [`gh` tool](https://github.com/cli/cli) installed
and in your path. `waitpr` uses that for auth and to make the api calls.
Then run `shards build --release` and put the binary generated in `bin`
somewhere in your path. Eventually I hope to do some sort of homebrew thing
maybe but I haven't yet.
## Usage
```
$ waitpr -h
Usage: waitpr [arguments]
--version Show the version
-x, --no-notify Disable notifications
-n SECONDS, --notify=SECONDS Notify when finished if jobs take longer than n seconds (default 60)
-h, --help Show this help
Global arguments can optionally be placed in ~/.config/waitpr/waitpr
Project-local arguments can optionally be placed in .waitpr and will supersede global arguments
Direct command arguments supersede both project-local and global
```
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request