Repository navigation
[CI] Automate Platform API client upgrade PRs - #164
Merged
Merged
Conversation
c-fteixeira
reviewed
Nov 25, 2026
|
|
||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.10" |
c-fteixeira
approved these changes
Nov 25, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Published Platform API clients currently require a manual SDK dependency update. Add a workflow that accepts a publication event or a manual version input, updates the dependency pin and README compatibility note, and opens an upgrade PR that runs the existing SDK/CLI checks.
The workflow validates stable versions, skips versions at or below the current pin, and verifies availability on PyPI for Python 3.10. Different version inputs use separate concurrency groups so a delayed event cannot displace another version's pending run.
Retries leave existing PRs and their commits unchanged, including handwritten compatibility fixes. If branch creation succeeded but PR creation failed, a retry opens the PR from the existing branch without rewriting it. New branches use ordinary Git pushes so a concurrently created branch cannot be overwritten. Closed PRs are left alone.
Validation: actionlint v1.7.12 and git diff --check passed. The embedded version updater passed 12 isolated scenarios. The PR creation shell step passed seven integration scenarios using local Git repositories and a stubbed GitHub CLI: new PR, duplicate event preserving human commits, closed PR, recovery after PR creation failure, API lookup failure, Git lookup failure, and concurrent branch creation. The live GitHub dispatch-to-PR flow has not been exercised.
Enablement after merge: configure SDK_UPDATE_TOKEN in both repositories and add the documented post-publish trigger in the generated-client repository. SDK releases remain separate.