chore(ci): scope triage label to external authors (#1550)

This commit is contained in:
Darius Cepulis
2026-05-18 13:06:59 -07:00
committed by GitHub
parent 7035407963
commit e68ace82ff
2 changed files with 18 additions and 5 deletions
+13 -1
View File
@@ -11,8 +11,20 @@ jobs:
permissions:
issues: write
steps:
- run: gh issue edit "$NUMBER" --add-label triage
- name: Add triage label for external authors
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
AUTHOR: ${{ github.event.issue.user.login }}
run: |
internal=(decepulis mihar-22 luwes sampotts cjpillsbury heff esbie r-delfino95 ronald-urbina ronalduqualabs jerricho93 spuppo-mux)
author_lc="${AUTHOR,,}"
for handle in "${internal[@]}"; do
if [[ "$author_lc" == "$handle" ]]; then
echo "Author $AUTHOR is internal; skipping triage label."
exit 0
fi
done
echo "Author $AUTHOR is external; adding triage label."
gh issue edit "$NUMBER" --add-label triage