Skip to content

ci: sync OpenAPI spec daily and open a PR on drift - #67

Open
EastSun5566 wants to merge 1 commit into
developfrom
chore/openapi-sync-workflow
Open

EastSun5566 wants to merge 1 commit into
developfrom
chore/openapi-sync-workflow

Conversation

@EastSun5566

Copy link
Copy Markdown
Contributor

Summary

  • Add the OpenAPI sync workflow. It runs daily, or when started by hand or by repository_dispatch. It pulls the live spec, regenerates the client, and opens a chore: sync OpenAPI spec PR against develop. That PR lists added and removed operations and the oasdiff breaking report.
  • Add tests/coverage.spec.ts. It fails if a spec operation is neither wrapped in src/index.ts nor listed in RAW_ONLY.
  • Document the sync process in nodejs/AGENTS.md and the README.

Setup

Opening the PR needs a GitHub App, so that CI runs on the sync PR. Set the variable OPENAPI_SYNC_APP_ID and the secret OPENAPI_SYNC_APP_PRIVATE_KEY. Without them, the workflow only fails when the spec has drifted.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant