Skip to content

ci: trigger Python client model regeneration on OpenAPI spec changes#2381

Open
vdusek wants to merge 5 commits intomasterfrom
ci/trigger-python-client-model-regeneration
Open

ci: trigger Python client model regeneration on OpenAPI spec changes#2381
vdusek wants to merge 5 commits intomasterfrom
ci/trigger-python-client-model-regeneration

Conversation

@vdusek
Copy link
Copy Markdown
Contributor

@vdusek vdusek commented Mar 31, 2026

Summary

  • Add a new CI job that triggers Python client Pydantic model regeneration in apify-client-python when OpenAPI spec files change in a PR

Issues

Context

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Mar 31, 2026
@vdusek vdusek self-assigned this Mar 31, 2026
@github-actions github-actions bot added this to the 137th sprint - Tooling team milestone Mar 31, 2026
@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit acff308 and is ready at https://pr-2381.preview.docs.apify.com!

@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit d2e81050 and is ready at https://pr-2381.preview.docs.apify.com!

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit 28fb3239 and is ready at https://pr-2381.preview.docs.apify.com!

@vdusek vdusek requested a review from janbuchar April 1, 2026 14:26
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit a2a5e67d and is ready at https://pr-2381.preview.docs.apify.com!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds automation to keep apify-client-python’s generated Pydantic models in sync by triggering regeneration when this repo’s OpenAPI specs change, and cleans up the generated client PR when the originating docs PR is closed.

Changes:

  • Extend the OpenAPI CI workflow to run on pull_request closed events (for cleanup).
  • Add a job to detect OpenAPI spec changes in PRs and trigger the downstream apify-client-python regeneration workflow.
  • Add a cleanup job to close/delete the corresponding auto-generated apify-client-python PR/branch when the docs PR closes.

@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit 71f67d45 and is ready at https://pr-2381.preview.docs.apify.com!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit 806d164a and is ready at https://pr-2381.preview.docs.apify.com!

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

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate PR creation when OpenAPI spec is updated

4 participants