name: Pull request metadata suggestions on: pull_request_target: paths: - 'icons/*.json' permissions: {} jobs: pull-request-metadata-suggestions: name: Pull Request Metadata Suggestions if: github.repository == 'lucide-icons/lucide' 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: repository: lucide-icons/lucide - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 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 }}