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
134 changes: 134 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# Labeler configuration for mcp-execution project
# Documentation: https://github.com/actions/labeler

# Crate-specific labels
'crate: mcp-core':
- changed-files:
- any-glob-to-any-file:
- 'crates/mcp-core/**/*'
- 'crates/mcp-core/*'

'crate: mcp-introspector':
- changed-files:
- any-glob-to-any-file:
- 'crates/mcp-introspector/**/*'
- 'crates/mcp-introspector/*'

'crate: mcp-codegen':
- changed-files:
- any-glob-to-any-file:
- 'crates/mcp-codegen/**/*'
- 'crates/mcp-codegen/*'

'crate: mcp-files':
- changed-files:
- any-glob-to-any-file:
- 'crates/mcp-files/**/*'
- 'crates/mcp-files/*'

'crate: mcp-cli':
- changed-files:
- any-glob-to-any-file:
- 'crates/mcp-cli/**/*'
- 'crates/mcp-cli/*'

# Type labels
'type: documentation':
- changed-files:
- any-glob-to-any-file:
- 'docs/**/*'
- '**/*.md'
- 'LICENSE'
- 'CHANGELOG.md'
- 'CLAUDE.md'

'type: ci':
- changed-files:
- any-glob-to-any-file:
- '.github/**/*'
- '.github/workflows/**/*'
- 'deny.toml'
- 'codecov.yml'
- 'rust-toolchain.toml'

'type: dependencies':
- changed-files:
- any-glob-to-any-file:
- '**/Cargo.toml'
- 'Cargo.lock'
- '.cargo/**/*'

'type: tests':
- changed-files:
- any-glob-to-any-file:
- 'tests/**/*'
- '**/*_test.rs'
- '**/tests.rs'
- '**/test_*.rs'

'type: benchmarks':
- changed-files:
- any-glob-to-any-file:
- 'benches/**/*'
- '**/*_bench.rs'
- '**/bench_*.rs'

'type: examples':
- changed-files:
- any-glob-to-any-file:
- 'examples/**/*'

# Architecture Decision Records
'adr':
- changed-files:
- any-glob-to-any-file:
- 'docs/adr/**/*'

# Build configuration
'build':
- changed-files:
- any-glob-to-any-file:
- 'Cargo.toml'
- 'build.rs'
- '**/build.rs'
- 'rust-toolchain.toml'

# Security
'security':
- changed-files:
- any-glob-to-any-file:
- 'deny.toml'
- 'SECURITY.md'

# Multiple crates (workspace-wide changes)
'workspace':
- changed-files:
- all-globs-to-all-files:
- 'crates/*/Cargo.toml'
- any-glob-to-any-file:
- 'Cargo.toml'
- 'Cargo.lock'

# Breaking changes detection (based on file patterns)
'breaking change':
- changed-files:
- any-glob-to-any-file:
- 'crates/*/src/lib.rs'
- 'crates/*/src/types.rs'
- 'crates/*/src/error.rs'
- 'CHANGELOG.md'
- head-branch:
- '^breaking/.*'
- '^major/.*'

# Release preparation
'release':
- changed-files:
- any-glob-to-any-file:
- 'CHANGELOG.md'
- 'Cargo.toml'
- all-globs-to-all-files:
- 'crates/*/Cargo.toml'
- head-branch:
- '^release/.*'
- '^v[0-9]+\.[0-9]+\.[0-9]+.*'
35 changes: 0 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,6 @@ jobs:
with:
toolchain: ${{ matrix.rust }}

# Setup sccache for faster compilation
- name: Setup sccache
uses: mozilla-actions/[email protected]

- name: Configure sccache
shell: bash
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -134,9 +124,6 @@ jobs:
- name: Run doctests
run: cargo test --doc --all-features --workspace

- name: sccache stats
run: sccache --show-stats

# Code coverage (Linux only for speed)
coverage:
name: Code Coverage
Expand Down Expand Up @@ -228,14 +215,6 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Setup sccache
uses: mozilla-actions/[email protected]

- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -244,9 +223,6 @@ jobs:
- name: Build benchmarks (no run)
run: cargo bench --no-run --profile bench-fast --workspace

- name: sccache stats
run: sccache --show-stats

# Release build check
release:
name: Release Build
Expand All @@ -261,14 +237,6 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Setup sccache
uses: mozilla-actions/[email protected]

- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -285,9 +253,6 @@ jobs:
echo "Target directory size:"
du -sh target/release/

- name: sccache stats
run: sccache --show-stats

# All checks passed
ci-success:
name: CI Success
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR Labeler

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write

jobs:
label:
name: Label Pull Request
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Apply labels
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler.yml
sync-labels: true
9 changes: 0 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ jobs:
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu

- name: Setup sccache
uses: mozilla-actions/[email protected]

- name: Configure sccache
shell: bash
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV

- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
Expand Down
Loading