mirror of
https://github.com/nearai/ironclaw.git
synced 2026-09-02 23:56:24 +08:00
fix(ci): exclude test files from PR size classification (#2387)
* fix(ci): exclude test files from PR size classification Test code shouldn't inflate PR size labels — a 1-line fix with 500 lines of tests was getting classified as XL instead of XS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * ci: retrigger with skip-regression-check label Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Zaki <zaki@iqlusion.io>
This commit is contained in:
5
.github/scripts/pr-labeler.sh
vendored
5
.github/scripts/pr-labeler.sh
vendored
@@ -43,7 +43,10 @@ classify_size() {
|
||||
local total
|
||||
total=$(gh api "repos/${REPO}/pulls/${PR_NUMBER}/files" \
|
||||
--paginate --jq '
|
||||
[.[] | select(.filename | test("\\.(md|txt|rst|adoc)$") | not) | .changes]
|
||||
[.[]
|
||||
| select(.filename | test("\\.(md|txt|rst|adoc)$") | not)
|
||||
| select(.filename | test("^tests/|_test\\.rs$|_tests\\.rs$|/tests/|\\.test\\.[jt]sx?$|\\.spec\\.[jt]sx?$") | not)
|
||||
| .changes]
|
||||
| add // 0
|
||||
')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user