MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / HasHeaderBang

Method HasHeaderBang

test/helpers_test.go:34–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32func (m *mockCommit) IsBreakingChange() bool { return m.breaking }
33
34func (m *mockCommit) HasHeaderBang() bool {
35 colon := strings.IndexByte(m.header, ':')
36 return colon > 0 && m.header[colon-1] == '!'
37}
38
39func (m *mockCommit) HasBreakingFooter() bool {
40 for _, n := range m.notes {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected