Skip to content

Commit f6bc389

Browse files
committed
chore: update the pretty json style config
1 parent e94dfa3 commit f6bc389

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/changelog.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
title: '## Change Log'
1+
title: "## Change Log"
22
# style allow: simple, markdown(mkdown), ghr(gh-release)
33
style: gh-release
44
# group names
5-
names: [Refactor, Fixed, Feature, Update, Other]
5+
names: [Refactor, Feature, Update, Fixed, Other]
66
# if empty will auto fetch by git remote
77
#repo_url: https://github.com/gookit/goutil
88

@@ -25,16 +25,16 @@ filters:
2525
rules:
2626
- name: Refactor
2727
start_withs: [refactor]
28-
contains: ['refactor:', refactoring]
28+
contains: ["refactor:", refactoring]
2929
- name: Breaking
3030
start_withs: [breaking, break]
31-
contains: ['breaking:', 'break:']
31+
contains: ["breaking:", "break:"]
3232
- name: Fixed
3333
start_withs: [fix]
34-
contains: ['fix:']
34+
contains: ["fix:"]
3535
- name: Feature
3636
start_withs: [feat, new]
37-
contains: [feature, 'feat:']
37+
contains: [feature, "feat:"]
3838
- name: Update
3939
start_withs: [up]
40-
contains: ['update:', 'up:']
40+
contains: ["update:", "up:"]

show/json.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ type PrettyJSON struct {
2424
func NewPrettyJSON(v ...any) *PrettyJSON {
2525
pj := &PrettyJSON{
2626
Indent: " ",
27-
KeyStyle: "info",
28-
BoolStyle: "success",
29-
NumberStyle: "warning",
27+
KeyStyle: "green",
28+
BoolStyle: "mga",
29+
NumberStyle: "ylw",
3030
}
3131
if len(v) > 0 {
3232
pj.Data = v[0]

0 commit comments

Comments
 (0)