Use case · Nightly maintenance

Go to bed.
Wake up to a PR.

A schedule trigger fires at 03:00 on weekdays. An agent updates your dependencies, the test suite sends failures back to it, and a pull request opens only if there are new commits. You wake up to a PR, or to nothing if everything was already current.

Schedule0 3 * * 1-5Nightly maintenance, weekdays at 03:00cron
Pipeline
  1. Update dependencies Claude Code · sonnet
  2. Run tests npm test · ↻ 1
  3. Count new commits git rev-list
  4. Open pull request only if > 0
Pull requestchore/sched-202609290300chore(deps): nightly dependency updatesReady
Why it holds up

What the pipeline does for you

  • Quiet when there’s nothing to do

    The PR step has a Run only if condition on the commit count. Zero commits skips it and the run still succeeds.

  • Tests push back

    A failing suite loops back to the update step with the output attached, up to twice, before anything is opened.

  • Never overlaps

    Max concurrent runs is 1, so a slow night can’t collide with the next one.

  • Tells you in the morning

    Send run succeeded and failed events to Slack, ntfy or Discord. The success message links the PR.

Set it up

Four steps, once

  1. Import the Nightly maintenance pipeline JSON and set your local repository and test command.
  2. Triggers → Add trigger → Schedule, with the cron expression 0 3 * * 1-5.
  3. Add a notification channel filtered to this pipeline.
  4. Click Run once to test it without waiting for 03:00.

Jimothy has to be running (the tray is fine) and the computer awake when the schedule fires. Missed firings aren’t caught up.