Skip to content

Commit

Permalink
feat: first commit emoji and option
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanCapistrano committed Jul 20, 2023
1 parent 00dd74f commit c4f525c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
3 changes: 2 additions & 1 deletion config/gbc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ emojis = {
"style": ":sparkles:",
"build": ":construction:",
"ci": ":factory:",
"perf": ":chart_with_upwards_trend:"
"perf": ":chart_with_upwards_trend:",
"first_commit": ":1st_place_medal:"
}

# If you want to commit messages with emojis, change to 'true'.
Expand Down
42 changes: 22 additions & 20 deletions config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,17 @@ import (
)

type Emoji struct {
Feat string `json:"feat"`
Fix string `json:"fix"`
Chore string `json:"chore"`
Refactor string `json:"refactor"`
Test string `json:"test"`
Docs string `json:"docs"`
Style string `json:"style"`
Build string `json:"build"`
Ci string `json:"ci"`
Perf string `json:"perf"`
Feat string `json:"feat"`
Fix string `json:"fix"`
Chore string `json:"chore"`
Refactor string `json:"refactor"`
Test string `json:"test"`
Docs string `json:"docs"`
Style string `json:"style"`
Build string `json:"build"`
Ci string `json:"ci"`
Perf string `json:"perf"`
FirstCommit string `json:"first_commit"`
}

func GetEmojis(fileName string, debug bool) Emoji {
Expand Down Expand Up @@ -100,16 +101,17 @@ func GetEmojis(fileName string, debug bool) Emoji {
}

return Emoji{
Feat: ":rocket:",
Fix: ":bug:",
Chore: ":white_check_mark:",
Refactor: ":hammer:",
Test: ":memo:",
Docs: ":books:",
Style: ":sparkles:",
Build: ":construction:",
Ci: ":factory:",
Perf: ":chart_with_upwards_trend:",
Feat: ":rocket:",
Fix: ":bug:",
Chore: ":white_check_mark:",
Refactor: ":hammer:",
Test: ":memo:",
Docs: ":books:",
Style: ":sparkles:",
Build: ":construction:",
Ci: ":factory:",
Perf: ":chart_with_upwards_trend:",
FirstCommit: ":1st_place_medal:",
}
}

Expand Down

0 comments on commit c4f525c

Please sign in to comment.