Skip to content

Commit

Permalink
ci/request-reviews: Fix code owner requests for filenames with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
infinisil committed Jan 9, 2025
1 parent ce38994 commit 33257a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/request-reviews/get-code-owners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ declare -A users=()
for file in "${touchedFiles[@]}"; do
result=$(codeowners --file "$tmp"/codeowners "$file")

read -r file owners <<< "$result"
# Remove the file prefix and trim the surrounding spaces
read -r owners <<< "${result#"$file"}"
if [[ "$owners" == "(unowned)" ]]; then
log "File $file is unowned"
continue
Expand Down

0 comments on commit 33257a9

Please sign in to comment.