From 5e98c780d9cd7cadebec25559caf66b572c83950 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 30 Oct 2024 15:49:59 +0800 Subject: [PATCH] Style: update code comments --- changelog/setup.cjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/changelog/setup.cjs b/changelog/setup.cjs index 1c3dd4a..1112a82 100644 --- a/changelog/setup.cjs +++ b/changelog/setup.cjs @@ -19,8 +19,14 @@ module.exports = function (Handlebars) { * @example {{githubUser "Cell"}} => "Lruihao" */ Handlebars.registerHelper('githubUser', function (context, { hash: { linked = false }}) { + /** + * Map Commit names to GitHub usernames + * if your commit name is not same as your GitHub username, add an entry here. + */ const map = { + // Author 'Cell': "Lruihao", + // Collaborators, Contributors } const username = map[context] || context if (linked) {