Fixed label search in propagate-labels.yml (#17520)

This commit is contained in:
Wojciech Knapik
2023-03-07 22:08:09 +01:00
committed by GitHub
parent 389bd0362c
commit fb1cae26d0
+2 -1
View File
@@ -30,7 +30,8 @@ jobs:
for label in "${relevant_pr_labels[@]}"; do
for issue in "${pr_issues[@]}"; do
if [[ "$(gh label list -R "$(echo "${issue:?}"|cut -d/ -f4-5)" --json name -q ".[]|select(.name==\"${label:?}\").name")" ]]; then
if [[ "$(gh label list -R "$(echo "${issue:?}"|cut -d/ -f4-5)" -S "${label:?}" \
--json name -q ".[]|select(.name==\"$label\").name")" ]]; then
gh issue edit "$issue" --add-label "$label"
fi
done