Add batch_change.{name,description} as templating variables #491
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #487 by adding
batch_change.nameandbatch_change.descriptionto the templating vars.I didn't want to use
batchbecause it's ambigious, but I'm also not 100% sure aboutbatch_changesince technically the batch change doesn't exist yet. So maybe it should bebatch_spec? But that's also not 100% clear cut.For code reviewers: note that I introduced a little helper struct. That might seem overblown, but while writing the code I realized that I'm about to pass the whole
BatchSpecaround if I don't add this helper thing. And if I were to pass the*BatchSpecto every*Taskand everyrunStepsthen we could get rid of all the intermediate steps, but then everything would need to dig deep into the*BatchSpec. If you think that's fine I can change it. I just thought that for now it's easier and safer to simply pass two duplicated strings around.