Improve labeler rules for kernel label (#724)

### Motivation and Context
#710 tried to enable the `kernel` tag but accidentally applied to too
many changes.

### Description
The best way to resolve this was specify directories under `dotnet` to
be considered for `kernel`.
 
 https://github.com/lemillermicrosoft/semantic-kernel/pull/7
 https://github.com/lemillermicrosoft/semantic-kernel/pull/8
 https://github.com/lemillermicrosoft/semantic-kernel/pull/10
https://github.com/lemillermicrosoft/semantic-kernel/pull/9 This one was
missed before.
This commit is contained in:
Lee Miller
2023-04-28 08:05:18 -07:00
committed by GitHub
parent f4758ff50d
commit c4e1449c4f
+8 -16
View File
@@ -1,34 +1,26 @@
# Add 'kernel' label to any change within the 'dotnet/src' that's not 'SemanticKernel' or 'SemanticKernel.Abstractions' directory
# Add 'kernel' label to any change within Connectors, Extensions, Skills, and tests directories
kernel:
- any: ["dotnet/src/**/*", "dotnet/src/*"]
- all:
[
"!dotnet/src/SemanticKernel/*",
"!dotnet/src/SemanticKernel/**/*",
"!dotnet/src/SemanticKernel.Abstractions/*",
"!dotnet/src/SemanticKernel.Abstractions/**/*",
]
- "dotnet/src/Connectors/**/*"
- "dotnet/src/Extensions/**/*"
- "dotnet/src/Skills/**/*"
- "dotnet/src/IntegrationTests/**/*"
- "dotnet/src/SemanticKernel.UnitTests/**/*"
# Add 'kernel.core' label to any change within the 'SemanticKernel' or 'SemanticKernel.Abstractions' directory
# Add 'kernel.core' label to any change within the 'SemanticKernel', 'SemanticKernel.Abstractions', or 'SemanticKernel.MetaPackage' directories
kernel.core:
- dotnet/src/SemanticKernel/*
- dotnet/src/SemanticKernel/**/*
- dotnet/src/SemanticKernel.Abstractions/*
- dotnet/src/SemanticKernel.Abstractions/**/*
- dotnet/src/SemanticKernel.MetaPackage/**/*
# Add 'python' label to any change within the 'python' directory
python:
- python/*
- python/**/*
# Add 'samples' label to any change within the 'samples' directory
samples:
- samples/*
- samples/**/*
# Add '.NET' label to any change within samples or kernel 'dotnet' directories.
.NET:
- dotnet/src/*
- dotnet/src/**/*
- samples/**/dotnet/**/*
- samples/**/dotnet/*