Skip to main content
changes_since summarizes the commits since a git ref. Its nothing_new step ends the plan before the summary when there are no commits.

Stop when there’s nothing to do

Run the plan from HEAD, so there are no commits:
The when condition holds, so the plan stops at nothing_new. The summary step never runs, so there’s no model call, and the exit’s output is the result:

Run past the gate

Run it from a release tag:
The condition doesn’t hold, so the plan carries on to summary:

Fail instead

To make an empty range a failure, such as in a CI check, set status: error and drop the output:
.graph/plans/changes_since.yaml
The plan now exits with code 4 and prints the message as an error:

Branch with route

Take different steps instead of stopping.

Handle failures

Tell why a run failed and choose how to respond.

Run a plan

Run a plan with inputs and use its result.