From 951ba0c864226eb828f350470d7e70544df68339 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 30 Jan 2024 16:29:27 +0300 Subject: [PATCH 1/2] Tweak the Labeler GA rules --- .github/labeler.yml | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 8a4a9c4..e21e9ec 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,20 +1,30 @@ dependencies: -- head-branch: '^update/' -- changed-files: - - all-globs-to-any-file: ['**/build.sbt'] + - all: + - head-branch: '^update/' + - changed-files: + - all-globs-to-any-file: '**/build.sbt' docs: -- changed-files: - - any-glob-to-any-file: ['docs/*', 'website/*', '**/*.md'] + - changed-files: + - any-glob-to-any-file: ['docs/*', 'website/*', '**/*.md'] sbt-scalac-profiling: -- changed-files: - - any-glob-to-any-file: 'sbt-plugin/*' + - changed-files: + - any-glob-to-any-file: sbt-plugin/* scalac-profiling: - changed-files: - any-glob-to-any-file: ['external/*', 'integrations/*', 'profiledb/*', 'plugin/*'] behind-the-scenes: - - changed-files: - - all-globs-to-all-files: ['!**/build.sbt', '!docs/*', '!website/*', '!**/*.md', '!sbt-plugin/*', '!external/*', '!integrations/*', '!profiledb/*', '!plugin/*'] + - all: + - changed-files: + - all-globs-to-all-files: '!**/build.sbt' + - all-globs-to-all-files: '!docs/*' + - all-globs-to-all-files: '!website/*' + - all-globs-to-all-files: '!**/*.md' + - all-globs-to-all-files: '!sbt-plugin/*' + - all-globs-to-all-files: '!external/*' + - all-globs-to-all-files: '!integrations/*' + - all-globs-to-all-files: '!profiledb/*' + - all-globs-to-all-files: '!plugin/*' From 5482bcffe64ca5c2ada59564de15b7db636aec25 Mon Sep 17 00:00:00 2001 From: danicheg Date: Tue, 30 Jan 2024 16:29:59 +0300 Subject: [PATCH 2/2] Remove old PR tags within the Labeler GA --- .github/workflows/label-pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/label-pr.yml b/.github/workflows/label-pr.yml index 16752e4..21b6556 100644 --- a/.github/workflows/label-pr.yml +++ b/.github/workflows/label-pr.yml @@ -10,3 +10,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/labeler@v5 + with: + sync-labels: true