Repository navigation
ci: allow fork pull requests without Generate SDK commits - #299
Merged
Merged
Conversation
|
bhaveshpatel640
requested review from
debajyoti-truefoundry,
heerambavi1998,
sr07asthana and
thesujai
as code owners
August 17, 2026 14:09
chiragjn
approved these changes
Aug 18, 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
GitHub Apps cannot push to forks, so Generate SDK could not commit OpenAPI/SDK updates on fork PRs and checkout of the fork with the base token was unreliable. Unblock open-source contributions: fork PRs stay source-only; OpenAPI/SDK regenerate on
mainafter merge (with a manual Actions fallback).Related: AGE-1753
Changes
main/ dispatch; fork PRs use base-repo pull refsworkflow_dispatchfor manual regen onmainif the post-merge job misses or failsHow was this tested?
push/workflow_dispatch.github/workflows/generate-sdk.yamlChecklist
pnpm build,pnpm test,pnpm typecheck,pnpm lint:ci, andpnpm format:checkpass locallypackages/trueforge-sdk,.github/fern/openapi/openapi.json,docs/openapi.json).env.exampleupdated if configuration or behavior changedNote
Low Risk
CI and contributor-docs only; no runtime or API behavior changes. Fork PRs may briefly have stale generated artifacts until post-merge regen.
Overview
Generate SDK no longer tries to push OpenAPI/SDK commits on fork PRs (GitHub Apps cannot write to fork heads). Fork runs still check out the PR head via base-repo refs, run the regen gate, and pass without Fern generate/commit when there is no App token.
Same-repo PRs,
mainpushes, and manualworkflow_dispatchkeep the writable App-token checkout,pnpm sdk:generate, and bot commit flow. Job-levelcontents: writewas removed in favor of default read permissions.CONTRIBUTING, README, and the PR checklist now tell fork contributors to change source only and expect regeneration on
mainafter merge, with a richer Actions step summary when a fork skip occurs.Reviewed by Cursor Bugbot for commit dd6c2a1. Bugbot is set up for automated code reviews on this repo. Configure here.