Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Issue with exclude_commit_patterns in Changelog #1246

Copy link
Copy link
Open
@JeromeCheviet

Description

@JeromeCheviet
Issue body actions

Bug Report

Description

Hello,

Some time ago, I updated Python Semantic Release from version 9.11.1 to 9.21.0 (I know that’s quite a jump). At first glance, I didn't encounter any problems, and I especially noticed that the default changelog had improved significantly.

However, I didn't realize immediately that since this update, I see all the commits in the changelog, including those that I exclude.

I didn't notice anything significant in the release notes, but I might have missed the information.

I reverted to intermediate versions and I see this behavior starting from version 9.12.0 of Python Semantic Release.

Expected behavior

Only feat and fix commit are in my CHANGELOG.md file

Actual behavior

All commit messages are in the CHANGELOG.md, even those I exclude in config file

Environment

  • Operating System (w/ version): Alpine
  • Python version: 3.12.9
  • Pip version:25.1.1
  • Semantic-release version: 9.21.1
  • Build tool (w/ version): poetry 2.1.3

Configuration

Semantic Release Configuration
[tool.semantic_release]
commit_message = "chore(release): {version}"
tag_format = "{version}"

[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
prerelease_token = "beta"

[tool.semantic_release.commit_parser_options]
allowed_tags = [
    "build",
    "chore",
    "ci",
    "docs",
    "feat",
    "fix",
    "perf",
    "style",
    "refactor",
    "revert",
    "test",
]
minor_tags = ["feat"]
patch_tags = [
    "build",
    "chore",
    "ci",
    "fix",
    "perf",
    "style",
    "refactor",
    "revert",
]

[tool.semantic_release.changelog.default_templates]
template_dir = "semantic_template"
changelog_file = "CHANGELOG.md"
exclude_commit_patterns = [
    "build",
    "chore",
    "ci",
    "docs",
    "perf",
    "style",
    "test",
    "refactor",
]

[tool.semantic_release.remote]
name = "origin"
type = "gitlab"
ignore_token_for_push = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-replyWaiting for responseWaiting for responsebugSomething isn't working properlySomething isn't working properly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.