ci(preview): a fork's labelled preview checks out, and works without a write token #5
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-preview-fork"
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?
The
previewlabel from #4 failed on its first fork PR (run 12) for two reasons:pull_request_targetunless the step setsallow-unsafe-pr-checkout: true. It is set for the label run only: the maintainer's label, plus the check that the PR is still at that commit, is the opt-in.PREVIEW_COMMENT_TOKENsecret when it is set (a Forgejo token withwrite:issue), and otherwise the job token. If the comment is refused, the job prints the link in its log with a warning instead of failing. The label then stays on: take it off by hand before adding it again.Testing: this PR's own run covers the same-repo path. The label path runs from
main, so it can only be tried after merging, by addingpreviewto #1 again.🤖 Generated with Claude Code
Preview: https://pr-5-magicbean-site.hckr-5e0.workers.dev
This commit (
31f00c2db5) on its own: https://c7895f9e-magicbean-site.hckr-5e0.workers.dev