Skip to content

Drop brackets from generated changelog heading#1039

Merged
donnchawp merged 1 commit intotrunkfrom
fix/pre-build-version-format
Apr 14, 2026
Merged

Drop brackets from generated changelog heading#1039
donnchawp merged 1 commit intotrunkfrom
fix/pre-build-version-format

Conversation

@donnchawp
Copy link
Copy Markdown
Contributor

Summary

  • `scripts/publish.sh` extracts changelog notes via `awk '^### ver( |$|-)'`.
  • The bracketed heading `### [3.1.0] - 2026-04-14` does not match that pattern, causing `make publish` to fail with "No changelog section found for 3.1.0 in readme.txt."
  • Generate the heading without brackets so publish.sh can parse it, and so the format matches the pre-3.1.0 changelog entries in readme.txt.

Test plan

  • Run `scripts/pre-build.sh X.Y.Z` and confirm the generated changelog heading matches `### X.Y.Z - YYYY-MM-DD`.
  • Confirm publish.sh's awk extraction finds the block.

The release script in scripts/publish.sh extracts the changelog block
with the awk pattern `^### <version>( |$|-)`, which does not match
`### [<version>]`. Generate the heading as `### VERSION - DATE` so
publish.sh can find it.
@donnchawp donnchawp merged commit 303647d into trunk Apr 14, 2026
6 checks passed
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.

1 participant