mirror of
https://github.com/blackboxprogramming/simulation-theory.git
synced 2026-03-17 05:57:19 -05:00
Update pr-agent.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1
.github/workflows/pr-agent.yml
vendored
1
.github/workflows/pr-agent.yml
vendored
@@ -36,6 +36,7 @@ jobs:
|
||||
# Count total changed files robustly, even when there are zero files
|
||||
TOTAL=$(printf '%s\n' "$ALL_FILES" | sed '/^$/d' | wc -l | tr -d ' ')
|
||||
FILES=$(echo "$ALL_FILES" | head -50 | tr '\n' ', ')
|
||||
FILES="${FILES%, }"
|
||||
if [ "$TOTAL" -gt 50 ]; then
|
||||
REMAINING=$(( TOTAL - 50 ))
|
||||
FILES="${FILES} (and ${REMAINING} more files)"
|
||||
|
||||
Reference in New Issue
Block a user