Skip to content

Commit

Permalink
⚙️ Switch emoji type default
Browse files Browse the repository at this point in the history
The default emoji type is set to shortcode which was based on how this
was configured in the Gitmoji CLI tool.

Gitmoji has now changed the default from shortcode to character. This
change switches the default to stay consistent.
  • Loading branch information
mikelorant committed Mar 4, 2024
1 parent c348413 commit 6b91677
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ view:
commit:
# Emoji format in commit.
# Values: shortcode, character
# Default: shortcode
emojiType: shortcode
# Default: character
emojiType: character

# Enable author sign-off for commits.
# Values: true, false
Expand Down
2 changes: 1 addition & 1 deletion internal/config/emoji.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (e EmojiType) MarshalYAML() (interface{}, error) {
}

func (e EmojiType) Default() int {
return 1
return 2
}

func (e EmojiType) Index() int {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/emoji_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func TestIndexEmojiType(t *testing.T) {
input config.EmojiType
want int
}{
{name: "unset", input: config.EmojiType(config.EmojiTypeUnset), want: 1},
{name: "unset", input: config.EmojiType(config.EmojiTypeUnset), want: 2},
{name: "shortcode", input: config.EmojiType(config.EmojiTypeShortcode), want: 1},
{name: "character", input: config.EmojiType(config.EmojiTypeCharacter), want: 2},
}
Expand Down

0 comments on commit 6b91677

Please sign in to comment.