Unverified 提交 dffbf1a9 authored 作者: Will Chen's avatar Will Chen 提交者: GitHub

fix: checkout correct repo/ref in CI for fork PRs (#2560)

## Summary - Add `repository` and `ref` parameters to the checkout step in CI workflow so it correctly checks out the fork's branch when running on pull requests from external contributors - Update package-lock.json with dependency resolution changes ## Test plan - Verify CI passes on this PR - Test by opening a PR from a fork and confirming CI checks out the correct branch 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2560" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix CI checkout for forked pull requests. The workflow now checks out the PR’s head repo and branch so jobs run against the contributor’s code. - **Bug Fixes** - Pass repository and ref to actions/checkout, using PR head repo/ref when available with safe fallbacks. - **Dependencies** - Regenerated package-lock.json to reflect updated resolutions; no version changes. <sup>Written for commit 37839729e6e42b41dbc2c71a84dddcd50f3103da. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> Co-authored-by: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
上级 bdb3de95
...@@ -243,6 +243,9 @@ jobs: ...@@ -243,6 +243,9 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
repository: ${{ needs.check-changes.outputs.pr_head_repo || github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ needs.check-changes.outputs.pr_head_ref || github.event.pull_request.head.ref || '' }}
- name: Initialize environment - name: Initialize environment
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
......
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论