From a90c0a420b5a5ee4d8f45fd1658359849c7e6fe9 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 5 May 2024 15:51:07 +0200 Subject: [PATCH] fix `/kind changelog-not-required` Signed-off-by: Matthieu MOREL --- .github/labels.yaml | 34 ++++++++++++++++++++++++ .github/labels.yml | 39 ---------------------------- .github/workflows/auto_label_prs.yml | 2 +- 3 files changed, 35 insertions(+), 40 deletions(-) create mode 100644 .github/labels.yaml delete mode 100644 .github/labels.yml diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 0000000000..bd2d300df8 --- /dev/null +++ b/.github/labels.yaml @@ -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' diff --git a/.github/labels.yml b/.github/labels.yml deleted file mode 100644 index 979995f563..0000000000 --- a/.github/labels.yml +++ /dev/null @@ -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/**' diff --git a/.github/workflows/auto_label_prs.yml b/.github/workflows/auto_label_prs.yml index a6c8af9ff1..74a546488a 100644 --- a/.github/workflows/auto_label_prs.yml +++ b/.github/workflows/auto_label_prs.yml @@ -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