From 5e12de940a4220b22754c12668474462df64090e Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 4 Jul 2024 20:54:19 +0200 Subject: [PATCH 1/3] labeler: remove matches for dropped files (Makefile) --- .github/labeler.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 24ff2f04c6..8fe01ea5a0 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -15,7 +15,7 @@ btrfs: - any-glob-to-any-file: '**/*btrfs*' build-system: - changed-files: - - any-glob-to-any-file: ['meson_options.txt', '**/meson.build', 'Makefile', 'configure'] + - any-glob-to-any-file: ['meson_options.txt', '**/meson.build'] busctl: - changed-files: - any-glob-to-any-file: '**/*busctl*' @@ -78,7 +78,7 @@ mkosi: - any-glob-to-any-file: ['.mkosi/*', 'mkosi.build'] mountfsd: - changed-files: - - any-glob-to-any-file: ['src/mountfsd/*'] + - any-glob-to-any-file: 'src/mountfsd/*' network: - changed-files: - any-glob-to-any-file: ['src/libsystemd-network/**/*', 'src/network/**/*'] From a3370d5d94167eddf9b0e6efd6a76bb5348afb9d Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 4 Jul 2024 20:55:42 +0200 Subject: [PATCH 2/3] labeler: match all mkosi files --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 8fe01ea5a0..5782c66c3b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -75,7 +75,7 @@ meson: - any-glob-to-any-file: ['meson_options.txt', '**/meson.build'] mkosi: - changed-files: - - any-glob-to-any-file: ['.mkosi/*', 'mkosi.build'] + - any-glob-to-any-file: '**/*mkosi*' mountfsd: - changed-files: - any-glob-to-any-file: 'src/mountfsd/*' From 5dfc88c12f541ff11ad53634be9ca40f13423467 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Thu, 4 Jul 2024 20:55:53 +0200 Subject: [PATCH 3/3] workflows/labeler: do not set labels on stable backport PRs --- .github/workflows/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index c2d8abd574..2058d22380 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -35,7 +35,7 @@ jobs: - name: Label PR based on policy in labeler.yml uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 - if: startsWith(github.event_name, 'pull_request') && github.event.action != 'closed' + if: startsWith(github.event_name, 'pull_request') && github.base_ref == 'main' && github.event.action != 'closed' with: repo-token: "${{ secrets.GITHUB_TOKEN }}" configuration-path: .github/labeler.yml