diff --git a/cmd/brief/resources_test.go b/cmd/brief/resources_test.go index 7d0ac11..37c7364 100644 --- a/cmd/brief/resources_test.go +++ b/cmd/brief/resources_test.go @@ -35,6 +35,12 @@ func TestScanResourceVariants(t *testing.T) { {"change rst", []string{"CHANGE.rst"}, "", "changelog", "CHANGE.rst"}, {"change adoc", []string{"CHANGE.adoc"}, "", "changelog", "CHANGE.adoc"}, {"changelog precedence", []string{"CHANGELOG.md", "CHANGE.md"}, "", "changelog", "CHANGELOG.md"}, + {"changelog long markdown", []string{"CHANGELOG.markdown"}, "", "changelog", "CHANGELOG.markdown"}, + {"news long markdown", []string{"News.markdown"}, "", "changelog", "News.markdown"}, + {"changelog versioned", []string{"CHANGELOG-1.x.md"}, "", "changelog", "CHANGELOG-1.x.md"}, + {"changelog versioned rst", []string{"ChangeLog-2024.rst"}, "", "changelog", "ChangeLog-2024.rst"}, + {"changelog unversioned precedence", []string{"CHANGELOG-1.x.md", "CHANGELOG.md"}, "", "changelog", "CHANGELOG.md"}, + {"changelog source files", []string{"changelog.go", "changelog-parser.go", "history.go"}, "", "changelog", ""}, {"conduct similar names", []string{"CODE-OF-CONDUCT.txt.bak", "docs/CODE-OF-CONDUCT-POLICY.md"}, "community", "code_of_conduct", ""}, {"cla similar names", []string{"CONTRIBUTOR LICENSE AGREEMENT.md.bak", "docs/CONTRIBUTOR LICENSE AGREEMENT POLICY.md"}, "legal", "cla", ""}, {"change similar names", []string{"CHANGE.md.bak", "CHANGE-REQUEST.md"}, "", "changelog", ""}, diff --git a/knowledge/_shared/_resources.toml b/knowledge/_shared/_resources.toml index 5709eac..a44190d 100644 --- a/knowledge/_shared/_resources.toml +++ b/knowledge/_shared/_resources.toml @@ -14,7 +14,7 @@ dirs = ["docs", ".github", ".gitlab"] [resources.resource] name = "Changelog" field = "changelog" -patterns = ["changelog", "changelog.md", "changelog.txt", "changelog.rst", "changelog.adoc", "changes", "changes.md", "changes.txt", "changes.rst", "changes.adoc", "history", "history.md", "history.txt", "history.rst", "history.adoc", "news", "news.md", "news.txt", "news.rst", "news.adoc", "change", "change.md", "change.txt", "change.rst", "change.adoc"] +patterns = ["changelog", "changelog.md", "changelog.markdown", "changelog.txt", "changelog.rst", "changelog.adoc", "changelog-*.md", "changelog-*.markdown", "changelog-*.txt", "changelog-*.rst", "changelog-*.adoc", "changes", "changes.md", "changes.markdown", "changes.txt", "changes.rst", "changes.adoc", "history", "history.md", "history.markdown", "history.txt", "history.rst", "history.adoc", "news", "news.md", "news.markdown", "news.txt", "news.rst", "news.adoc", "change", "change.md", "change.markdown", "change.txt", "change.rst", "change.adoc"] [[resources]] [resources.resource]