Files
Alex Waygood dd697a4767 Harden release-script edits around typeshed-sync CHANGELOG entries (#3725)
## Summary

I ran `release.sh` locally and it failed to add the link to the typeshed
diff for a changelog entry that updated our vendored typeshed stubs.

Codex's summary of the changes here:

> The previous implementation worked when the submodule’s local main
branch pointed to the same Ruff revision that ty had pinned. This is
normally true on long-lived release checkouts: the previous release
updates ruff/main, ty records that revision, and subsequent submodule
updates detach the working tree without advancing the local branch. But
a fresh clone can have different state.
> 
> Reading the old commit from ty’s recorded Ruff gitlink gives us the
actual release baseline regardless of the local submodule branch state.
This preserves the existing behavior on long-lived checkouts while
making releases work reliably from fresh clones.
2026-06-10 14:07:49 +00:00
..