Skip to content

Commit

Permalink
fix(backend): use singular label in custom commit message (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
barthc authored and erquhart committed Nov 29, 2018
1 parent 6c12e8f commit 2c5827b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/netlify-cms-core/src/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const commitMessageFormatter = (type, config, { slug, path, collection }) => {
case 'path':
return path;
case 'collection':
return collection.get('label');
return collection.get('label_singular') || collection.get('label');
default:
console.warn(`Ignoring unknown variable “${variable}” in commit message template.`);
return '';
Expand Down

0 comments on commit 2c5827b

Please sign in to comment.