-
Notifications
You must be signed in to change notification settings - Fork 256
Configured tag_format is ignored if there are no tags in the repository #1137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@tcjennings, wow what an obscure bug. I was able to replicate it and found the source of the problem. It is specific to using one of the force version bump parameters (ex. |
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
codejedi365
added a commit
to codejedi365/python-semantic-release
that referenced
this issue
Jan 11, 2025
…or initial release Resolves: python-semantic-release#1137
🎉 This issue has been resolved in Version 9.16.0 🎉You can find more information about this release on the GitHub Releases page. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
Description
In a new project repo, where there are no tags or releases, PSR
version
command incorrectly creates a tag using the defaulttag_format
instead of the configuredtag_format
.Expected behavior
PSR should use the configured
tag_format
when it creates tags whether there are tags in the repo or not.Actual behavior
PSR creates an initial tag using the default
tag_format = v{version}
instead of the configuredtag_format = X{version}
.command:
semantic-release -vv --noop version --patch --no-commit --skip-build --no-changelog --no-vcs-release --no-push
output:
semantic-release 'noop' mode is enabled! would have run: GIT_COMMITTER_DATE=2025-01-10T14:22:42.173414-06:00 GIT_AUTHOR_NAME=semantic-release GIT_AUTHOR_EMAIL=semantic-release GIT_COMMITTER_NAME=semantic-release GIT_COMMITTER_EMAIL=semantic-release git tag -a v0.0.1 -m 'v0.0.1
Environment
pip freeze
annotated-types==0.7.0 certifi==2024.12.14 charset-normalizer==3.4.1 click==8.1.8 click-option-group==0.5.6 dotty-dict==1.3.1 gitdb==4.0.12 gitpython==3.1.44 idna==3.10 importlib-resources==6.5.2 jinja2==3.1.5 markdown-it-py==3.0.0 markupsafe==3.0.2 mdurl==0.1.2 pydantic==2.10.5 pydantic-core==2.27.2 pygments==2.19.1 python-gitlab==4.13.0 python-semantic-release==9.15.2 requests==2.32.3 requests-toolbelt==1.0.0 rich==13.9.4 shellingham==1.5.4 smmap==5.0.2 tomlkit==0.13.2 typing-extensions==4.12.2 urllib3==2.3.0
Configuration
Semantic Release Configuration
Build System Configuration
Execution Log
semantic-release -vv command
Additional context
When configured
tag_format = X{version}
The text was updated successfully, but these errors were encountered: