gha/labeler: Add area/testing when ONLY test files change

The area/testing label was added whenever any changed file was under a
test directory, so PRs that also touched daemon code got labeled.

Use any-glob-to-all-files so the label is only applied when every
changed file matches one of the test globs.
The vendor exclusion is dropped since no test glob matches vendor/.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski committed 2026-10-27 19:45:01 +01:00
1 parent 9cad7b0b9f
commit 10539e56d8
1 file changed
+6 -8
+6 -8
View File
@@ -132,14 +132,12 @@ area/rootless:
- all-globs-to-all-files: '!vendor/**'
area/testing:
- all:
- changed-files:
- any-glob-to-any-file:
- 'integration/**'
- 'integration-cli/**'
- 'internal/test*'
- 'internal/testutil/**'
- all-globs-to-all-files: '!vendor/**'
- changed-files:
- any-glob-to-all-files:
- 'integration/**'
- 'integration-cli/**'
- 'internal/test*'
- 'internal/testutil/**'
area/docs:
- all: