We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d574b commit b1fd32dCopy full SHA for b1fd32d
.github/workflows/request_codeowners_review.yml
@@ -50,7 +50,9 @@ jobs:
50
done
51
# Remove duplicates and format for JSON
52
reviewers=$(echo "$reviewers" | xargs -n1 | sort -u | xargs)
53
- IFS=' ' read -ra reviewers_array <<< "$reviewers"
+ # Remove @ from reviewers (it stays in the beginning of the username)
54
+ reviewers_cleaned=${reviewers//@/}
55
+ IFS=' ' read -ra reviewers_array <<< "$reviewers_cleaned"
56
json_array=$(printf ',\"%s\"' "${reviewers_array[@]}")
57
json_array="[${json_array:1}]" # Remove the leading comma
58
echo "JSON array: $json_array"
0 commit comments