Skip to content

Instantly share code, notes, and snippets.

@marigotten
Last active October 10, 2022 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marigotten/3b6f22ee79a3d666d2df020c1df94015 to your computer and use it in GitHub Desktop.
Save marigotten/3b6f22ee79a3d666d2df020c1df94015 to your computer and use it in GitHub Desktop.
Customized git-cz config file
module.exports = {
disableEmoji: false,
format: '{emoji}{type}: {subject}',
list: ['chore', 'feat', 'fix', 'modify', 'perf', 'refactor', 'remove', 'styling', 'hello'],
maxMessageLength: 64,
minMessageLength: 3,
questions: ['type', 'subject', 'body', 'issues', 'lerna'],
scopes: [],
types: {
chore: {
description: 'Other',
emoji: '🌡',
value: 'chore'
},
feat: {
description: 'Introduce new features.',
emoji: 'πŸ’Ž',
value: 'feat'
},
fix: {
description: 'Fix an error or a bug.',
emoji: 'πŸ›',
value: 'fix'
},
modify: {
description: 'Modify codes/files.',
emoji: 'πŸ—’',
value: 'modify'
},
perf: {
description: 'Improve performance/SEO.',
emoji: 'πŸš€',
value: 'perf'
},
refactor: {
description: 'Refactor codes.',
emoji: '🍻',
value: 'refactor'
},
remove: {
description: 'Remove codes/files',
emoji: '🧽',
value: 'remove'
},
styling: {
description: 'Add or Update styles/animations.',
emoji: 'πŸͺ„',
value: 'styling'
},
hello: {
description: 'Begin a project.',
emoji: 'πŸŽ‰',
value: 'hello'
},
messages: {
type: 'Select the type of change that you\'re committing:',
subject: 'Write a short, imperative mood description of the change:\n',
body: 'Provide a longer description of the change:\n ',
footer: 'Issues this commit closes, e.g #123:',
confirmCommit: 'The packages that this commit has affected\n',
},
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment