Skip to content

Commit

Permalink
chore(ci): labeler v5 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Sep 19, 2024
1 parent 3a8cc0b commit 2e2133d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
28 changes: 18 additions & 10 deletions .github/labeller.yaml → .github/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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*']
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: "Pull Request Labeler"
on:
- pull_request_target
on: [pull_request_target]

jobs:
triage:
Expand All @@ -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

0 comments on commit 2e2133d

Please sign in to comment.