What are Deploy Previews?

Last modified: June 23rd, 2026

On this page

Deploy Previews are available on our Team or Enterprise plan.

Want to chat about whether this feature is right for you? Our support team is always happy to hear from you.

Deploy Previews are a set of automations that CloudCannon can run whenever a Pull Request is opened, closed, merged, or updated in your Git Repository. When you configure Deploy Previews for a Project, CloudCannon can respond to Pull Requests in that Project by:

  • Creating a Site in CloudCannon for the Pull Request branch, and deleting that Site when the Pull Request is merged or closed.
  • Posting a comment to the Pull Request in your Git Provider with the Site Name, Build Status (e.g., Ready), Testing Domain, Site Dashboard, Build Logs, and the latest commit.
A screenshot of the Deploy Previews section in Project Settings, with the Automatic Sites and Automatic Comments fieldsets in their default state.

You can independently enable the Automatic Comments and Automatic Sites automations. For more information, please read our documentation on using Deploy Previews to trigger Site creation and deletion and using Deploy Previews to comment on a Pull Request.

Deploy Previews may take a few minutes to appear for recently created Projects, as CloudCannon needs to correctly connect the webhook from your Git Provider.

Listening to Pull Requests#

When you connect a Project to GitHub, GitLab, or Bitbucket, CloudCannon subscribes to Pull Request events on your Git Repository. CloudCannon processes the following events:

  • Opened — A new Pull Request is created.
  • Reopened — A previously closed Pull Request is reopened.
  • Ready for review — A draft Pull Request is marked as ready (GitHub ready_for_review, GitLab update, Bitbucket pullrequest:updated).
  • Converted to draft — A Pull Request is reverted to a draft.
  • Edited — The Pull Request title, description, or base branch changes (GitHub edited, GitLab update, Bitbucket pullrequest:updated).
  • Closed or merged — The Pull Request is closed without merging, or merged into its base branch.

Each event is routed to your Project based on the Git Repository identifier and your connected Git Provider. CloudCannon then reconciles your Project settings against the current state of the Pull Request and performs the enabled automations.

If both Automatic Comments and Automatic Sites are disabled for your Project, CloudCannon still logs these events, but takes no action.

Enabling and disabling Deploy Preview automations#

Deploy Previews are intentionally lazy. Turning these automations on does not retroactively process historical Pull Requests:

  • Existing Pull Requests only receive an Automatic Comment on the next event (such as a new push or a reopen). If you need an immediate comment on an already-open Pull Request, trigger any small change to the Pull Request.
  • CloudCannon does not backfill for existing Pull Requests when Automatic Site creation is turned on for a Project. Sites are only created on the next Pull Request event.
  • CloudCannon does not delete existing Automatic Sites orphaned from previously closed Pull Requests when Automatic Site deletion is turned on for a Project. Sites are only deleted on future close or merge events.

Disabling an automation setting is similarly lazy, with one exception: disabling Automatic Comments or changing the comment footer runs a single reconciliation across every open Pull Request. Existing Automatic Comments are updated to show a disabled notice or refreshed with the new footer content (or lack thereof). For more information, please read our documentation on using Deploy Previews to comment on a Pull Request.

Supported providers and repositories#

Deploy Previews are supported for Projects connected to GitHub, GitLab, or Bitbucket. If your Project is connected through GitHub Enterprise Server, behavior matches GitHub Cloud. Self-hosted GitLab instances behave like GitLab Cloud provided the webhook is reachable from CloudCannon.

Automation errors#

Network failures and Git Provider API errors during Automatic Comment or Automatic Site operations are reported to CloudCannon's error tracker and do not abort the rest of the Pull Request event. This means a transient failure updating one Site will not prevent other Sites on the same Pull Request from being updated.

For step-by-step instructions on enabling these features, please read our documentation on configuring Deploy Previews.

Related Resources

Open in a new tab