Phin Tech docs Boiler Room in the store →

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.

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.