Skip to content

fix(release-notes): zero-pad version param for correct Hugo sorting - #2397

Merged
jasonmcintosh merged 1 commit into
masterfrom
fixReleaseNotesVersion
Oct 30, 2026
Merged

jasonmcintosh merged 1 commit into
masterfrom
fixReleaseNotesVersion

Conversation

@christosarvanitis

Copy link
Copy Markdown
Contributor

Hugo's .ByParam sorts strings lexicographically, so 2.40.10 sorted before 2.40.9. This caused the 'latest releases' list to always stop at .9 patches, skipping .10, .11, etc.

  • Normalize all release note frontmatter version params to zero-padded format (e.g., 2.40.1 -> 02.40.01)
  • Update release note templates to auto-generate zero-padded versions from armoryVersion payload

Resolves GitHub issue:

Resolves Jira: [JIRAPROJECT-123]

Hugo's .ByParam sorts strings lexicographically, so 2.40.10 sorted
before 2.40.9. This caused the 'latest releases' list to always
stop at .9 patches, skipping .10, .11, etc.

- Normalize all release note frontmatter version params to
  zero-padded format (e.g., 2.40.1 -> 02.40.01)
- Update release note templates to auto-generate zero-padded
  versions from armoryVersion payload
@christosarvanitis
christosarvanitis requested a review from a team as a code owner October 30, 2026 15:00
@jasonmcintosh
jasonmcintosh merged commit a2011c1 into master Oct 30, 2026
8 checks passed
@jasonmcintosh
jasonmcintosh deleted the fixReleaseNotesVersion branch October 30, 2026 15:03
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.

2 participants