From 0b5a21f7a89327c7d879075b419f9d330afb6ec6 Mon Sep 17 00:00:00 2001 From: Archie Jaskowicz Date: Thu, 25 Jan 2024 12:08:22 +0000 Subject: [PATCH 1/2] ci: labeler no longer fails --- .github/labeler.yml | 70 ++++++++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 29 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 62a6ca852e..32dc7e5812 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,35 +1,47 @@ documentation: -- '**Doxyfile' -- '**docpages/**' -- '**/*.h' -- '**/documentation.yml' -- '**.cspell.json' -- '**README.md' -- '**SECURITY.md' -- '**CONTRIBUTING.md' -- '**CODE_OF_CONDUCT.md' +- changed-files: + - any-glob-to-any-file: + - '**Doxyfile' + - '**docpages/**' + - '**/*.h' + - '**/documentation.yml' + - '**.cspell.json' + - '**README.md' + - '**SECURITY.md' + - '**CONTRIBUTING.md' + - '**CODE_OF_CONDUCT.md' build: -- '**buildtools/**' -- '**cmake/**' -- '**library-vcpkg/**' -- '**library/**' -- '**win32/**' -- '**CMakeLists.txt' -- '**CMakeSettings.json' -- '**settings.json' -- '**dpp.pc.in' +- changed-files: + - any-glob-to-any-file: + - '**buildtools/**' + - '**cmake/**' + - '**library-vcpkg/**' + - '**library/**' + - '**win32/**' + - '**CMakeLists.txt' + - '**CMakeSettings.json' + - '**settings.json' + - '**dpp.pc.in' packaging: -- '**vcpkg/**' -- '**makerelease.sh' -- '**sign.sh' -- '**Dockerfile' +- changed-files: + - any-glob-to-any-file: + - '**vcpkg/**' + - '**makerelease.sh' + - '**sign.sh' + - '**Dockerfile' submodules: -- '**.gitmodules' -- '**doxygen-awesome-css/**' # Ideally, nobody should be touching this, but it's here just in-case. +- changed-files: + - any-glob-to-any-file: + - '**.gitmodules' + - '**doxygen-awesome-css/**' # Ideally, nobody should be touching this, but it's here just in-case. github_actions: -- '**.github/labeler.yml' -- '**.github/dependabot.yml' -- '**.github/workflows/**' +- changed-files: + - any-glob-to-any-file: + - '**.github/labeler.yml' + - '**.github/dependabot.yml' + - '**.github/workflows/**' code: -- '**src/**' -- '**include/**' +- changed-files: + - any-glob-to-any-file: + - '**src/**' + - '**include/**' From 4cd8fff79b9175a8e0c0e59f005ffab4e2e6ba80 Mon Sep 17 00:00:00 2001 From: Archie Jaskowicz Date: Thu, 25 Jan 2024 12:22:29 +0000 Subject: [PATCH 2/2] ci: spaced out labeler.yml more --- .github/labeler.yml | 5 +++++ .github/workflows/labeler.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 32dc7e5812..b3941c42c3 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -10,6 +10,7 @@ documentation: - '**SECURITY.md' - '**CONTRIBUTING.md' - '**CODE_OF_CONDUCT.md' + build: - changed-files: - any-glob-to-any-file: @@ -22,6 +23,7 @@ build: - '**CMakeSettings.json' - '**settings.json' - '**dpp.pc.in' + packaging: - changed-files: - any-glob-to-any-file: @@ -29,17 +31,20 @@ packaging: - '**makerelease.sh' - '**sign.sh' - '**Dockerfile' + submodules: - changed-files: - any-glob-to-any-file: - '**.gitmodules' - '**doxygen-awesome-css/**' # Ideally, nobody should be touching this, but it's here just in-case. + github_actions: - changed-files: - any-glob-to-any-file: - '**.github/labeler.yml' - '**.github/dependabot.yml' - '**.github/workflows/**' + code: - changed-files: - any-glob-to-any-file: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4cc35411d4..7add5f9e35 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -7,7 +7,7 @@ permissions: contents: read jobs: - triage: + labeler: permissions: pull-requests: write # Labeler needs to be able to add labels to PRs. runs-on: ubuntu-latest