changes_since returns how many commits landed since a git ref, and the newest one’s subject.
A tool fails
Pass a tag that doesn’t exist:A template points nowhere
With a typo in the finish,'{{commits.comits.0.subject}}', the step runs and the plan fails when it fills the template:
The data runs out
Pass the current commit, so there’s nothing to list:commits.commits is empty, so there’s no first subject:
End cleanly when there’s nothing to do
Add anexit step after commits. When the count is 0, it ends the plan as a success and returns the same keys as finish.output:
.graph/plans/changes_since.yaml
base=HEAD. It exits with code 0:
Related guides
Debug a plan
Pause a run and inspect the input a step gets.
Stop early with exit gates
End a plan early on other conditions.
Iterate with map and reduce
Keep going past items that fail.
Run a plan
Run a plan with inputs and use its result.