gha/labeler: Only assign Windows to Windows-only changes

The platform/windows label was incorrectly being applied when any file
in a PR was Windows-specific, even if the PR also contained non-Windows
changes. This caused a lot of non-Windows-specific changes to be
mislabeled as Windows-only.

Changed from `any-glob-to-any-file` to `any-glob-to-all-files` so that
the windows label is only applied when ALL changed files match the
windows-specific patterns (like `*_windows.go` or `Dockerfile.windows`).

This ensures that mixed PRs containing both Windows and cross-platform
changes are not incorrectly tagged as Windows-only.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2026-04-10 11:48:48 +02:00
parent 994a849220
commit e0fc07b8cf

2
.github/labeler.yml vendored
View File

@@ -168,7 +168,7 @@ area/ci:
platform/windows:
- all:
- changed-files:
- any-glob-to-any-file:
- any-glob-to-all-files:
- '**/*_windows.go'
- 'Dockerfile.windows'
- all-globs-to-all-files: '!vendor/**'