Skip to content

Conversation

godrei
Copy link
Contributor

@godrei godrei commented Jul 11, 2025

Version

Requires a MINOR version update

Context

This PR introduces a run_if property on Step Bundles.

The run_if condition controls the execution of the Steps (and Step Bundles) within the given Step Bundle, if the condition is evaluated to false, all Steps (and Step Bundles) are skipped.

@godrei godrei marked this pull request as ready for review July 11, 2025 15:02
@godrei godrei requested a review from tothszabi July 11, 2025 15:09
@@ -39,6 +40,7 @@ type StepBundleListItemModel struct {
Title string `json:"title,omitempty" yaml:"title,omitempty"`
Summary string `json:"summary,omitempty" yaml:"summary,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
RunIf *string `json:"run_if,omitempty" yaml:"run_if,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was not immediately clear from the PR so I need to ask this. Why is this a pointer here but a regular string in the StepBundleModel?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I understand it, the value is nil when a property from another model doesn't need to be overridden—since an empty string is also considered a valid override.

@marcell-vida marcell-vida merged commit 0285875 into master Jul 16, 2025
8 checks passed
@marcell-vida marcell-vida deleted the step_bundle_run_if branch July 16, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants