Eric FennisandClaude 3a699de8e6 ci(icon-preview): Show icon previews in the PR description (#5338)
* ci: show icon previews in the PR description

Replace the icon-preview comment action with a workflow that writes a
preview image per added or changed icon into the PR description, between
the "Icon preview" markers from the PR template. The images are served by
review.lucide.dev, so the workflow no longer needs dependencies or the
PR's SVGs.

- scripts/updatePullRequestDescriptionPreview.mts renders the markup and
  replaces it between the markers (idempotent, keeps CRLF bodies and the
  surrounding text as is), and updates the body through the REST API.
- .github/workflows/pull-request-description-preview.yml runs it on
  pull_request_target from the base branch only.
- Add the "Icon preview" section with the markers to the PR template.
- Remove the pull-request-icon-preview workflow and the icon-preview action.

Co-Authored-By: Claude <noreply@anthropic.com>

* ci: move the PR description preview into the icon-preview action

Move the description preview script and its tests from scripts/ into
.github/actions/icon-preview, a composite action like the old one, with a
package.json (start, debug, test) and an .env.example for local runs. The
workflow now calls the action with the PR number, head SHA, changed files
and token as inputs.

Co-Authored-By: Claude <noreply@anthropic.com>

* ci: adjust the icon-preview action instead of adding a new workflow

Restore the icon-preview action and its workflow from main and adjust
them in place: the action now runs updatePullRequestDescriptionPreview.mts
(Node built-ins only, so no dependencies or install step) to write the
previews into the PR description, and the workflow calls it with the PR
number, head SHA, changed files and token. The separate
pull-request-description-preview workflow is removed.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(icon-preview): remove a lone marker before adding a fresh pair

When only the start or the end marker is left in the description, remove
it (with its line break) before prepending a new marker pair, so the
body never keeps an orphan marker.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-30 14:06:14 +01:00
2026-11-28 10:51:49 +01:00
2026-03-20 16:30:53 +01:00
2026-11-02 12:21:25 +01:00

Lucide - Beautiful & consistent icon toolkit made by the community. Open-source project and a fork of Feather Icons.

license figma installs build status discord chat

Icons · Guide · Packages · License · Showcase

Lucide

Lucide is an open-source icon library that provides 1600+ vector (svg) files for displaying icons and symbols in digital and non-digital projects. The library aims to make it easier for designers and developers to incorporate icons into their projects by providing several official packages to make it easier to use these icons in your project.

Packages

Logo Package Version Downloads Links
JS logo lucide npm NPM Downloads Docs · Source
React logo lucide-react npm NPM Downloads Docs · Source
Vue logo @lucide/vue npm NPM Downloads Docs · Source
Svelte logo @lucide/svelte npm NPM Downloads Docs · Source
Solid logo lucide-solid npm NPM Downloads Docs · Source
Preact logo lucide-preact npm NPM Downloads Docs · Source
React Native logo lucide-react-native npm NPM Downloads Docs · Source
Angular logo @lucide/angular npm NPM Downloads Docs · Source
Astro logo @lucide/astro npm NPM Downloads Docs · Source
SVG logo lucide-static npm NPM Downloads Docs · Source

Figma

The Lucide Figma plugin.

Visit Figma community page to install the plugin.

Figma Lucide Cover

Contributing

For more info on how to contribute please see the contribution guidelines.

Caught a mistake or want to contribute to the documentation? Edit this page on Github

About brand logos

Lucide does not accept brand logos, and we do not plan to add them in the future. This is due to a combination of legal restrictions, design consistency concerns, and practical maintenance reasons.

Click here to read our official statement about brand logos in Lucide.

Community

Join the community on our Discord server!

License

Lucide is totally free for commercial use and personal use, this software is licensed under the ISC License.

Credits

Thank you to all the people who contributed to Lucide!

Sponsors

Powered by Vercel

Bronze 🥉

Sourcegraph – Understand, fix, and automate across your codebase with Sourcegraph's code intelligence platform    Zephyr Cloud

Backers 🍺

Pax Historia    pdfme – Free and Open source PDF generation library!

Supporters ☕️

Fina Money – Build the most flexible finance tracker    Ruud

Other contributors 💸

You can find all our past and non-recurring financial contributors at our Open Collective page.

Languages
TypeScript 91.1%
JavaScript 7.3%
Svelte 0.7%
Vue 0.5%
HTML 0.3%
Other 0.1%