forked from dc7290/next-export-optimize-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commit-types.config.js
102 lines (101 loc) · 2.74 KB
/
commit-types.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
/**
* @typedef {Object} Type conventional commitsの型の設定
* @property {string} type conventional commitsの型
* @property {"major" | "minor" | "patch" | undefined } [release] セマンティックバージョンの上げ方。undefinedはリリースされません。
* @property {string} description git-czに表示される説明文
* @property {string} emoji git-czで使う絵文字
* @property {string | undefined} [section] changelogに表示する見出し
* @property {boolean | undefined} [hidden] changelogに表示するか否か
*/
/**
* @type {Array.<Type>}
*/
module.exports = [
{
type: "feat", // 機能追加
release: "minor",
description: "A new feature",
emoji: "🚀",
section: "Features",
hidden: false,
},
{
type: "fix", // バグ修正
release: "patch",
description: "A bug fix",
emoji: "🐛",
section: "Bug Fixes",
hidden: false,
},
{
type: "sec", // 脆弱性の解消
release: "patch",
description: "A vulnerability fix",
emoji: "👮",
section: "Security",
hidden: false,
},
{
type: "perf", // パフォーマンスのみの改善
release: "patch",
description: "A code change that improves performance",
emoji: "⚡️",
section: "Performance Improvements",
hidden: false,
},
{
type: "refactor", // 機能追加やバグ修正を伴わないリファクタリング
release: undefined,
description: "A code change that neither fixes a bug or adds a feature",
emoji: "💡",
section: "Code Refactoring",
hidden: true,
},
{
type: "docs", // ドキュメントのみの変更
release: undefined,
description: "Documentation only changes",
emoji: "✏️",
section: `Documentation`,
hidden: false,
},
{
type: "release", // リリースコミット
release: undefined,
description: "Create a release commit",
emoji: "🏹",
hidden: true,
},
{
type: "style", // コーディングスタイル関連の修正
release: undefined,
description: "Markup, white-space, formatting, missing semi-colons...",
emoji: "💄",
section: "Styles",
hidden: true,
},
{
type: "test", // テストの追加変更
release: undefined,
description: "Adding missing tests",
emoji: "💍",
section: "Tests",
hidden: false,
},
{
type: "ci", // CI関連の変更
release: undefined,
description: "CI related changes",
emoji: "🎡",
section: `Continuous Integration`,
hidden: false,
},
{
type: "chore", // ビルドプロセスや補助ツールの変更
release: undefined,
description: "Build process or auxiliary tool changes",
emoji: "🤖",
section: `Chore`,
hidden: true,
},
];