Skip to content

fix: reject Uncategorized heading in any release during validation#278

Open
skyc1e wants to merge 1 commit into
MetaMask:mainfrom
skyc1e:fix/uncategorized-validation
Open

fix: reject Uncategorized heading in any release during validation#278
skyc1e wants to merge 1 commit into
MetaMask:mainfrom
skyc1e:fix/uncategorized-validation

Conversation

@skyc1e
Copy link
Copy Markdown

@skyc1e skyc1e commented Mar 30, 2026

Explanation

Validation previously only rejected Uncategorized change categories for the current release when isReleaseCandidate was set to true. This meant Uncategorized entries could remain undetected in older releases or when running validation outside of release candidate mode.

This change moves the Uncategorized check out of the isReleaseCandidate block and applies it to all releases unconditionally, so any changelog containing an ### Uncategorized heading will fail validation.

References

Fixes #207

Changelog

Changed

  • Validation now rejects Uncategorized headings in any release, regardless of isReleaseCandidate setting

Checklist

  • Tests updated to reflect the new behavior
  • Lint passes
  • Type check passes
  • All 141 tests pass

Note

Medium Risk
Tightens validation rules and may cause previously-valid changelogs/pipelines to fail, but change is small and localized to changelog validation.

Overview
Changelog validation is now stricter. validateChangelog now scans all releases and throws UncategorizedChangesError if any release contains ChangeCategory.Uncategorized, regardless of the isReleaseCandidate flag.

Tests were updated to reflect the new behavior, changing prior expectations that uncategorized entries could be allowed in non-RC mode or older releases.

Written by Cursor Bugbot for commit f25e8e3. This will update automatically on new commits. Configure here.

Previously, the Uncategorized change category was only rejected for
the current release when isReleaseCandidate was set. This meant
Uncategorized entries could slip through in older releases or when
running validation outside of release candidate mode.

Now validation always fails if any release contains an Uncategorized
heading, regardless of isReleaseCandidate.

Fixes MetaMask#207
@skyc1e skyc1e requested a review from a team as a code owner March 30, 2026 22:41
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.

Changelog validation should fail if an "Uncategorized" heading is present anywhere

1 participant