Skip to content

Commit

Permalink
Style: update code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Oct 30, 2024
1 parent 1909ab8 commit 5e98c78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/setup.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5e98c78

Please sign in to comment.