mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
ci/request-reviews: Fix code owner requests for filenames with spaces
Discovered in https://github.com/NixOS/nixpkgs/pull/368656#issuecomment-2564266513
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user