Follow these three steps to start using Commitspark with this example content repository:
- Copy this template
- Sign in to Commitspark using your GitHub account
- Select your repository copy and start editing
All content you create will be written to plain text YAML files in your repository on GitHub.
In this example, we have a content model ready to manage content for a multi-language website built from different content components.
It is meant as a starting-point for building your own content model by extending the schema file using standard GraphQL types.
An example GitHub workflow is included which demonstrates how content in pull requests can be validated using a QA pipeline similar to those used in software development.
To trigger a failure in this example workflow, do the following:
- Create a new branch
- Create or modify a Page so that it contains a Hero component where the string
invalid
is included in the Hero image'simageId
field - Create a pull request to merge your branch into
main
- The workflow should now create a pull request comment that invalid content was found
Using GitHub branch protection rules, you can configure GitHub to disallow merging of a pull request when a workflow has failed. This means you can prevent content that does not satisfy your QA criteria from being merged.