mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 12:51:54 +00:00
## Summary Fixes the broken update highway GitHub action that was failing with: > Error: Could not fetch SHA for tag 1.2.0 @ 457c891775a7397bdb0376bb1031e6e027af1c48 ## Root Cause The workflow assumed all Git tags are annotated tags, but Google Highway uses lightweight tags. For lightweight tags, the GitHub API returns `object.type: "commit"` and `object.sha` is already the commit SHA. For annotated tags, `object.type: "tag"` and you need to fetch the tag object to get the commit SHA. ## Changes - Updated tag SHA fetching logic to handle both lightweight and annotated tags - Fixed incorrect branch name (`deps/update-cares` → `deps/update-highway`) - Fixed workflow URL in PR template ## Test Plan - [x] Verified the API returns `type: "commit"` for highway tag 1.2.0 - [x] Confirmed the fix properly extracts the commit SHA: `457c891775a7397bdb0376bb1031e6e027af1c48` - [x] Manual testing shows current version (`12b325bc...`) \!= latest version (`457c891...`) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude Bot <claude-bot@bun.sh> Co-authored-by: Claude <noreply@anthropic.com>
4.7 KiB
4.7 KiB