Skip to content

Conversation

chandankumar4
Copy link
Contributor

What this PR does / why we need it:

  • Handle MULTIPLE_AREAS in the generated notes
    • From MULTIPLE_AREAS[KCP/CABPK]: Change envVars fields from []EnvVar to *[]EnvVar (#12539) to KCP/CABPK: Change envVars fields from []EnvVar to *[]EnvVar (#12539)
  • Handle multiple colons
    • From Testing:Framework: Watch logs from init containers (#12208) to Testing/Framework: Watch logs from init containers (#12208)

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes: #12280

/area release

@k8s-ci-robot k8s-ci-robot added area/release Issues or PRs related to releasing cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 6, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign cprivitere for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 6, 2025
@chandankumar4 chandankumar4 changed the title feat: Update release notes tool to handle multiples_areas and colons 🌱 Update release notes tool to handle multiples_areas and colons Sep 6, 2025
return entry
}

// UpdateTitle updates a title by removing the "MULTIPLE_AREAS[]" substrings and multiple colons(:).
Copy link
Member

Choose a reason for hiding this comment

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

Q: When does the "multiple colon" case happen?

// UpdateTitle updates a title by removing the "MULTIPLE_AREAS[]" substrings and multiple colons(:).
func updateTitle(input string) string {
// Remove "MULTIPLE_AREAS[" from the input
input = strings.Replace(input, "MULTIPLE_AREAS[", "", 1)
Copy link
Member

Choose a reason for hiding this comment

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

What about simply not adding MULTIPLE_AREAS wherever we do that, so that we don't have to remove it here again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/release Issues or PRs related to releasing cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the MULTIPLE_AREAS and multiple colon(:) in same line of the generated release notes.
3 participants