We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b63e2a commit d43eaa2Copy full SHA for d43eaa2
.github/workflows/auto-assign-reviewers.yml
@@ -108,7 +108,8 @@ jobs:
108
while IFS='|' read -r tag path reviewers; do
109
escaped_path=$(sed 's/[.[\*^$]/\\&/g' <<< "$path")
110
echo "Checking path: '$path' → escaped: '$escaped_path'" # 调试输出
111
- if grep -qxE "$escaped_path(/.*)?" changed_files.txt; then
+ # 修改这行,将(/.*)?改为(/.*)*以支持多级子目录
112
+ if grep -qxE "$escaped_path(/.*)*" changed_files.txt; then
113
echo "$reviewers" | tr -s ' ' '\n' | sed '/^$/d' >> triggered_reviewers.txt
114
echo "$tag" >> triggered_tags.txt
115
echo "Matched! Tag: $tag, Path: $path" # 调试输出
0 commit comments