fix(backend): use singular label in custom commit message (#1917)
This commit is contained in:
parent
6c12e8fe4a
commit
2c5827bd99
@ -100,7 +100,7 @@ const commitMessageFormatter = (type, config, { slug, path, collection }) => {
|
|||||||
case 'path':
|
case 'path':
|
||||||
return path;
|
return path;
|
||||||
case 'collection':
|
case 'collection':
|
||||||
return collection.get('label');
|
return collection.get('label_singular') || collection.get('label');
|
||||||
default:
|
default:
|
||||||
console.warn(`Ignoring unknown variable “${variable}” in commit message template.`);
|
console.warn(`Ignoring unknown variable “${variable}” in commit message template.`);
|
||||||
return '';
|
return '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user