From 80d5c685e5420675796977f74de98c4d6bd8d0dc Mon Sep 17 00:00:00 2001 From: Louis Lam Date: Sun, 10 Dec 2023 21:20:08 +0800 Subject: [PATCH] Update reformat-changelog.ts --- extra/reformat-changelog.ts | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/extra/reformat-changelog.ts b/extra/reformat-changelog.ts index cba6605..9641eaa 100644 --- a/extra/reformat-changelog.ts +++ b/extra/reformat-changelog.ts @@ -4,16 +4,24 @@ const input = ` `; const template = ` + +> [!WARNING] +> + ### 🆕 New Features -### Improvements +### ⬆️ Improvements -### 🐞 Bug Fixes +### 🐛 Bug Fixes ### 🦎 Translation Contributions +### ⬆️ Security Fixes + ### Others - Other small changes, code refactoring and comment/doc updates in this repo: + +Please let me know if your username is missing, if your pull request has been merged in this version, or your commit has been included in one of the pull requests. `; const lines = input.split("\n").filter((line) => line.trim() !== ""); @@ -37,6 +45,12 @@ for (const line of lines) { } message = message.split("* ").pop(); - console.log("-", pullRequestID, message, `(Thanks ${username})`); + + let thanks = ""; + if (username != "@louislam") { + thanks = `(Thanks ${username})`; + } + + console.log(pullRequestID, message, thanks); } console.log(template);