Skip to content

Commit 8afaf66

Browse files
authored
chore: ignore commits with unknown category in PSR (#1128)
1 parent dbefd2d commit 8afaf66

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ build_command = "pip install poetry && poetry build"
5858

5959
[tool.semantic_release.changelog]
6060
exclude_commit_patterns = [
61-
"chore*",
62-
"ci*",
61+
"chore.*",
62+
"ci.*",
63+
"Merge pull request .*",
6364
]
6465

6566
[tool.semantic_release.changelog.environment]

templates/CHANGELOG.md.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }})
77

8-
{%- for category, commits in release["elements"].items() %}
8+
{%- for category, commits in release["elements"].items() %}{% if category != "unknown" %}
99
{# Category title: Breaking, Fix, Documentation #}
1010
### {{ category | capitalize }}
1111
{# List actual changes in the category #}
1212
{%- for commit in commits %}
1313
- {{ commit.descriptions[0] | capitalize }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }}))
1414
{%- endfor %}{# for commit #}
1515

16-
{%- endfor %}{# for category, commits #}
16+
{%- endif %}{% endfor %}{# for category, commits #}
1717

1818
{%- endif %}{# if version.as_tag() #}
1919

0 commit comments

Comments
 (0)