Repository navigation
Default level bump in >=8.0.0 ? #700
Description
Activity
Hey @davidhulick - you can add
[tool.semantic_release.commit_parser_options] default_bump_level = "patch"
Hello! Thank you for the response. This seems to product a typeError. My parser config is as follows:
[semantic_release.commit_parser_options] allowed_tags = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "style", "refactor", "test"] minor_tags = ["feat"] patch_tags = ["fix", "perf"] default_bump_level = "patch"This results in the output
dhulick@dhulick-HP:~/development/scratch/version-test$ semantic-release -vv version --print [15:08:46] DEBUG [semantic_release.cli.commands.main] DEBUG main.main: logging level set to: DEBUG main.py:104 DEBUG [semantic_release.cli.commands.main] DEBUG main.main: global cli options: GlobalCommandLineOptions(noop=False, verbosity=2, config_file='pyproject.toml', strict=False) main.py:122 INFO [semantic_release.cli.util] INFO util.load_raw_config_file: Loading configuration from pyproject.toml util.py:78 DEBUG [semantic_release.cli.util] DEBUG util.load_raw_config_file: Trying to parse configuration pyproject.toml in TOML format util.py:81 INFO [semantic_release.cli.config] INFO config.select_branch_options: Using group 'main' options, as '(main|master)' matches 'master' config.py:228 Traceback (most recent call last): File "/home/dhulick/.local/bin/semantic-release", line 8, in <module> sys.exit(main()) File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1656, in invoke super().invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 26, in new_func return f(get_current_context(), *args, **kwargs) File "/home/dhulick/.local/lib/python3.10/site-packages/semantic_release/cli/commands/main.py", line 147, in main runtime = RuntimeContext.from_raw_config( File "/home/dhulick/.local/lib/python3.10/site-packages/semantic_release/cli/config.py", line 270, in from_raw_config options=commit_parser_cls.parser_options(**raw.commit_parser_options) File "/home/dhulick/.local/lib/python3.10/site-packages/pydantic/_internal/_dataclasses.py", line 132, in __init__ s.__pydantic_validator__.validate_python(ArgsKwargs(args, kwargs), self_instance=s) pydantic_core._pydantic_core.ValidationError: 1 validation error for AngularParserOptions default_bump_level Input should be a valid integer, unable to parse string as an integer [type=int_parsing, input_value='patch', input_type=str] For further information visit https://errors.pydantic.dev/2.4/v/int_parsing@bernardcooke53 Should I file this as a bug?
@davidhulick don't worry about a separate issue, this one is enough
- addedbugSomething isn't working properlySomething isn't working properly
on Oct 18, 2023 - addedconfirmedPrevent from becoming stalePrevent from becoming staleand removed
on Mar 28, 2024 It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?
- addedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on May 27, 2024 No update here yet, I have been working on other things.
- removedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on May 28, 2024 12 remaining items
It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?
- addedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Jan 28, 2025 Still in backlog, hopefully to tackle this with the configuration improvements in next major release
- removedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Feb 1, 2025 - changed the title
[-]Default level bump in ^8.0.0 ?[/-][+]Default level bump in >=8.0.0 ?[/+]on Feb 23, 2025 It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?
- addedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Apr 25, 2025 Still in backlog
- removedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Apr 29, 2025 It has been 60 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?
- addedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Jun 29, 2025 Under development
- removedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Jul 4, 2025 It has been 90 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?
- addedneeds-updateNeeds status update from maintainersNeeds status update from maintainers
on Oct 3, 2025
Hello,
I've noticed that
parser_angular_default_level_bumphas been removed in 8.0.0 of Python Semantic Release. Previously we could setparser_angular_default_level_bump=patchto increment the patch version number when no valid angular commit tags were found. Is there now a way to do this without writing our own parser?Thank You!