File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 4242
4343 echo -e "$md_change_list\n$par_change_list"
4444
45- if [[ -z "$md_change_list$par_change_list" ]] ; then
45+ if [[ $change_count -gt $file_limit ]]; then
46+ par_change_list=$(echo "$par_change_list" | grep -v namespaces)
47+ change_count=$(( $(echo "$md_change_list" | wc -l) + $(echo "$par_change_list" | wc -l) ))
48+ fi
49+
50+ if [[ -z "$md_change_list$par_change_list" ]]; then
4651 comment="Preview of modified files: no change to preview."
47- elif [[ $change_count -gt $file_limit ]] ; then
52+ elif [[ $change_count -gt $file_limit ]]; then
4853 comment="Preview of modified files: Too many files modified in a single PR, preview link list is skipped. ($change_count files > $file_limit)"
4954 else
5055 comment="# Preview of modified files"
You can’t perform that action at this time.
0 commit comments