improvement: allow custom workflow branch name prefix (#1494)

This commit is contained in:
Andreas Richter
2018-09-04 12:57:53 -04:00
committed by Shawn Erquhart
parent 62b2f9c06b
commit da0f520f0d
3 changed files with 33 additions and 6 deletions

View File

@ -120,3 +120,28 @@ Template tags produce the following output:
- `{{collection}}`: the name of the collection containing the entry changed
- `{{path}}`: the full path to the file changed
## Custom Editorial Workflow branch name prefixes
When using [editorial workflow](), a branch is created for each entry. By default the branch name
follows this template:
```
cms/{{slug}}
```
You can customize the `cms` portion by setting `workflow_branch_prefix` under `backend` in your
`config.yml`:
```yaml
backend:
name: some-backend
branch: dev
workflow_branch_prefix: cms-dev
```
The above configuration would change the branch name template to:
```
cms-dev/{{slug}}
```