Settings
settings holds repository-wide options. All of them are optional.
settings:
content:
merge: true
commit:
identity: user
allowCustomMessage: true
templates:
update: 'content: update {path}'
cache: trueContent merging
Warning
By default, saving a structured file writes exactly what the form contains. Keys in the file that your fields don't describe are removed. That's fine when the fields describe the whole file, and destructive when they don't.
If you only configure some of a file's keys, turn merging on:
settings:
content:
merge: trueWith merging on, saving an existing file updates the fields you configured and leaves everything else as it was. Clearing a configured field still removes its value. Merging doesn't apply to files that are a top-level list (list: true).
Commit messages
Default templates:
Tokens:
Messages are cut to 200 characters.
commit can also be set on a collection or file or a media library to override these settings for that content. Collections and files accept templates, identity and allowCustomMessage; media libraries accept templates and identity.
media:
- name: images
input: public/images
output: /images
commit:
templates:
create: 'media: add {filename}'Commit identity
commit.identity sets who appears on commits:
app(default): managers' commits are made with their own GitHub account; collaborators' commits come from theseymourpowell-cmsGitHub App.user: every commit records the editor's name and email as the committer.
Use user when you want collaborators' names in the Git history.