]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
sort test report table by filename
authorAilin Nemui <redacted>
Sun, 25 Jan 2026 13:54:41 +0000 (14:54 +0100)
committerAilin Nemui <redacted>
Sun, 25 Jan 2026 13:54:41 +0000 (14:54 +0100)
_testing/github/_get_files_arr.zsh

index 1ac2e053cba629a76b79cfa6293dab8f6eb81ad1..ada375f3cfaac8910536e469796364c179aeff1b 100644 (file)
@@ -1,11 +1,11 @@
 script_pattern='^scripts/.*\.\(pl\|py\)$'
 OIFS=$IFS; IFS=$'\n'
-filelist=($(find scripts -type f | grep $script_pattern))
+filelist=($(find scripts -type f | grep $script_pattern | sort -V))
 IFS=$OIFS
 if [[ $GITHUB_REF != refs/heads/master ]] {
     local -a scriptfiles
     OIFS=$IFS; IFS=$'\n'
-    scriptfiles=($(git diff --numstat --no-renames origin/master | cut -f3 | grep $script_pattern))
+    scriptfiles=($(git diff --numstat --no-renames origin/master | cut -f3 | grep $script_pattern | sort -V))
     IFS=$OIFS
     if [[ $#scriptfiles -gt 0 ]] {
         filelist=($scriptfiles)
git clone https://git.99rst.org/PROJECT