waitpr v0.1.0
waitpr
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 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
- Fork it (https://github.com/will/waitpr/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
waitpr
- 1
- 2
- 0
- 0
- 1
- almost 3 years ago
- May 6, 2021
GNU General Public License v3.0
Sat, 21 Dec 2024 13:11:26 GMT