Do you find yourself waiting for the little green bulb to turn green so you can merge a PR? Sometimes the tests and associated hooks can take a long time to run and GitHub doesn't send you an email when the mergeable status changes.
Enter pr_status_notifier
!
pr_status_notifier
is a simple command line utility that will check a given pull request to see if it can be merged. If it can be merged it will pop up a native notification in your Operating System (currently works for MacOS, Windows and Linux).
Looks something like this.
# pr_status_notifier <owner> <repo> <issueNumber>
pr_status_notifier jazzdan pr_status_notifier 1
Note that you will need to have a GitHub access token defined in the GITHUB_ACCESS_TOKEN
environment variable to access private repositories that you have access to.
wget https://github.com/jazzdan/pr_status_notifier/releases/download/v1.0/pr_status_notifier_mac_os.tar.gz
tar -zxf pr_status_notifier_mac_os.tar.gz
Then add to path
Prerequisites:
- Go (tested with 1.9)
git clone https://www.github.com/jazzdan/pr_status_notifier
cd pr_status_notifier
go get github.com/0xAX/notificator github.com/google/go-github/github golang.org/x/oauth2
go build