diff --git a/pkg/changelog/markdown.go b/pkg/changelog/markdown.go index 204745d..ecf240c 100644 --- a/pkg/changelog/markdown.go +++ b/pkg/changelog/markdown.go @@ -84,7 +84,7 @@ func ParseMarkdown(data string) []markdown.Node { lines := strings.Split(data, string(markdown.NewlineToken)) nodes := markdown.Parse(lines) - // remove title + // Remove title if len(nodes) > 0 && markdown.Equal(nodes[0], markdown.NewHeader(firstLevel, title)) { nodes = nodes[1:] } diff --git a/pkg/changelog/markdown_test.go b/pkg/changelog/markdown_test.go index b91a701..3330214 100644 --- a/pkg/changelog/markdown_test.go +++ b/pkg/changelog/markdown_test.go @@ -112,7 +112,7 @@ func TestGenerateMarkdown(t *testing.T) { }, }, scopes: map[string]struct{}{ - "a": struct{}{}, + "a": {}, }, version: "v1.0.0", when: time.Date(2020, 3, 22, 0, 0, 0, 0, time.Local), diff --git a/pkg/convention/types.go b/pkg/convention/types.go index 91c3cfe..17af70b 100644 --- a/pkg/convention/types.go +++ b/pkg/convention/types.go @@ -5,7 +5,7 @@ const ( FeatType = "feat" BuildType = "build" ChoreType = "chore" - CiType = "ci" + CIType = "ci" DocsType = "docs" StyleType = "style" RefactorType = "refactor"