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

Improve changelog generation script to support closed milestones and avoid adding an empty other section #1351

Merged
merged 3 commits into from
Jul 16, 2024

Conversation

westonruter
Copy link
Member

During the release process for Performance Lab 3.3.0, there were a couple papercuts I noticed when generating the changelogs.

First, in order to satisfy npm run versions I added an empty changelog entry to the changelog. When running npm run readme, it would then take that empty changelog entry and put it in the **Other** section, erroneously. This PR fixes this by omitting this other section if it is empty. It also fixes insertion of a blank line break after the version heading.

Secondly, when attempting to generate a changelog for a closed milestone, the script would fail saying Cannot find milestone by title. This was confusing because the milestone does exist, but it is just closed. So this PR includes both open and closed milestones in the lookup.

Lastly, I corrected a changelog entry for Performance Lab.

@westonruter westonruter added [Type] Bug An existing feature is broken skip changelog PRs that should not be mentioned in changelogs labels Jul 16, 2024
@westonruter westonruter added this to the performance-lab n.e.x.t milestone Jul 16, 2024
Copy link

github-actions bot commented Jul 16, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <[email protected]>
Co-authored-by: swissspidy <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@westonruter westonruter merged commit b6e7d09 into trunk Jul 16, 2024
14 checks passed
@westonruter westonruter deleted the fix/changelog-generation branch July 16, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog PRs that should not be mentioned in changelogs [Type] Bug An existing feature is broken
Projects
Status: Done 😃
Development

Successfully merging this pull request may close these issues.

2 participants