czg 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.d.ts +5 -3
- package/lib/index.js +156 -156
- package/package.json +4 -4
package/lib/config.d.ts
CHANGED
@@ -269,7 +269,7 @@ interface CommitMessageOptions {
|
|
269
269
|
}
|
270
270
|
interface GenerateAIPromptType {
|
271
271
|
type?: string;
|
272
|
-
defaultScope?: string;
|
272
|
+
defaultScope?: string | string[];
|
273
273
|
maxSubjectLength?: number;
|
274
274
|
upperCaseSubject?: boolean;
|
275
275
|
diff?: string;
|
@@ -557,11 +557,13 @@ interface CommitizenGitOptions {
|
|
557
557
|
*/
|
558
558
|
defaultType?: string;
|
559
559
|
/**
|
560
|
-
* @description
|
560
|
+
* @description Whether to use display default value in custom scope
|
561
561
|
* @tip pin scope item the top of the scope list (match item value)
|
562
|
+
*
|
563
|
+
* `string[]` for checkbox mode will default-select the options whose values match those within the `scopes` range list.
|
562
564
|
* @example: When you want to use default, just keyboard <Enter> it
|
563
565
|
*/
|
564
|
-
defaultScope?: string;
|
566
|
+
defaultScope?: string | string[];
|
565
567
|
/**
|
566
568
|
* @description: default value show subject template prompt
|
567
569
|
* @example: If you want to use template complete. just keyboard <Tab> or <Right Arrow> it
|