ci(preview): a maintainer's preview label previews a pull request from a fork #4
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-preview-label"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A pull request from a fork gets no preview, because the workflow would run its code with the Cloudflare token. This lets a maintainer approve one: after reading its changes, add the label
preview.pull_request_targetonlabeledruns the workflow frommain, not from the PR, with the secrets.refs/pull/<n>/headand fails if the PR has moved past the commit it was at when labelled. Then it uploads and comments as usual, and takes the label off, so a later push needs the label again.Testing: this PR's own run covers the same-repo path with the new checkout (
refs/pull/<n>/head) and the commit check. The label path runs frommain, so it can only be tried after merging, on #1.🤖 Generated with Claude Code
Preview: https://pr-4-magicbean-site.hckr-5e0.workers.dev
This commit (
083045d258) on its own: https://dbc8f0b2-magicbean-site.hckr-5e0.workers.dev