Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot parse unconventional changelogs like jszip #12

Open
josephdpurcell opened this issue Oct 26, 2024 · 1 comment
Open

Cannot parse unconventional changelogs like jszip #12

josephdpurcell opened this issue Oct 26, 2024 · 1 comment

Comments

@josephdpurcell
Copy link
Owner

The package jszip has sections with first, second, and third level headings.

The changelog-parser lib used by readachangelog seems to be unable to parse it, because if you run it through it you get:

$ readachangelog view jszip --format=json
{"versions":[{"title":"v1.0.0, 2013-02-14","version":"1.0.0","date":"2013-02-14","body":"- First release after a long period without version."}]}

This ticket can probably just be closed, because this issue really lies with jszip not following convention, or arguably changelog-parser could be changed to be more accommodating. I'm not sure there is anything to reasonably do for cases like this.

@josephdpurcell
Copy link
Owner Author

The element-ui changelog looks reasonable https://raw.githubusercontent.com/ElemeFE/element/refs/heads/dev/CHANGELOG.en-US.md, but it also is not getting parsed correctly. Here's a screenshot of the debugger showing the content is getting parsed with only one version with both version and date fields as null:

unable-to-parse-element-ui

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

No branches or pull requests

1 participant