Commit 0be9498
Fix PR preview responder setting correct origin remote (#2528)
#skip-bb
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2528"
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
Fixes the PR review responder so pushes go to the PR’s fork instead of
the base repo on forked PRs. Exposes the head repository and sets
origin’s pushurl to ensure correct push behavior.
- **Bug Fixes**
- Exposes head_repo from workflow_run (run.head_repository.full_name)
for later steps.
- Adds a step to set origin’s pushurl to the PR’s head repo using
GITHUB_TOKEN, preventing accidental pushes to the base repo after
claude-code-action rewrites origin.
<sup>Written for commit 9ca4297.
Summary will update on new commits.</sup>
<!-- End of auto-generated description by cubic. -->
Co-authored-by: Will Chen <[email protected]>1 parent 5e6440a commit 0be9498
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
172 | 185 | | |
173 | 186 | | |
174 | 187 | | |
| |||
0 commit comments