-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.cz-config.js
More file actions
32 lines (31 loc) · 1.52 KB
/
.cz-config.js
File metadata and controls
32 lines (31 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict'
module.exports = {
types: [
{ value: 'feat', name: 'feat: A new feature' },
{ value: 'fix', name: 'fix: A bug fix' },
{ value: 'style', name: 'style: Markup, white-space, formatting, missing semi-colons...' },
{ value: 'merge', name: 'merge: Merge conflict' },
{ value: 'refactor', name: 'refactor: A code change that neither fixes a bug or adds a feature' },
{ value: 'perf', name: 'perf: A code change that improves performance' },
{ value: 'patch', name: 'patch: A patch commit' },
{ value: 'test', name: 'test: Adding missing tests' },
{ value: 'docs', name: 'docs: Documentation only changes' },
{ value: 'chore', name: 'chore: Build process or auxiliary tool changes' },
{ value: 'init', name: 'init: Initial project' },
{ value: 'revert', name: 'revert: Revert to a commit' },
{ value: 'release', name: 'release: Create a release commit' }
],
// override the messages, defaults are as follows
messages: {
type: 'Select the type of change that you\'re committing:',
customScope: 'Select the scope this component affects:',
subject: 'Write a short, imperative mood description of the change:\n',
body: 'Provide a longer description of the change:\n ',
breaking: 'List any breaking changes:\n',
footer: 'Issues this commit closes, e.g #123:',
confirmCommit: 'The packages that this commit has affected(y/n/e/h)\n'
},
allowCustomScopes: true,
skipQuestions: ['scope', 'body', 'footer'],
subjectLimit: 100
}