From 5d268fc2ac63ff94f90f7700a8c1a7f136c74544 Mon Sep 17 00:00:00 2001 From: Sammy Farida Date: Sun, 2 Nov 2025 05:54:00 -0500 Subject: [PATCH] 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. --- .github/labeler.yml | 132 ++++++++++++++++++++-------------- .github/workflows/labeler.yml | 2 +- 2 files changed, 81 insertions(+), 53 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index e4b55bd..4f77499 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -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 diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4613569..6be0b2f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -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 }}"