feat(ci): upgrade labeler from v4 to v6.0.1 with new configuration schema

Breaking changes migration:
- Update actions/labeler@v4 to actions/labeler@v6.0.1
- Migrate .github/labeler.yml from simple array format to match object format
- Convert all 14 labels to use changed-files with any-glob-to-any-file matching
- Preserves existing glob patterns and label behavior

The v6 format provides more flexibility for complex matching rules.
Each label now explicitly defines its matching criteria.
This commit is contained in:
Sammy Farida
2025-11-02 05:54:08 -05:00
parent 0458ca1f9e
commit 5d268fc2ac
2 changed files with 81 additions and 53 deletions
+80 -52
View File
@@ -3,94 +3,122 @@
# Core source code changes
python:
- src/**/*.py
- tests/**/*.py
- pyproject.toml
- requirements*.txt
- changed-files:
- any-glob-to-any-file:
- src/**/*.py
- tests/**/*.py
- pyproject.toml
- requirements*.txt
# Documentation changes
documentation:
- docs/**/*
- README.md
- CHANGELOG.md
- CONTRIBUTING.md
- SECURITY.md
- "*.md"
- changed-files:
- any-glob-to-any-file:
- docs/**/*
- README.md
- CHANGELOG.md
- CONTRIBUTING.md
- SECURITY.md
- "*.md"
# Configuration changes
configuration:
- config/**/*
- examples/**/*
- compose/**/*
- Dockerfile
- docker-compose.yml
- changed-files:
- any-glob-to-any-file:
- config/**/*
- examples/**/*
- compose/**/*
- Dockerfile
- docker-compose.yml
# Docker and deployment
docker:
- Dockerfile
- compose/**/*
- docker-compose.yml
- changed-files:
- any-glob-to-any-file:
- Dockerfile
- compose/**/*
- docker-compose.yml
# Security-related changes
security:
- secrets/**/*
- keys/**/*
- config/credentials.yml
- config/policy.yml
- docs/SECURITY.md
- changed-files:
- any-glob-to-any-file:
- secrets/**/*
- keys/**/*
- config/credentials.yml
- config/policy.yml
- docs/SECURITY.md
# Testing changes
testing:
- tests/**/*
- "test_*.py"
- "*_test.py"
- changed-files:
- any-glob-to-any-file:
- tests/**/*
- "test_*.py"
- "*_test.py"
# Assets and branding
assets:
- assets/**/*
- "*.svg"
- "*.png"
- "*.jpg"
- "*.jpeg"
- "*.gif"
- changed-files:
- any-glob-to-any-file:
- assets/**/*
- "*.svg"
- "*.png"
- "*.jpg"
- "*.jpeg"
- "*.gif"
# CI/CD and GitHub workflows
ci:
- .github/**/*
- .github/workflows/**/*
- .github/actions/**/*
- changed-files:
- any-glob-to-any-file:
- .github/**/*
- .github/workflows/**/*
- .github/actions/**/*
# Dependencies and package management
dependencies:
- pyproject.toml
- requirements*.txt
- Pipfile
- Pipfile.lock
- poetry.lock
- changed-files:
- any-glob-to-any-file:
- pyproject.toml
- requirements*.txt
- Pipfile
- Pipfile.lock
- poetry.lock
# Server configuration
server-config:
- servers/**/*
- config/servers.yml
- config/credentials.yml
- changed-files:
- any-glob-to-any-file:
- servers/**/*
- config/servers.yml
- config/credentials.yml
# Policy and permissions
policy:
- config/policy.yml
- src/mcp_ssh/policy.py
- changed-files:
- any-glob-to-any-file:
- config/policy.yml
- src/mcp_ssh/policy.py
# SSH client functionality
ssh-client:
- src/mcp_ssh/ssh_client.py
- src/mcp_ssh/tools/**/*
- changed-files:
- any-glob-to-any-file:
- src/mcp_ssh/ssh_client.py
- src/mcp_ssh/tools/**/*
# MCP server functionality
mcp-server:
- src/mcp_ssh/mcp_server.py
- src/mcp_ssh/config.py
- servers/**/*
- changed-files:
- any-glob-to-any-file:
- src/mcp_ssh/mcp_server.py
- src/mcp_ssh/config.py
- servers/**/*
# Breaking changes (major version updates)
breaking:
- CHANGELOG.md
- pyproject.toml
- changed-files:
- any-glob-to-any-file:
- CHANGELOG.md
- pyproject.toml
+1 -1
View File
@@ -17,6 +17,6 @@ jobs:
pull-requests: write
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v6.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"