- Notifications
You must be signed in to change notification settings - Fork261
Closed
Description
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
Labels
No labels