feat: support parallel matrix generation via INPUT_BRANCH_NAME#1920
Merged
feat: support parallel matrix generation via INPUT_BRANCH_NAME#1920
Conversation
Add `speakeasy ci resolve-branch` subcommand that finds an existing open PR branch or creates a new one, outputting branch_name for use by parallel matrix jobs. When INPUT_BRANCH_NAME is set in `speakeasy ci generate`: - Use the provided branch instead of auto-generating one - Preserve existing commits from earlier matrix jobs (no reset) - Rebase + push instead of force push (retry up to 3x) - Never delete the branch on failure Also fix PR title search: FindExistingPR now uses a prefix without the target name, so matrix jobs with different INPUT_TARGET values find and update the same shared PR. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ThomasRooney
approved these changes
Feb 27, 2026
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.
Summary
speakeasy ci resolve-branchsubcommand that finds an existing open PR branch or creates a new one, outputtingbranch_namefor downstream matrix jobsINPUT_BRANCH_NAMEintospeakeasy ci generate: when set, use the provided branch directly with rebase+push instead of force pushINPUT_TARGETso matrix jobs with different targets find and update the same shared PRThis enables parallel SDK generation in GitHub Actions matrix workflows where each target (go, java, python, ruby, typescript) runs as a separate job pushing to a shared branch.
Fully backwards compatible — when
INPUT_BRANCH_NAMEis not set, all behavior is unchanged.✻ Clauded...