docs: clarify core vs optional workflows and add MCP-server variations to ci-cd.md #37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Label PRs | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| label: | |
| name: Auto-label by path | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Get changed files | |
| id: changed | |
| run: | | |
| FILES=$(gh pr diff ${{ github.event.pull_request.number }} --name-only) | |
| echo "files<<EOF" >> "$GITHUB_OUTPUT" | |
| echo "$FILES" >> "$GITHUB_OUTPUT" | |
| echo "EOF" >> "$GITHUB_OUTPUT" | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Apply labels | |
| run: | | |
| LABELS="" | |
| if echo "$FILES" | grep -q "^standards/"; then | |
| LABELS="$LABELS standards" | |
| fi | |
| if echo "$FILES" | grep -q "^scaffold/"; then | |
| LABELS="$LABELS scaffold" | |
| fi | |
| if echo "$FILES" | grep -q "^docs/"; then | |
| LABELS="$LABELS documentation" | |
| fi | |
| if echo "$FILES" | grep -q "^registry.json"; then | |
| LABELS="$LABELS registry" | |
| fi | |
| if echo "$FILES" | grep -q "^\.github/"; then | |
| LABELS="$LABELS ci" | |
| fi | |
| if [ -n "$LABELS" ]; then | |
| for label in $LABELS; do | |
| gh label create "$label" --force --color "ededed" 2>/dev/null || true | |
| gh pr edit ${{ github.event.pull_request.number }} --add-label "$label" | |
| done | |
| echo "Applied labels:$LABELS" | |
| else | |
| echo "No labels to apply" | |
| fi | |
| env: | |
| FILES: ${{ steps.changed.outputs.files }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |