Swagger UI / Bump.sh / GitHub Pull Request 方式の赤・緑インライン差分ビューで、本番API仕様(before)とPR候補仕様(after)の破壊的変更を即時可視化。ワンクリックでGitHub PRコメント用Markdownレポートをコピーできます。
before (Main Branch JSON)
after (Pull Request JSON)
—.github/workflows/openapi-gate.yml)
name: OpenAPI Contract Release Gate
on: [pull_request]
jobs:
contract-gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run OpenAPI Breaking-Change Release Gate
run: |
jq -n --slurpfile before openapi-main.json --slurpfile after openapi-pr.json \
'{before: $before[0], after: $after[0]}' | \
curl -sS -X POST https://api-contract-release-gate.vercel.app/v1/compare \
-H "Content-Type: application/json" -d @- | tee gate.json
test "$(jq -r '.gate' gate.json)" = "PASS"
{
"mcpServers": {
"proofnexa-quant-b2b": {
"command": "npx",
"args": ["-y", "github:rotenkus-dot/b2b-lead-quant-mcp"]
}
}
}