Skip to content

preview-netlify, preview-cloudflare: deploy outside pull_request on request, and report whether anything was deployed #227

Closed

Description

@mmcky

Decided on #143 (decision 2, 2026-11-04): previews are tested outside a pull request through an opt-in input in the actions, not through a gate that opens PRs.

On any event other than pull_request, both preview actions skip change detection, the deploy and the PR comment, and still succeed with an empty deploy-url, with nothing in the log (#143, Q2). A scheduled or dispatched canary run is therefore green while testing nothing (PLAN 0c), and the release gate's preview leg cannot test anything (#138).

Proposal

Done when

  • A dispatched canary run with the input deploys to a dispatch- alias and reports deployed=true; one without it reports deployed=false with a notice.
  • pull_request_target still never deploys, and fork and Dependabot PRs are still skipped.
  • The harness covers the condition logic (no provider secrets needed for that).
  • The chapters and CHANGELOG are updated. It changes every consumer's PR path, so it ships in a hand-staged release (CONTRIBUTING, Staged Releases).

Related: #143, #193, #135, #136, #138, #105, PLAN 0c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions