mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-15 14:08:49 +00:00
feat: include code snippet in preview comment (#1973)
* feat: include code snippet in preview comment * feat: collapse code snippet in preview comment when it has more than 20 lines * Update scripts/generateChangedIconsCommentMarkup.mjs Co-authored-by: Eric Fennis <eric.fennis@gmail.com> --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
This commit is contained in:
co-authored by
Eric Fennis
parent
4aa36db1cb
commit
4c6587612a
@@ -94,6 +94,10 @@ jobs:
|
||||
comment-author: 'github-actions[bot]'
|
||||
body-includes: Added or changed icons
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
- name: Install svgson for code preview (safer and faster than installing all deps)
|
||||
run: npm install svgson
|
||||
|
||||
- name: Generate comment markup
|
||||
run: node ./scripts/generateChangedIconsCommentMarkup.mjs >> comment-markup.md
|
||||
id: comment-markup
|
||||
|
||||
Reference in New Issue
Block a user