| name | tsgolint-update-typescript-go |
| description | Update the `typescript-go` submodule in the `oxc-project/tsgolint` repository, refresh the local `patches/*.patch` stack against the new upstream base, regenerate shims, open a PR, and watch CI to completion. Use when working on routine `typescript-go` bump PRs for TSGolint or when repeating the same workflow as prior submodule update PRs. |
Update typescript-go
Use this workflow for the standard TSGolint typescript-go refresh.
Workflow
- Inspect the last successful submodule-update PR in the repo history.
Use it to mirror the expected shape of the change:
- advance the root
typescript-go gitlink to a real upstream microsoft/typescript-go commit
- rebase the local
patches/*.patch series onto that upstream base
- regenerate shims if the refreshed patch stack changes the exported surface
- make any small TSGolint compatibility fix required by upstream API drift
- open a PR titled
chore: update typescript-go submodule
- wait for CI to finish and report the result
- Fetch the latest
typescript-go upstream state.
Check the current root gitlink and the current checkout inside typescript-go/ separately.
The submodule checkout may temporarily sit on a patched local branch while you refresh the patch series, but the final root gitlink committed in TSGolint should point at the upstream base commit, not at a local patched commit.
- Rebuild the patch stack on top of the new upstream base.
Inside typescript-go/:
- create a temporary branch from the target upstream commit
- replay
../patches/*.patch with git am --3way --no-gpg-sign