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 fromHEAD, so there are no commits:
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:summary:
Fail instead
To make an empty range a failure, such as in a CI check, setstatus: error and drop the output:
.graph/plans/changes_since.yaml
Related guides
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.