Errands
An Errand is a check you hand Boiler Room once: "run this every so often until it's done, then tell me". Give it a command that exits 0 once it's done and anything else while it isn't:
boiler-room submit --every 30s -- gh pr checks 123
Every 30 seconds Boiler Room runs gh pr checks 123. While it fails, it's Not done yet: no failure notification,
nothing counted against you in the menu bar. When it passes, it's Done, it never runs again, and you're told.
A day later it's cleared away; its Runs are kept.
--until changedis done when a Run is a Change, rather than when it exits 0;--until "exit 2"waits for that code.--give-up 3dis how long it keeps trying (a day if left out). Past that it stops, and says it gave up.--everytakes30s,2m,1h, or a cron line (a minute if left out).--name "PR 123 CI"names it; otherwise its name comes from the command.--host tmuxruns it in a pane you can watch.--loudalso says it's done in Slaps, as a card at the side of the screen.
boiler-room await gh-pr-checks-123 waits until it's done and exits 0 if it was, 1 if it gave up; submit --wait does
both at once. boiler-room jobs lists Errands with the Jobs.
From a Template #
Boiler Room's own examples include Errands for CI and pull requests.
A Template can be an Errand, and can say how often and when it's done:
# templates/pr-checks.toml
run = "gh pr checks {{pr}}"
every = "30s"
until = "exit 0"
[params]
pr = { about = "The pull request's number" }
boiler-room submit --template pr-checks pr=123 --wait
How it's kept #
An Errand is a Job file, written to Boiler Room's own folder
(~/Library/Application Support/tech.phin.boiler-room/errands/) rather than yours. Any Job of yours can end itself the
same way: until = "exit 0" in its file, and Boiler Room writes done = "…" into it when it's met.
Phin Tech docs
Boiler Room in the store →