mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-07 16:18:55 +00:00
Some checks are pending
ci / ci / ci (push) Waiting to run
Bumps the minor-and-patch group with 3 updates: [actions/labeler](https://github.com/actions/labeler), [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) and [anthropics/claude-code-action](https://github.com/anthropics/claude-code-action). Updates `actions/labeler` from 6.1.0 to 6.2.0 - [Release notes](https://github.com/actions/labeler/releases) - [Commits](f27b608878...b8dd2d9be0) Updates `aws-actions/configure-aws-credentials` from 6.2.1 to 6.2.2 - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](254c19bd24...517a711dbc) Updates `anthropics/claude-code-action` from 1.0.165 to 1.0.171 - [Release notes](https://github.com/anthropics/claude-code-action/releases) - [Commits](558b1d6cab...e90deca476) --- updated-dependencies: - dependency-name: actions/labeler dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-and-patch - dependency-name: aws-actions/configure-aws-credentials dependency-version: 6.2.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch - dependency-name: anthropics/claude-code-action dependency-version: 1.0.171 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
137 lines
4.7 KiB
YAML
137 lines
4.7 KiB
YAML
name: Labeler
|
|
|
|
# Reusable PR auto-labeler for all Sea-Haven-Industries repos.
|
|
#
|
|
# The label rules live HERE as the single source of truth and are written to the
|
|
# runner at execution time, so caller repos need only a short caller workflow and
|
|
# no per-repo labeler.yml.
|
|
#
|
|
# Callers trigger this on `pull_request` (NOT pull_request_target): every org repo
|
|
# is private and takes no fork PRs, so the lower-privilege event is sufficient and
|
|
# avoids the pull_request_target pwn-request surface. Because `pull_request` runs
|
|
# the workflow from the PR merge commit, the Labeler check appears on the PR that
|
|
# first adds the caller — an absent or failed Labeler check means a missing
|
|
# permission grant on the caller, not "expected" behaviour.
|
|
#
|
|
# Callers MUST grant all three permissions below. Reusable-workflow permissions can
|
|
# only be downgraded from the caller, so a caller that omits one (e.g. issues:write)
|
|
# either fails to create labels or triggers a silent startup_failure:
|
|
# permissions:
|
|
# contents: read
|
|
# pull-requests: write
|
|
# issues: write
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
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
|
|
steps:
|
|
- name: Write central label rules
|
|
run: |
|
|
mkdir -p "${{ runner.temp }}"
|
|
cat > "${{ runner.temp }}/labeler.yml" <<'EOF'
|
|
infra:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- 'lib/**'
|
|
- 'bin/**'
|
|
- 'cdk/**'
|
|
- 'cdk.json'
|
|
- 'template.yaml'
|
|
- 'template.yml'
|
|
- '**/template.yaml'
|
|
- 'samconfig.toml'
|
|
- 'infra/**'
|
|
app:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- 'src/**'
|
|
- 'functions/**'
|
|
- 'lambdas/**'
|
|
- 'api/**'
|
|
- 'services/**'
|
|
- 'web/**'
|
|
- 'mobile/**'
|
|
- 'shared/**'
|
|
content:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- '**/*.html'
|
|
- '**/*.css'
|
|
- 'assets/**'
|
|
- 'sitemap.xml'
|
|
- 'robots.txt'
|
|
ci:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- '.github/workflows/**'
|
|
- '.github/actions/**'
|
|
docs:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- '**/*.md'
|
|
dependencies:
|
|
- changed-files:
|
|
- any-glob-to-any-file:
|
|
- '**/requirements.txt'
|
|
- '**/package.json'
|
|
- '**/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@b8dd2d9be0f68b860e7dae5dae7d772984eacd6d # v6
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
configuration-path: ${{ runner.temp }}/labeler.yml
|
|
sync-labels: false
|