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

Interface Commit

commit/commit.go:12–29  ·  view source on GitHub ↗

Commit represents a parsed conventional commit message.

Source from the content-addressed store, hash-verified

10
11// Commit represents a parsed conventional commit message.
12type Commit interface {
13 Message() string
14 Header() string
15 Body() string
16 Footer() string
17 Type() string
18 Scope() string
19 Description() string
20 Notes() []Note
21 IsBreakingChange() bool
22
23 HasHeaderBang() bool
24 HasBreakingFooter() bool
25 BodyBlankLines() int
26 FooterBlankLines() int
27 NoteCount() int
28 NoteAt(index int) Note
29}
30
31// Parser parses a commit message into a Commit.
32type Parser interface {

Callers 66

LintMethod · 0.65
TestSyntaxAdapterFunction · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
TestSyntaxAdapterFunction · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65
ValidateMethod · 0.65

Implementers 1

mockCommittest/helpers_test.go

Calls

no outgoing calls

Tested by

no test coverage detected