Skip to content

Commit d43eaa2

Browse files
committed
fix
1 parent 5b63e2a commit d43eaa2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/auto-assign-reviewers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ jobs:
108108
while IFS='|' read -r tag path reviewers; do
109109
escaped_path=$(sed 's/[.[\*^$]/\\&/g' <<< "$path")
110110
echo "Checking path: '$path' → escaped: '$escaped_path'" # 调试输出
111-
if grep -qxE "$escaped_path(/.*)?" changed_files.txt; then
111+
# 修改这行,将(/.*)?改为(/.*)*以支持多级子目录
112+
if grep -qxE "$escaped_path(/.*)*" changed_files.txt; then
112113
echo "$reviewers" | tr -s ' ' '\n' | sed '/^$/d' >> triggered_reviewers.txt
113114
echo "$tag" >> triggered_tags.txt
114115
echo "Matched! Tag: $tag, Path: $path" # 调试输出

0 commit comments

Comments
 (0)