Skip to content

Commit

Permalink
Merge pull request #773 from WordPress/fix/readme-changelog-title
Browse files Browse the repository at this point in the history
Strip new PL milestone prefix from milestone title to only have version in changelog
  • Loading branch information
felixarntz authored Jul 10, 2023
2 parents 8dd3044 + 29fbf08 commit 8e9250b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/plugin/commands/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function getIssueFocus( issue ) {
* @return {string} The formatted changelog string.
*/
function formatChangelog( milestone, pullRequests ) {
let changelog = '= ' + milestone + ' =\n\n';
let changelog = '= ' + milestone.replace( 'PL Plugin ', '' ) + ' =\n\n';

// Group PRs by type.
const typeGroups = groupBy( pullRequests, getIssueType );
Expand Down

0 comments on commit 8e9250b

Please sign in to comment.