Skip to content

Commit b1fd32d

Browse files
OhmSpectatorrouming
authored andcommitted
github/actions: Fix removal of '@' from usernames in pull request reviewer script.
I have removed it by mistake in this commit: 3f7b663 Signed-off-by: Nikolay Martyanov <[email protected]>
1 parent 52d574b commit b1fd32d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/request_codeowners_review.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ jobs:
5050
done
5151
# Remove duplicates and format for JSON
5252
reviewers=$(echo "$reviewers" | xargs -n1 | sort -u | xargs)
53-
IFS=' ' read -ra reviewers_array <<< "$reviewers"
53+
# Remove @ from reviewers (it stays in the beginning of the username)
54+
reviewers_cleaned=${reviewers//@/}
55+
IFS=' ' read -ra reviewers_array <<< "$reviewers_cleaned"
5456
json_array=$(printf ',\"%s\"' "${reviewers_array[@]}")
5557
json_array="[${json_array:1}]" # Remove the leading comma
5658
echo "JSON array: $json_array"

0 commit comments

Comments
 (0)