Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 67 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Configuration for GitHub Labeler Action
# https://github.com/actions/labeler

# Documentation changes
T-documentation:
- changed-files:
- any-glob-to-any-file: ['**/*.md', 'docs/**/*', '**/*.rst']

# Core library changes
T-core:
- changed-files:
- any-glob-to-any-file: ['crates/rmcp/src/**/*']

# Macro changes
T-macros:
- changed-files:
- any-glob-to-any-file: ['crates/rmcp-macros/**/*']

# Example changes
T-examples:
- changed-files:
- any-glob-to-any-file: ['examples/**/*']

# CI/CD changes
T-CI:
- changed-files:
- any-glob-to-any-file: ['.github/**/*', '**/*.yml', '**/*.yaml', '**/Dockerfile*']

# Dependencies
T-dependencies:
- changed-files:
- any-glob-to-any-file: ['**/Cargo.toml', '**/Cargo.lock', '**/package.json', '**/package-lock.json', '**/requirements.txt', '**/pyproject.toml']

# Tests
T-test:
- changed-files:
- any-glob-to-any-file: ['**/tests/**/*', '**/*test*.rs', '**/benches/**/*']

# Transport layer changes
T-transport:
- changed-files:
- any-glob-to-any-file: ['crates/rmcp/src/transport/**/*']

# Service layer changes
T-service:
- changed-files:
- any-glob-to-any-file: ['crates/rmcp/src/service/**/*']

# Handler changes
T-handler:
- changed-files:
- any-glob-to-any-file: ['crates/rmcp/src/handler/**/*']

# Model changes
T-model:
- changed-files:
- any-glob-to-any-file: ['crates/rmcp/src/model/**/*']

# Configuration files
T-config:
- changed-files:
- any-glob-to-any-file: ['**/*.toml', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.env*']

# Security related files
T-security:
- changed-files:
- any-glob-to-any-file: ['**/security.md', '**/SECURITY.md', '**/audit.toml']
27 changes: 27 additions & 0 deletions .github/workflows/auto-label-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Auto Label PR
on:
# Runs workflow when activity on a PR in the workflow's repository occurs.
pull_request_target:

jobs:
auto-label:
permissions:
contents: read
pull-requests: write

name: Assign labels
runs-on: ubuntu-latest
timeout-minutes: 5

# Required by gh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}

steps:
- uses: actions/labeler@v5
with:
# Auto-include paths starting with dot (e.g. .github)
dot: true
# Remove labels when matching files are reverted or no longer changed by the PR
sync-labels: true