mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-08-29 11:28:24 +02:00
* feat(metadata): implement pull request metadata suggestions workflow and replace suggestTags script * Switch to GPT 5 * Update comment description * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
name: Pull request metadata suggestions
|
|
|
|
on:
|
|
pull_request_target:
|
|
paths:
|
|
- 'icons/*.json'
|
|
|
|
jobs:
|
|
pull-request-metadata-suggestions:
|
|
name: Pull Request Metadata Suggestions
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
steps:
|
|
# We checkout the main branch of main repository for security reasons.
|
|
# This is to prevent the workflow from running on a forked repository.
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
repository: lucide-icons/lucide
|
|
- uses: pnpm/action-setup@v4
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
cache: 'pnpm'
|
|
node-version-file: 'package.json'
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Generate comment markup
|
|
run: node ./scripts/suggestMetaData.mts
|
|
env:
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
|
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|