mirror of
https://github.com/blackboxprogramming/simulation-theory.git
synced 2026-03-18 03:33:59 -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
|
# Count total changed files robustly, even when there are zero files
|
||||||
TOTAL=$(printf '%s\n' "$ALL_FILES" | sed '/^$/d' | wc -l | tr -d ' ')
|
TOTAL=$(printf '%s\n' "$ALL_FILES" | sed '/^$/d' | wc -l | tr -d ' ')
|
||||||
FILES=$(echo "$ALL_FILES" | head -50 | tr '\n' ', ')
|
FILES=$(echo "$ALL_FILES" | head -50 | tr '\n' ', ')
|
||||||
|
FILES="${FILES%, }"
|
||||||
if [ "$TOTAL" -gt 50 ]; then
|
if [ "$TOTAL" -gt 50 ]; then
|
||||||
REMAINING=$(( TOTAL - 50 ))
|
REMAINING=$(( TOTAL - 50 ))
|
||||||
FILES="${FILES} (and ${REMAINING} more files)"
|
FILES="${FILES} (and ${REMAINING} more files)"
|
||||||
|
|||||||
Reference in New Issue
Block a user