chore: improve wording, typo (#16)
parent
52da6c9b2b
commit
846a150cfd
|
@ -84,7 +84,7 @@ func ParseMarkdown(data string) []markdown.Node {
|
||||||
lines := strings.Split(data, string(markdown.NewlineToken))
|
lines := strings.Split(data, string(markdown.NewlineToken))
|
||||||
nodes := markdown.Parse(lines)
|
nodes := markdown.Parse(lines)
|
||||||
|
|
||||||
// remove title
|
// Remove title
|
||||||
if len(nodes) > 0 && markdown.Equal(nodes[0], markdown.NewHeader(firstLevel, title)) {
|
if len(nodes) > 0 && markdown.Equal(nodes[0], markdown.NewHeader(firstLevel, title)) {
|
||||||
nodes = nodes[1:]
|
nodes = nodes[1:]
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ func TestGenerateMarkdown(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
scopes: map[string]struct{}{
|
scopes: map[string]struct{}{
|
||||||
"a": struct{}{},
|
"a": {},
|
||||||
},
|
},
|
||||||
version: "v1.0.0",
|
version: "v1.0.0",
|
||||||
when: time.Date(2020, 3, 22, 0, 0, 0, 0, time.Local),
|
when: time.Date(2020, 3, 22, 0, 0, 0, 0, time.Local),
|
||||||
|
|
|
@ -5,7 +5,7 @@ const (
|
||||||
FeatType = "feat"
|
FeatType = "feat"
|
||||||
BuildType = "build"
|
BuildType = "build"
|
||||||
ChoreType = "chore"
|
ChoreType = "chore"
|
||||||
CiType = "ci"
|
CIType = "ci"
|
||||||
DocsType = "docs"
|
DocsType = "docs"
|
||||||
StyleType = "style"
|
StyleType = "style"
|
||||||
RefactorType = "refactor"
|
RefactorType = "refactor"
|
||||||
|
|
Loading…
Reference in New Issue