Simplify feature-flag handling: collapse CSV dual-variant + skip filtering when no checker #1322
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: MCP Server Diff | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| permissions: | |
| contents: read | |
| jobs: | |
| mcp-diff: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Build UI | |
| uses: ./.github/actions/build-ui | |
| - name: Generate diff configurations | |
| id: configs | |
| # The generator imports pkg/github so any new entry in | |
| # AllowedFeatureFlags is automatically diffed without touching this | |
| # workflow. See script/print-mcp-diff-configs/main.go. | |
| run: | | |
| { | |
| echo 'configurations<<MCP_DIFF_EOF' | |
| go run ./script/print-mcp-diff-configs | |
| echo 'MCP_DIFF_EOF' | |
| } >> "$GITHUB_OUTPUT" | |
| - name: Run MCP Server Diff | |
| uses: SamMorrowDrums/mcp-server-diff@v2.3.5 | |
| with: | |
| setup_go: "false" | |
| install_command: go mod download | |
| start_command: go run ./cmd/github-mcp-server stdio | |
| env_vars: | | |
| GITHUB_PERSONAL_ACCESS_TOKEN=test-token | |
| configurations: ${{ steps.configs.outputs.configurations }} | |
| - name: Add interpretation note | |
| if: always() | |
| run: | | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "---" >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "ℹ️ **Note:** Differences may be intentional improvements." >> $GITHUB_STEP_SUMMARY | |
| echo "" >> $GITHUB_STEP_SUMMARY | |
| echo "Common expected differences:" >> $GITHUB_STEP_SUMMARY | |
| echo "- New tools/toolsets added" >> $GITHUB_STEP_SUMMARY | |
| echo "- Tool descriptions updated" >> $GITHUB_STEP_SUMMARY | |
| echo "- Capability changes (intentional improvements)" >> $GITHUB_STEP_SUMMARY |