Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conventional-changelog/commitlint
/ selectColor
Function
selectColor
@commitlint/format/src/format.ts:104–109 ·
view source on GitHub ↗
(result: FormattableResult)
Source
from the content-addressed store, hash-verified
102
}
103
104
function
selectColor(result: FormattableResult): PicocolorsColor {
105
if
((result.errors || []).length > 0) {
106
return
"red"
;
107
}
108
return
(result.warnings || []).length ?
"yellow"
:
"green"
;
109
}
Callers
1
formatResult
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected