Simplify labeler rules for kernel label (#710)

This commit simplifies the labeler rules for the kernel label by using
the any and all operators instead of a list of patterns. This makes the
rules more readable and easier to maintain and ensures `kernel` label is
used as appropriate. The logic of the rules still exclude the
SemanticKernel and SemanticKernel.Abstractions projects from the kernel
label but will now include if only non-core kernel changes are made.
This commit is contained in:
Lee Miller
2023-04-28 01:26:44 +00:00
committed by GitHub
parent 7af1b96b16
commit e456d841b0
+2 -3
View File
@@ -1,9 +1,8 @@
# Add 'kernel' label to any change within the 'dotnet/src' that's not 'SemanticKernel' or 'SemanticKernel.Abstractions' directory
kernel:
- any:
- any: ["dotnet/src/**/*", "dotnet/src/*"]
- all:
[
"dotnet/src/**/*",
"dotnet/src/*",
"!dotnet/src/SemanticKernel/*",
"!dotnet/src/SemanticKernel/**/*",
"!dotnet/src/SemanticKernel.Abstractions/*",