Skip to content

Commit ecdd4af

Browse files
timoknappchristophwitzko
authored andcommitted
feat: add emojis to default commit types
1 parent 85ddde0 commit ecdd4af

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

β€Žpkg/generator/changelog_types.goβ€Ž

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ type ChangelogType struct {
44
Type string
55
Text string
66
Content string
7+
Emoji string
78
}
89

910
type ChangelogTypes []ChangelogType
@@ -30,51 +31,63 @@ func (ct *ChangelogTypes) AppendContent(cType, content string) {
3031

3132
var defaultTypes = ChangelogTypes{
3233
{
33-
Type: "%%bc%%",
34-
Text: "Breaking Changes",
34+
Type: "%%bc%%",
35+
Text: "Breaking Changes",
36+
Emoji: "πŸ“£",
3537
},
3638
{
37-
Type: "feat",
38-
Text: "Feature",
39+
Type: "feat",
40+
Text: "Feature",
41+
Emoji: "🎁",
3942
},
4043
{
41-
Type: "fix",
42-
Text: "Bug Fixes",
44+
Type: "fix",
45+
Text: "Bug Fixes",
46+
Emoji: "🐞",
4347
},
4448
{
45-
Type: "revert",
46-
Text: "Reverts",
49+
Type: "revert",
50+
Text: "Reverts",
51+
Emoji: "πŸ”™",
4752
},
4853
{
49-
Type: "perf",
50-
Text: "Performance Improvements",
54+
Type: "perf",
55+
Text: "Performance Improvements",
56+
Emoji: "πŸ“ˆ",
5157
},
5258
{
53-
Type: "docs",
54-
Text: "Documentation",
59+
Type: "docs",
60+
Text: "Documentation",
61+
Emoji: "πŸ“„",
5562
},
5663
{
57-
Type: "test",
58-
Text: "Tests",
64+
Type: "test",
65+
Text: "Tests",
66+
Emoji: "πŸ”Ž",
5967
},
6068
{
61-
Type: "refactor",
62-
Text: "Code Refactoring",
69+
Type: "refactor",
70+
Text: "Code Refactoring",
71+
Emoji: "πŸ”€",
6372
},
6473
{
65-
Type: "style",
66-
Text: "Styles",
74+
Type: "style",
75+
Text: "Styles",
76+
Emoji: "🎨",
6777
},
6878
{
69-
Type: "chore",
70-
Text: "Chores",
79+
Type: "chore",
80+
Text: "Chores",
81+
Emoji: "🚧",
7182
},
7283
{
73-
Type: "build",
74-
Text: "Build",
84+
Type: "build",
85+
Text: "Build",
86+
Emoji: "πŸ“¦",
7587
},
7688
{
77-
Type: "ci",
78-
Text: "CI",
89+
Type: "ci",
90+
Text: "CI",
91+
Emoji: "πŸ”",
7992
},
8093
}

0 commit comments

Comments
Β (0)