release notes: let files under test/ decide only test-only PRs

A PR with no title prefix that changes one S3 file and two Python tests
under test/s3 was filed under Tests and CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-17 19:41:15 -08:00
1 parent 7144c3c5cf
commit 8ce51ce629
2 files changed
+4 -1

No files matched your search

@@ -175,7 +175,7 @@ def section_by_scope(scope):
def section_by_paths(paths):
votes = {}
code = [p for p in paths if not p.endswith("_test.go") and not p.endswith("_test.rs")]
code = [p for p in paths if not p.endswith(("_test.go", "_test.rs")) and not p.startswith("test/")]
for p in code or paths:
if p.endswith(".md"):
section = "Documentation"
@@ -92,6 +92,9 @@ class ClassifyTest(unittest.TestCase):
def test_test_files_count_only_when_alone(self):
self.check("Make it faster", "Mount",
files=["weed/mount/weedfs.go", "test/fuse/a_test.go", "test/fuse/b_test.go"])
self.check("Make it right", "S3 API",
files=["weed/s3api/auth.go", "test/s3/iam/test_a.py", "test/s3/iam/test_b.py"])
self.check("Cover more", "Tests and CI", files=["test/s3/iam/test_a.py"])
NOTES = """## What's Changed