Skip to content

ci: fix release notes extraction regex - #69

Merged
codeasier merged 1 commit into
mainfrom
fix/release-notes-regex
Jun 22, 2026
Merged

codeasier merged 1 commit into
mainfrom
fix/release-notes-regex

Conversation

@codeasier

Copy link
Copy Markdown
Owner

Summary

  • Fix the release workflow regex used to extract CHANGELOG.md release notes
  • Add a regression test that executes the same regex against the current ## [0.1.1] changelog entry

Why

The previous raw string over-escaped [ / ], causing Python re.PatternError: unterminated character set during local release validation. If left unfixed, a v0.1.1 tag could publish to PyPI but fail while creating the GitHub Release.

Verification

  • conda run -n cc pytest tests/test_release_workflow.py -v — 4 passed
  • conda run -n cc ruff check . — All checks passed
  • conda run -n cc pytest — 321 passed
  • Local release validation: CHANGELOG.md release notes for ## [0.1.1] found: 796 chars
  • Local tagged build validation: pt_snap_cli-0.1.1-py3-none-any.whl: Version: 0.1.1

@codeasier
codeasier merged commit 91883fa into main Jun 22, 2026
5 checks passed
@codeasier
codeasier deleted the fix/release-notes-regex branch June 22, 2026 12:52
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