mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-09-30 05:53:12 +00:00
Merge pull request #63 from Sea-Haven-Industries/fix/labeler-monorepo-paths
Some checks failed
ci / ci / ci (push) Has been cancelled
Some checks failed
ci / ci / ci (push) Has been cancelled
fix(labeler): cover monorepo layouts + harden the reusable labeler
This commit is contained in:
commit
6714382a29
1 changed files with 42 additions and 1 deletions
43
.github/workflows/callable-labeler.yaml
vendored
43
.github/workflows/callable-labeler.yaml
vendored
|
|
@ -29,6 +29,10 @@ permissions:
|
|||
pull-requests: write
|
||||
issues: write
|
||||
|
||||
concurrency:
|
||||
group: labeler-${{ github.event.pull_request.number || github.run_id}}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -48,6 +52,7 @@ jobs:
|
|||
- 'template.yml'
|
||||
- '**/template.yaml'
|
||||
- 'samconfig.toml'
|
||||
- 'infra/**'
|
||||
app:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
|
|
@ -56,6 +61,9 @@ jobs:
|
|||
- 'lambdas/**'
|
||||
- 'api/**'
|
||||
- 'services/**'
|
||||
- 'web/**'
|
||||
- 'mobile/**'
|
||||
- 'shared/**'
|
||||
content:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
|
|
@ -68,6 +76,7 @@ jobs:
|
|||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
- '.github/workflows/**'
|
||||
- '.github/actions/**'
|
||||
docs:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
|
|
@ -80,16 +89,48 @@ jobs:
|
|||
- '**/package-lock.json'
|
||||
- '**/*.csproj'
|
||||
- '**/packages.lock.json'
|
||||
- '**/Directory.Packages.props'
|
||||
- '**/yarn.lock'
|
||||
- '**/pnpm-lock.yaml'
|
||||
- '**/Podfile'
|
||||
- '**/Podfile.lock'
|
||||
- '.github/dependabot.yml'
|
||||
tests:
|
||||
- changed-files:
|
||||
- any-glob-to-any-file:
|
||||
# directory conventions (covers Java src/test, Ruby test/spec, etc.)
|
||||
- '**/tests/**'
|
||||
- '**/test/**'
|
||||
- '**/spec/**'
|
||||
- '**/__tests__/**'
|
||||
# JS / TS
|
||||
- '**/*.test.js'
|
||||
- '**/*.test.jsx'
|
||||
- '**/*.test.ts'
|
||||
- '**/*.test.tsx'
|
||||
- '**/*.spec.js'
|
||||
- '**/*.spec.jsx'
|
||||
- '**/*.spec.ts'
|
||||
- '**/*.spec.tsx'
|
||||
# Python
|
||||
- '**/*_test.py'
|
||||
- '**/test_*.py'
|
||||
- '**/conftest.py'
|
||||
# .NET
|
||||
- '**/*Tests.cs'
|
||||
- '**/*Test.cs'
|
||||
- '**/*.Tests/**'
|
||||
# Java / JVM
|
||||
- '**/*Test.java'
|
||||
- '**/*Tests.java'
|
||||
- '**/*IT.java'
|
||||
# Go
|
||||
- '**/*_test.go'
|
||||
# Ruby
|
||||
- '**/*_spec.rb'
|
||||
- '**/*_test.rb'
|
||||
EOF
|
||||
- uses: actions/labeler@v6
|
||||
- uses: actions/labeler@f27b608878404679385c85cfa523b85ccb86e213 # v6
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
configuration-path: ${{ runner.temp }}/labeler.yml
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue