Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

When template folder is present, changelog_file is ignored #983

Closed
@GiamBoscaro

Description

@GiamBoscaro

The problem

If I create a custom template for the CHANGELOG and put it into the templates directory, the parameterchangelog_file is ignored and the CHANGELOG is always generated in the root folder of the project with the nameCHANGELOG.md.
This happens if I specify or also if I do not specifytemplate_dir.

Expected behavior

CHANGELOG should be generated in the location specified inchangelog_file.

Environment

Please state which OS you are using and provide the output of the following commands:

python --version# Python 3.11.2pip --version# pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)semantic-release --version# semantic-release, version 9.8.5pip freeze# nothing

Configuration

[tool.semantic_release]assets = ['docs/CHANGELOG.md','src/semantic_versioning_sample/__init__.py']commit_author ='semantic-release-bot <semantic-release-bot@mail.com>'commit_message ='chore(release): {version} [skip ci]'commit_parser ='angular'version_variables = ['src/semantic_versioning_sample/__init__.py:VERSION']tag_format ="v{version}"allow_zero_version =false[tool.semantic_release.remote]type ='bitbucket'ignore_token_for_push =trueinsecure =false[tool.semantic_release.changelog]changelog_file ='docs/CHANGELOG.md'template_dir ='templates'exclude_commit_patterns = ["build","chore","ci","style","refactor","test","Pull request","Merge"]    [tool.semantic_release.branches.main]match ="(main|master)"prerelease =false[tool.semantic_release.branches.stage]match ="(stage|qa)"prerelease_token ="rc"prerelease =true

Logs

I cannot post the whole log is way too long. But here you can see that it is saving theCHANGELOG.md into the wrong folder, ignoring what is written in thetoml file.

semantic-release -vv changelog INFO     [semantic_release.changelog.template] INFO template.recursive_render:         template.py:100                    Rendering templates from                                                                                         /workspaces/semantic-versioning-sample-python/templates to                                                       /workspaces/semantic-versioning-sample-python                                                 DEBUG    [semantic_release.changelog.template] DEBUG template.recursive_render:        template.py:110          rendering CHANGELOG.md.j2 to                                                                           /workspaces/semantic-versioning-sample-python/CHANGELOG.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp