[chore] enable multiple components (#2209)

This commit is contained in:
Guangya Liu 2025-05-05 19:28:25 -04:00 committed by GitHub
parent 14978381d0
commit d14c558083
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,14 @@ if [ $COUNT -eq 1 ]; then
gh pr edit "${PR}" --add-label "${CHANGE_TYPE}" || true
AREA=$(awk -F': ' '/^component:/ {print $2}' "$PR_CHANGELOG_PATH/$CHLOG" | xargs)
echo $AREA
gh pr edit "${PR}" --add-label "area:${AREA}" || true
if [[ "$AREA" == \[*\] ]]; then
cleaned=$(echo "$AREA" | tr -d '[]' | tr ',' '\n')
else
cleaned="$AREA"
fi
for item in $(echo "$cleaned" | tr ',' ' '); do
gh pr edit "${PR}" --add-label "area:${item}" || true
done
else
echo "Found multiple changelog files. Ignoring this change."
fi