Skip to content

ci: switch SDK generation from PR mode to direct mode#280

Open
robert-j-y wants to merge 1 commit into
mainfrom
ci/regenerate-direct-mode
Open

ci: switch SDK generation from PR mode to direct mode#280
robert-j-y wants to merge 1 commit into
mainfrom
ci/regenerate-direct-mode

Conversation

@robert-j-y

@robert-j-y robert-j-y commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Switches SDK generation from mode: pr to mode: direct. Same issue as OpenRouterTeam/python-sdk#315: OpenAPI spec updates land on main automatically, the generator opens a rolling PR, and nothing ever merges it.

Current state of this repo:

With mode: direct, the regenerated SDK commits straight to main, and that push triggers the Publish workflow via its RELEASES.md path filter to tag a release.

Test plan

  • After merge, wait for the next automated spec update PR to land (or trigger via workflow_dispatch)
  • Verify a regeneration commit lands on main and the Publish workflow tags a new release
  • Close stale generation PR chore: 🐝 Update SDK - Generate SDK 0.5.0 #163 once a direct-mode regeneration has landed

Generation PRs were never auto-merged (PR #163 has been open since
Apr 22 and no release has shipped since v0.4.1). Direct mode commits
the regenerated SDK straight to main; the SDK_MERGE_PAT push then
triggers the publish workflow via its RELEASES.md path filter.

@perry-the-pr-reviewer perry-the-pr-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Perry's Review

Switches SDK generation from rolling-PR mode to direct-commit mode so that daily spec updates ship to main and trigger the publish workflow automatically, unblocking releases that have been stalled since v0.4.1 on Apr 21.

Verdict: 💬 Comments / questions — code is clean (LGTM); APPROVE not posted because the maintainer app does not have pull_requests:write on OpenRouterTeam

Details

Risk: 🟢 Low — CI workflow config change; no Go source, no auth logic, no user-facing API changes

CI: no checks reported (0 runs on this PR head)

Findings: none

Codex (HEAVY_SECONDARY_MODEL): skipped — trivial tier

Research: skipped — trivial tier

Security: no concerns — SDK_MERGE_PAT credential handling unchanged; secret remains a repo secret, passed identically to the Speakeasy action

Test coverage: N/A — workflow config only

Unresolved threads: none


Scope: first review (full)
Review: tier=trivial · model=claude-sonnet-latest · score=0.1

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant