Repository navigation
feat: parameterize advisory type in ReleasePlan templates - #1123
Open
anwesha-palit-redhat wants to merge 1 commit into
Open
anwesha-palit-redhat wants to merge 1 commit into
anwesha-palit-redhat wants to merge 1 commit into
Conversation
The advisory type in ReleasePlan templates was hardcoded as "RHEA". For patch releases, it needs to be configurable to RHSA or RHBA. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
anwesha-palit-redhat
requested review from
arvindk-softwaredev and
pramodbindal
December 3, 2026 06:13
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Parameterizes the advisory type (
RHEA/RHSA/RHBA) in ReleasePlan templates so that release captains can specify the correct type for patch releases without manual post-generation edits.Problem
The advisory type in the managed and CDN ReleasePlan templates was hardcoded as
RHEA. For patch releases, the type should beRHSA(security) orRHBA(bug fix), but the only way to change it was manually editing the generated files after the factChanges
Data model —
internal/konflux/config.goAdvisoryTypefield to theReleasestruct withjson:"advisory-type" yaml:"advisory-type"tagsTemplates —
internal/konflux/templates/konflux/release-plan-managed.yaml: replaced hardcodedtype: "RHEA"with a template expression that falls back toRHEAwhenAdvisoryTypeis emptyrelease-plan-cdn.yaml: same change as aboveWorkflow —
.github/workflows/release-manager.yamladvisory-typechoice input (options: RHEA, RHSA, RHBA; default: RHEA) to the workflow dispatch inputsShell scripts —
hack/release-manager.sh: added--advisory-typeflag parsing and passesADVISORY_TYPEenv var to functionscommon-functions.sh: updatedcreate-new-patch()to writeadvisory-typeto the release YAML viayqwhenADVISORY_TYPEis setUsage
For a patch release, the release captain selects the advisory type when dispatching the "Automated Release Actions" workflow:
new-patchas the actionRHSAorRHBAfrom the advisory type dropdownFor GA releases, the default
RHEAapplies automatically — no action needed.Backward Compatibility
advisory-typefield will default toRHEA(same behavior as before)RHEA, so existing GA release workflows are unaffectedco-authored: Claude 4.6