From 2e2133d2742a368e81b7754d868650a473076d60 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Wed, 18 Sep 2024 19:14:31 -0700 Subject: [PATCH] chore(ci): labeler v5 updates --- .github/{labeller.yaml => labeler.yaml} | 28 ++++++++++++------- .../{pr-labeller.yaml => pr-labeler.yaml} | 6 ++-- 2 files changed, 21 insertions(+), 13 deletions(-) rename .github/{labeller.yaml => labeler.yaml} (53%) rename .github/workflows/{pr-labeller.yaml => pr-labeler.yaml} (69%) diff --git a/.github/labeller.yaml b/.github/labeler.yaml similarity index 53% rename from .github/labeller.yaml rename to .github/labeler.yaml index f75dc4e6c..32fe91070 100644 --- a/.github/labeller.yaml +++ b/.github/labeler.yaml @@ -4,37 +4,45 @@ # Any change to any file in .github/workflows 'GitHub Actions': - - '.github/workflows/*' + - changed-files: + - any-glob-to-any-file: ['.github/workflows/*'] # Any change to the docker-compose file or any dockerfile in the repo 'Docker': - - '**/Dockerfile' - - docker-compose.yml + - changed-files: + - any-glob-to-any-file: ['**/Dockerfile', 'docker-compose.yml'] # Any changes to file or subfolders in /backend 'Backend': - - 'app/backend/**/*' + - changed-files: + - any-glob-to-any-file: ['app/backend/**/*'] # Any changes to file or subfolders in /frontend 'Frontend': - - 'app/frontend/**/*' + - changed-files: + - any-glob-to-any-file: ['app/frontend/**/*'] # Any changes to file or subfolders in /database 'Database': - - 'app/database/**/*' + - changed-files: + - any-glob-to-any-file: ['app/database/**/*'] # Any changes to file or subfolders in /scripts 'Scripts': - - 'app/scripts/**/*' + - changed-files: + - any-glob-to-any-file: ['app/scripts/**/*'] # Any changes to file or subfolders in /openshift 'OpenShift': - - 'openshift/**/*' + - changed-files: + - any-glob-to-any-file: ['openshift/**/*'] # Any changes to file of subfolders in /tests 'Testing': - - 'tests/**/*' + - changed-files: + - any-glob-to-any-file: ['tests/**/*'] # Any change to any file in any directory with a .env in name 'Environment Variables': - - '**/*.env*' + - changed-files: + - any-glob-to-any-file: ['**/*.env*'] diff --git a/.github/workflows/pr-labeller.yaml b/.github/workflows/pr-labeler.yaml similarity index 69% rename from .github/workflows/pr-labeller.yaml rename to .github/workflows/pr-labeler.yaml index 270b6d46b..212aaab82 100644 --- a/.github/workflows/pr-labeller.yaml +++ b/.github/workflows/pr-labeler.yaml @@ -1,6 +1,5 @@ name: "Pull Request Labeler" -on: -- pull_request_target +on: [pull_request_target] jobs: triage: @@ -9,7 +8,8 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: actions/labeler@v5 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: .github/labeller.yaml + configuration-path: .github/labeler.yaml