Skip to content

fix(release): extract changelog sections safely - #19

Merged
ShiroKSH merged 1 commit into
masterfrom
fix/release-notes-0.1.0
Aug 13, 2026
Merged

fix(release): extract changelog sections safely#19
ShiroKSH merged 1 commit into
masterfrom
fix/release-notes-0.1.0

Conversation

@ShiroKSH

Copy link
Copy Markdown
Owner

Summary

  • replace the release assembly's DOTALL changelog regex with deterministic line-oriented section extraction
  • reject missing, duplicate, empty, unreleased, and malformed version sections
  • write generated release notes atomically and cover the repository changelog plus CLI failure behavior

Verification

  • python -B -m unittest discover -s scripts/tests -p 'test_*.py' — 32 passed
  • real CHANGELOG.md extraction for 0.1.0 — generated a non-empty 5,044-byte release-notes file
  • python scripts/check-release-contract.py --expected-version 0.1.0
  • actionlint 1.7.12 on .github/workflows/draft-release.yml
  • PyYAML parse of .github/workflows/draft-release.yml
  • git diff --check

@ShiroKSH
ShiroKSH requested a review from Anerson-Auf as a code owner August 13, 2026 10:11
@ShiroKSH
ShiroKSH merged commit b1726fa into master Aug 13, 2026
16 checks passed
@ShiroKSH
ShiroKSH deleted the fix/release-notes-0.1.0 branch August 13, 2026 10:40
@ShiroKSH
ShiroKSH restored the fix/release-notes-0.1.0 branch August 13, 2026 10:40
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