You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c4e607f
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: Handle missing UNRELEASED sections and improve flexibility
Enhanced changelog insertion logic to handle all possible scenarios:
- **No UNRELEASED section**: Creates full "## Unreleased\n### Section\n- Entry"
- **UNRELEASED but no subsection**: Creates "### Section\n- Entry"
- **Both exist**: Just adds "- Entry"
Changes:
- Refactored findChangelogInsertionPoint() to return insertContent type
- Updated generateChangelogSuggestion() with switch statement for content types
- Added 8 new edge case tests (43 total tests, all passing)
- Handles empty changelogs, missing sections, mixed case headers
This makes the feature work with any changelog state, not just existing
structured changelogs.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments