Skip to content

Apply defaults in wait and analysis Stage Plugins#6513

Merged
Warashi merged 2 commits into
pipe-cd:masterfrom
rawadhossain:stagePlugins
Mar 9, 2026
Merged

Apply defaults in wait and analysis Stage Plugins#6513
Warashi merged 2 commits into
pipe-cd:masterfrom
rawadhossain:stagePlugins

Conversation

@rawadhossain
Copy link
Copy Markdown
Contributor

What this PR does:
Applies defaults.Set() when decoding stage configurations in the wait and analysis stage plugins, ensuring default values are initialized correctly during config loading.

Why we need it:

  • Stage plugins need to apply defaults during config decoding.
  • wait and analysis were unmarshalled without calling defaults.Set().
  • Hence config defaults were not being applied.

Part of Issue #6174

Does this PR introduce a user-facing change?:
No

  • How are users affected by this change: Stage configurations now correctly apply default values when fields are omitted, as expected behavior.
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

Signed-off-by: Rawad Hossain <rawad.hossain00@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 9, 2026

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Mar 9, 2026
Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

Sorry for late review, LGTM

@Warashi Warashi merged commit 313aeda into pipe-cd:master Mar 9, 2026
45 checks passed
@rawadhossain
Copy link
Copy Markdown
Contributor Author

Thanks, all good. Happy to contribute.

@github-actions github-actions Bot mentioned this pull request May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants