Skip to content

Commit e18187d

Browse files
authored
[core] Use Base UI repo in the release changelog script (#355)
1 parent ca1c6c9 commit e18187d

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

scripts/releaseChangelog.mjs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,8 @@ async function main(argv) {
140140
return aTags.localeCompare(bTags);
141141
});
142142
const changes = commitsItems.map((commitsItem) => {
143-
// Helps changelog author keeping track of order when grouping commits under headings.
144-
// ​ is a zero-width-space that ensures that the content of the listitem is formatted properly
145-
const dateSortMarker = `&#8203;<!-- ${(commitsItems.length - commitsItems.indexOf(commitsItem))
146-
.toString()
147-
// 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
148-
// i.e. we can sort the lines alphanumerically
149-
.padStart(Math.floor(Math.log10(commitsItemsByDateDesc.length)) + 1, '0')} -->`;
150143
const shortMessage = commitsItem.commit.message.split('\n')[0];
151-
return `- ${dateSortMarker}${shortMessage} @${getAuthor(commitsItem)}`;
144+
return `- ${shortMessage} @${getAuthor(commitsItem)}`;
152145
});
153146
const nowFormatted = new Date().toLocaleDateString('en-US', {
154147
month: 'short',
@@ -200,7 +193,7 @@ yargs(process.argv.slice(2))
200193
type: 'string',
201194
})
202195
.option('repo', {
203-
default: 'material-ui',
196+
default: 'base-ui',
204197
describe: 'Repository to generate a changelog for',
205198
type: 'string',
206199
});

0 commit comments

Comments
 (0)