ci: add workflow to regenerate models from OpenAPI spec#694
ci: add workflow to regenerate models from OpenAPI spec#694
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #694 +/- ##
==========================================
- Coverage 94.80% 94.68% -0.12%
==========================================
Files 45 45
Lines 4404 4403 -1
==========================================
- Hits 4175 4169 -6
- Misses 229 234 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
a91f4ee to
3c43378
Compare
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a manually triggered GitHub Actions workflow to regenerate this repo’s generated Pydantic models from an OpenAPI spec produced in an apify/apify-docs PR, and open/update a PR with the updated src/apify_client/_models.py.
Changes:
- Introduces a
workflow_dispatchworkflow that checks outapify/apify-docsat a provided commit SHA and builds the bundled OpenAPI JSON. - Runs model generation via
datamodel-codegen, detects changes, and creates/updates a PR in this repo. - Posts a cross-repo comment back to the originating
apify-docsPR with the created/updated PR link (and a failure comment on error).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
workflow_dispatchworkflow that regenerates Pydantic models from anapify-docsPR's OpenAPI specdatamodel-codegen, and opens a PR if models changedapify-docsPR with a linkIssues
Context