Files / Publishing
Available with GitHub or Bitbucket syncing.
The publish mode determines if publish is a direct merge or a pull request. Merges have less overhead, while pull requests can link to external builds, checks and workflows.
To change the publish mode for a GitHub or Bitbucket connected site:
- Go to Site Settings / File Syncing / Publish
- Select Merge or Pull Request
- Click Change Publish Mode
Pull requests are called Publish Requests in CloudCannon to better fit the publish workflow for editors. Publish Requests provide an intermediate step for publishing, where external services connected to the GitHub Status API (if using GitHub) check the changes pass your requirements.
Any pull requests that are not from the connected branch to publish branch are hidden in CloudCannon.
The workflow with this publish mode is:
- Make changes to site
- Create a Publish Request
- Review the request, along with any checks from the GitHub Status API (if using GitHub)
- Publish or Close the request
Publish merges the changes into the publish branch, while Close cancels the Publish Request. Changes made are not reversed after closing a Publish Request.