-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cz-config.js
134 lines (134 loc) · 3.74 KB
/
.cz-config.js
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
"use strict";
module.exports = {
types: [
{
value: "feat",
name: "feat: 新機能",
title: "Features",
},
{
value: "fix",
name: "fix: バグ修正",
title: "Bug Fixes",
},
{
value: "HOTFIX",
name: "HOTFIX: 致命的で緊急なバグ修正",
title: "Critical hotfix",
},
{
value: "UI",
name: "UI: UIやスタイルの更新",
title: "UI",
},
{
value: "docs",
name: "docs: ドキュメントのみの変更",
title: "Documentation",
},
{
value: "style",
name:
"style: フォーマットの変更\n (コードの動作に影響しないスペース、フォーマット、セミコロンなどの変更)",
title: "Styles",
},
{
value: "texts",
name: "texts: 文字や文章の更新",
title: "Text and literals",
},
{
value: "i18n",
name: "i18n: 国際化",
title: "Internationalization",
},
{
value: "typo",
name: "typo: タイプミスの修正",
title: "Typos",
},
{
value: "refactor",
name:
"refactor: リファクタリングのための変更\n (機能追加やバグ修正を含まない変更)",
title: "Code Refactoring",
},
{
value: "perf",
name: "perf: パフォーマンスの改善のための変更",
title: "Performance Improvements",
},
{
value: "ux",
name: "ux: ユーザーエクスペリエンス/ユーザビリティの改善",
title: "UX",
},
{
value: "test",
name: "test: 不足テストの追加や既存テストの修正",
title: "Tests",
},
{
value: "config",
name: "config: 設定の追加や変更",
title: "Configuration",
},
{
value: "build",
name:
"build: ビルドシステムや外部依存に関する変更\n (スコープ例: gulp, broccoli, npm)",
title: "Builds",
},
{
value: "ci",
name:
"ci: CI用の設定やスクリプトに関する変更\n (スコープ例:Travis, Circle, BrowserStack, SauceLabs)",
title: "CI",
},
{
value: "chore",
name:
"chore: その他の変更\n (補助ツール、ドキュメント生成などのソースやテストの変更を含まない変更)",
title: "Chores",
},
{
value: "WIP",
name: "WIP: 作業中",
title: "WIP",
},
],
// subjectLimit: {
// number: 100
// },
scopes: [
// { name: '*' },
// { name: 'admin' },
// { name: 'exampleScope' },
// { name: 'changeMe' }
],
// 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: "コミットする変更タイプを選択:\n",
scope: "変更内容のスコープ(例:コンポーネントやファイル名)(optional):\n",
// used if allowCustomScopes is true
customScope: "変更内容のスコープ(例:コンポーネントやファイル名)(optional):\n",
subject: "変更内容を要約した本質的説明:\n",
body: '変更内容の詳細("|"で改行)(optional):\n',
breaking: "破壊的変更についての記述(optional):\n",
footer: '関連issueを追記 (例:"fix #123", "re #123")(optional):\n',
confirmCommit: "このコミット内容でよろしいですか?",
},
allowCustomScopes: true,
allowBreakingChanges: ["feat", "fix"],
};