1+ const { definePrompt } = require ( "cz-git" )
2+
3+ module . exports = definePrompt ( {
4+ alias : { fd : "docs: fix typos" } ,
5+ messages : {
6+ type : "Select the type of change that you're committing:" ,
7+ scope : "Denote the SCOPE of this change (optional):" ,
8+ customScope : "Denote the SCOPE of this change:" ,
9+ subject : "Write a SHORT, IMPERATIVE tense description of the change:\n" ,
10+ body : "Provide a LONGER description of the change (optional). Use " | " to break new line:\n" ,
11+ breaking : "List any BREAKING CHANGES (optional). Use " | " to break new line:\n" ,
12+ footerPrefixesSelect : "Select the ISSUES type of changeList by this change (optional):" ,
13+ customFooterPrefix : "Input ISSUES prefix:" ,
14+ footer : "List any ISSUES by this change. E.g.: #31, #34:\n" ,
15+ generatingByAI : "Generating your AI commit subject..." ,
16+ generatedSelectByAI : "Select suitable subject by AI generated:" ,
17+ confirmCommit : "Are you sure you want to proceed with the commit above?" ,
18+ } ,
19+ types : [
20+ { value : "feat" , name : "feat: A new feature" , emoji : ":sparkles:" } ,
21+ { value : "fix" , name : "fix: A bug fix" , emoji : ":bug:" } ,
22+ { value : "docs" , name : "docs: Documentation only changes" , emoji : ":memo:" } ,
23+ { value : "style" , name : "style: Changes that do not affect the meaning of the code" , emoji : ":lipstick:" } ,
24+ { value : "refactor" , name : "refactor: A code change that neither fixes a bug nor adds a feature" , emoji : ":recycle:" } ,
25+ { value : "perf" , name : "perf: A code change that improves performance" , emoji : ":zap:" } ,
26+ { value : "test" , name : "test: Adding missing tests or correcting existing tests" , emoji : ":white_check_mark:" } ,
27+ { value : "build" , name : "build: Changes that affect the build system or external dependencies" , emoji : ":package:" } ,
28+ { value : "ci" , name : "ci: Changes to our CI configuration files and scripts" , emoji : ":ferris_wheel:" } ,
29+ { value : "chore" , name : "chore: Other changes that don\"t modify src or test files" , emoji : ":hammer:" } ,
30+ { value : "revert" , name : "revert: Reverts a previous commit" , emoji : ":rewind:" } ,
31+ ] ,
32+ useEmoji : false ,
33+ emojiAlign : "center" ,
34+ useAI : false ,
35+ aiNumber : 1 ,
36+ themeColorCode : "" ,
37+ scopes : [ ] ,
38+ allowCustomScopes : true ,
39+ allowEmptyScopes : false ,
40+ customScopesAlign : "bottom" ,
41+ customScopesAlias : "custom" ,
42+ emptyScopesAlias : "empty" ,
43+ upperCaseSubject : null ,
44+ markBreakingChangeMode : false ,
45+ allowBreakingChanges : [ "feat" , "fix" ] ,
46+ breaklineNumber : 100 ,
47+ breaklineChar : "|" ,
48+ skipQuestions : [ "body" , "footer" ] ,
49+ issuePrefixes : [ { value : "closed" , name : "closed: ISSUES has been processed" } ] ,
50+ customIssuePrefixAlign : "top" ,
51+ emptyIssuePrefixAlias : "skip" ,
52+ customIssuePrefixAlias : "custom" ,
53+ allowCustomIssuePrefix : true ,
54+ allowEmptyIssuePrefix : true ,
55+ confirmColorize : true ,
56+ maxHeaderLength : Infinity ,
57+ maxSubjectLength : Infinity ,
58+ minSubjectLength : 0 ,
59+ scopeOverrides : undefined ,
60+ defaultBody : "" ,
61+ defaultIssues : "" ,
62+ defaultScope : "" ,
63+ defaultSubject : "" ,
64+ } )
0 commit comments