Conversation
📝 WalkthroughWalkthroughAdds a GitHub Actions workflow to sync Swagger JSON from Identity-API to AMRIT-Docs, introduces an H2 runtime dependency and a swagger profile properties file, disables Changes
Sequence DiagramsequenceDiagram
participant GHA as GitHub Actions
participant Runner as Build Runner
participant API as Identity API
participant Swagger as /v3/api-docs
participant jq as jq
participant Docs as AMRIT-Docs
participant GH as GitHub API
GHA->>Runner: checkout repo, setup Java 17, Maven cache
Runner->>Runner: mvn package (skip tests)
Runner->>API: start with profile=swagger (H2 in-memory)
loop poll until ready (30 × 5s)
GHA->>Swagger: GET /v3/api-docs
Swagger-->>GHA: Swagger JSON (when ready)
end
GHA->>jq: validate/format JSON -> identity-api.json
GHA->>API: stop process
GHA->>Docs: checkout AMRIT-Docs (token), copy `identity-api.json` -> `docs/swagger/`
GHA->>GH: create PR (branch auto/swagger-update-...)
GH-->>GHA: PR created
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Summary by CodeRabbit
New Features
Documentation
Chores