Skip to content

Commit

Permalink
chore: updated the conventional comments script to include emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
LetItRock committed Apr 4, 2024
1 parent 52af087 commit 40a91a7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/github-conventional-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@
'Issues highlight specific problems with the subject under review. These problems can be user-facing or behind the scenes. It is strongly recommended to pair this comment with a suggestion. If you are not sure if a problem exists or not, consider leaving a question.',
};

const EMOJII = {

Check warning on line 45 in scripts/github-conventional-comments.js

View workflow job for this annotation

GitHub Actions / Spell check

Unknown word (EMOJII)
[LABEL.praise]: '\u{1F44F}',
[LABEL.note]: '\u{1F5D2}',
[LABEL.nitpick]: '\u{1F913}',
[LABEL.thought]: '\u{1F4AD}',
[LABEL.suggestion]: '\u{270F}',
[LABEL.question]: '\u{2753}',
[LABEL.chore]: '\u{2611}',
[LABEL.issue]: '\u{26A0}',
};

function post(key, token) {
const blockingText = NON_BLOCKING.includes(key) ? ' (non-blocking)' : '';

Expand All @@ -51,7 +62,7 @@
mode: 'cors',
credentials: 'include',
body: new URLSearchParams({
body: `<!-- ${COMMENT[key]} -->\n**${key}${blockingText}:** ‏`,
body: `<!-- ${COMMENT[key]} -->\n${EMOJII[key]} **${key}${blockingText}:** ‏`,
authenticity_token: token,
title: `${key[0].toUpperCase()}${key.slice(1)}${blockingText}`,
}).toString(),
Expand Down

0 comments on commit 40a91a7

Please sign in to comment.