mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-08-29 11:58:24 +02:00
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@24d32ffd492484c1d75e0c0b894501ddb9d30d62 # v47.0.0
|
|
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 }}
|