mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-10 13:18:25 +00:00
* cd: pin actions * fix: remove trailing whitespace in release.yml to pass prettier lint Co-authored-by: ericfennis <11825403+ericfennis@users.noreply.github.com> * Format code --------- Co-authored-by: Eric Fennis <eric.fennis@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ericfennis <11825403+ericfennis@users.noreply.github.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Request Review
|
|
on:
|
|
pull_request:
|
|
types: [opened]
|
|
paths:
|
|
- icons/*.svg
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
request-review:
|
|
if: github.repository == 'lucide-icons/lucide' && github.event.pull_request.draft == false
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
fetch-depth: 0
|
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
|
|
with:
|
|
files: icons/*.svg
|
|
- run: |
|
|
while IFS= read -r file; do
|
|
jq -r '.contributors[]' "${file%.svg}.json"
|
|
done <<< "$CHANGED_FILES" | while read -r contributor; do
|
|
gh pr edit "${{ github.event.pull_request.number }}" --add-reviewer "$contributor" || true
|
|
done
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|