Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/brief/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", ""},
Expand Down
2 changes: 1 addition & 1 deletion knowledge/_shared/_resources.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Loading