mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03: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:
parent
ce3899414d
commit
33257a9d7c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue