Skip to content

Commit

Permalink
[core] Use Base UI repo in the release changelog script (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak authored May 13, 2024
1 parent ca1c6c9 commit e18187d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions scripts/releaseChangelog.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,8 @@ async function main(argv) {
return aTags.localeCompare(bTags);
});
const changes = commitsItems.map((commitsItem) => {
// Helps changelog author keeping track of order when grouping commits under headings.
// ​ is a zero-width-space that ensures that the content of the listitem is formatted properly
const dateSortMarker = `&#8203;<!-- ${(commitsItems.length - commitsItems.indexOf(commitsItem))
.toString()
// Padding them with a zero means we can just feed a list into online sorting tools like https://www.online-utility.org/text/sort.jsp
// i.e. we can sort the lines alphanumerically
.padStart(Math.floor(Math.log10(commitsItemsByDateDesc.length)) + 1, '0')} -->`;
const shortMessage = commitsItem.commit.message.split('\n')[0];
return `- ${dateSortMarker}${shortMessage} @${getAuthor(commitsItem)}`;
return `- ${shortMessage} @${getAuthor(commitsItem)}`;
});
const nowFormatted = new Date().toLocaleDateString('en-US', {
month: 'short',
Expand Down Expand Up @@ -200,7 +193,7 @@ yargs(process.argv.slice(2))
type: 'string',
})
.option('repo', {
default: 'material-ui',
default: 'base-ui',
describe: 'Repository to generate a changelog for',
type: 'string',
});
Expand Down

0 comments on commit e18187d

Please sign in to comment.