mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-12-03 16:59:42 +00:00
* 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>
60 lines
2.3 KiB
Markdown
60 lines
2.3 KiB
Markdown
<!--
|
|
PR Title Guidelines:
|
|
|
|
Please use the format: <type>(<scope>): <short description>
|
|
|
|
Example: feat(icons): added `camera` icon
|
|
|
|
Available types: fix, feat, perf, docs, style, refactor, test, chore, ci, build
|
|
Common scopes: icons, docs, studio, site, dev
|
|
-->
|
|
|
|
<!-- Insert `closes #issueNumber` below this line if merging this PR will resolve an existing issue or PR -->
|
|
|
|
## Description
|
|
<!-- What does this PR change, and why? -->
|
|
|
|
## Icon preview
|
|
<!-- Filled in automatically for added or changed icons. Leave the two marker lines below in place; anything between them is replaced. Remove this section if your PR doesn't touch icons. -->
|
|
|
|
[//]: <> (Icon preview start)
|
|
[//]: <> (Icon preview end)
|
|
|
|
## Icon use cases
|
|
<!-- Only for new icons; otherwise remove this section. -->
|
|
<!-- What is the purpose of this icon? For each icon added, please insert at least two real-life use cases (the more the better). Text like "it's a car icon" is not accepted. -->
|
|
<!-- Read use-cases convention here: https://lucide.dev/contribute/icons/metadata-conventions/#use-cases -->
|
|
|
|
## Icon details
|
|
<!-- Only for new icons or substantial redesigns; otherwise remove this section. -->
|
|
|
|
**Alternative designs:**
|
|
<!-- Include any alternative designs, if available. -->
|
|
|
|
**Created by:**
|
|
<!-- Myself | created by @USERNAME in #ISSUE_NUMBER -->
|
|
|
|
**Based on:**
|
|
<!-- List lucide icons -->
|
|
|
|
**Inspired by:**
|
|
<!-- List external designs -->
|
|
|
|
## Before submitting
|
|
|
|
- [ ] I've read and followed the applicable guides below and checked for existing PRs addressing the same change.
|
|
|
|
**For all PRs:**
|
|
- [Contribution guide](https://lucide.dev/contribute/)
|
|
|
|
**Only for new icons or substantial redesigns:**
|
|
- [Icon contribution guide](https://lucide.dev/contribute/icons/)
|
|
- [Icon eligibility](https://lucide.dev/contribute/icons/eligibility)
|
|
- [Design language](https://lucide.dev/contribute/icons/design-principles)
|
|
- [Design specification](https://lucide.dev/contribute/icons/specification)
|
|
- [Naming conventions](https://lucide.dev/contribute/icons/naming-conventions)
|
|
- [Metadata conventions](https://lucide.dev/contribute/icons/metadata-conventions/)
|
|
- [Use case guide](https://lucide.dev/contribute/icons/metadata-conventions/use-case-guide)
|
|
- [Tag guide](https://lucide.dev/contribute/icons/metadata-conventions/tag-guide)
|
|
- [SVG conventions](https://lucide.dev/contribute/icons/code-conventions)
|