fix /kind changelog-not-required

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
Matthieu MOREL
2024-05-05 15:51:07 +02:00
parent 4d48273a24
commit a90c0a420b
3 changed files with 35 additions and 40 deletions

34
.github/labels.yaml vendored Normal file
View File

@@ -0,0 +1,34 @@
# Works with https://github.com/actions/labeler/
# Below this line, the keys are labels to be applied, and the values are the file globs to match against.
# Anything in the `design` directory gets the `Design` label.
Area/Design:
- changed-files:
- any-glob-to-any-file: design/*
# Anything in the site directory gets the website label *EXCEPT* docs
Website:
- all:
- changed-files:
- any-glob-to-any-file: site/**/*
- all-globs-to-all-files: '!site/content/docs/**/*'
Documentation:
- changed-files:
- any-glob-to-any-file: site/content/docs/**/*
Dependencies:
- changed-files:
- any-glob-to-any-file: go.mod
# Anything that has plugin infra will be labeled.
# Individual plugins don't necessarily live here, though
Area/Plugins:
- changed-files:
- any-glob-to-any-file: pkg/plugins/**/*
has-unit-tests:
- changed-files:
- any-glob-to-any-file: pkg/**/*_test.go
has-e2e-2tests:
- changed-files:
- any-glob-to-any-file: test/e2e/**/*
has-changelog:
- changed-files:
- any-glob-to-any-file: changelogs/**
kind:
- 'changelog-not-required'

39
.github/labels.yml vendored
View File

@@ -1,39 +0,0 @@
# Works with https://github.com/actions/labeler/
# Below this line, the keys are labels to be applied, and the values are the file globs to match against.
# Anything in the `design` directory gets the `Design` label.
Area/Design:
- changed-files:
- any-glob-to-any-file: 'design/*'
# Anything in the site directory gets the website label *EXCEPT* docs
Website:
- all:
- changed-files:
- any-glob-to-any-file: 'site/**/*'
- all-globs-to-all-files: '!site/content/docs/**/*'
Documentation:
- changed-files:
- any-glob-to-any-file: 'site/content/docs/**/*'
Dependencies:
- changed-files:
- any-glob-to-any-file: 'go.mod'
# Anything that has plugin infra will be labeled.
# Individual plugins don't necessarily live here, though
Area/Plugins:
- changed-files:
- any-glob-to-any-file: 'pkg/plugins/**/*'
has-unit-tests:
- changed-files:
- any-glob-to-any-file: 'pkg/**/*_test.go'
has-e2e-2tests:
- changed-files:
- any-glob-to-any-file: 'test/e2e/**/*'
has-changelog:
- changed-files:
- any-glob-to-any-file: 'changelogs/**'

View File

@@ -16,4 +16,4 @@ jobs:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labels.yml
configuration-path: .github/labels.yaml