bong

watch a gitlab pipeline. ding when done.

bong 14:02:11 watching pipeline #987654 (root status: running) 14:02:11 #987654 running https://gitlab.com/foo/bar/-/pipelines/987654 14:03:42 #987654 → discovered downstream #987655 https://gitlab.com/foo/deploy/-/pipelines/987655 14:03:42 #987655 created https://gitlab.com/foo/deploy/-/pipelines/987655 14:04:11 #987655 manual https://gitlab.com/foo/deploy/-/pipelines/987655 ↑ desktop notification fires here ("needs manual trigger") 14:06:31 #987655 running 14:08:01 #987654 success 14:08:11 #987655 success 14:08:11 ✓ done — success: #987654 #987655 ↑ second notification fires here

one bash file. zero deps beyond glab. mac + linux. caveman tier.

install

prereq — install glab and log in once:

glab auth login

then drop bong somewhere on your $PATH:

sudo install -m 0755 bong /usr/local/bin/bong

(or chmod +x bong && cp bong ~/bin/ — whatever. it's one script.)

use

bong # latest pipeline on current branch bong 1234567 # by pipeline id bong https://gitlab.com/foo/bar/-/pipelines/1234567 # by url, cross-project

chain it:

bong && ./deploy.sh

exits 0 on all-green, 1 if anything failed/canceled. ctrl-c to bail.

config

BONG_POLL=10 # seconds between polls (default 10)

glab handles auth / token / instance host — bong doesn't.

notifications