File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { generateAISubjects } from './message'
16
16
17
17
export async function generateAIPrompt ( options : CommitizenGitOptions , cz : CommitizenType ) {
18
18
const answers = await cz . prompt ( generateAITypesQuestions ( options ) )
19
- console . log ( style . green ( 'ℹ' ) , style . bold ( options . messages ! . generatingByAI ) )
19
+ console . log ( style . green ( 'ℹ' ) , style . bold ( options . messages ! . generatingByAI ! ) )
20
20
const subjects = await generateAISubjects ( answers , options )
21
21
if ( ! Array . isArray ( subjects ) )
22
22
throw new Error ( 'subjects fetch value failed' )
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ export interface Answers {
82
82
/**
83
83
* @default 'Generating your AI commit subject...'
84
84
*/
85
- generatingByAI : string
85
+ generatingByAI ? : string
86
86
/**
87
87
* @default 'Select suitable subject by AI generated:'
88
88
*/
89
- generatedSelectByAI : string
89
+ generatedSelectByAI ? : string
90
90
footerPrefix ?: string
91
91
}
92
92
You can’t perform that action at this time.
0 commit comments