Skip to content

Commit cd38cf1

Browse files
committed
feat(commit): update commit warn style
update commit warn style Signed-off-by: mritd <[email protected]>
1 parent 3bd74cc commit cd38cf1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

consts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const (
1414
HOTFIX CommitType = "hotfix"
1515
)
1616

17+
const commitWarn = "✔ Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
18+
1719
const commitMessagePattern = `^(feat|fix|docs|style|refactor|test|chore|perf|hotfix)\((\S.*)\):\s(\S.*)|^Merge.*`
1820

1921
const commitBodyEditPattern = `^\/\/\s*(?i)edit`

git_wapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func commit() error {
158158
return err
159159
}
160160

161-
fmt.Println("\n✔ Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.")
161+
fmt.Println("\n" + common.FontColor(commitWarn, "2"))
162162

163163
return nil
164164
}

0 commit comments

Comments
 (0)