Skip to content
Snippets Groups Projects
Commit b2645c64 authored by Stefan Hynek's avatar Stefan Hynek :drooling_face:
Browse files

feat(commitizen): provide a customized commitizen adapter configuration

closes #20
parent 5ed5008f
No related branches found
No related tags found
1 merge request!23feat: make the repo commitizen friendly
module.exports = {
types: [
{ value: 'tr-s', name: 'tr-s: Small addition to or revision of Technical reference.' },
{ value: 'tr-m', name: 'tr-m: Medium addition to or revision of Technical reference.' },
{ value: 'tr-l', name: 'tr-l: Huge contribution to or revision of Technical reference.' },
{ value: 'feat', name: 'feat: A new feature' },
{ value: 'fix', name: 'fix: A bug fix' },
{ value: 'docs', name: 'docs: General documentation only changes' },
{
value: 'style',
name:
'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)',
},
{ value: 'test', name: 'test: Adding missing tests' },
{
value: 'build',
name:
'build: Changes that affect the build system or dependencies\n (example scopes: npm, docker, pip, ant)',
},
{
value: 'ci',
name:
'ci: Changes to the CI configuration\n (example scopes: gitlab, travis)',
},
{
value: 'chore',
name:
'chore: Other changes that modify other than source or test files'
},
{ value: 'revert', name: 'revert: Revert to a commit' },
],
// it needs to match the value for field type. Eg.: 'fix'
/*
scopeOverrides: {
fix: [
{name: 'merge'},
{name: 'style'},
{name: 'e2eTest'},
{name: 'unitTest'}
]
},
*/
// override the messages, defaults are as follows
messages: {
type: "Select the type of change that you're committing:",
scope: '\nDenote the SCOPE of this change (optional):',
// used if allowCustomScopes is true
customScope: 'Denote the SCOPE of this change:',
subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
breaking: 'List any BREAKING CHANGES (optional):\n',
footer: 'Reference ISSUES touched by this change (optional). E.g.: closes #31, see #34:\n',
confirmCommit: 'Are you sure you want to proceed with the commit above?',
},
allowCustomScopes: true,
allowBreakingChanges: ['feat', 'fix'],
// skip any questions you want
skipQuestions: ['body'],
// limit subject length
subjectLimit: 100,
// breaklineChar: '|', // It is supported for fields body and footer.
footerPrefix : ''
// askForBreakingChangeFirst : true, // default is false
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment