diff --git a/commitizen/version_schemes.py b/commitizen/version_schemes.py index 6e3ec5fcdc..bb8a59e1b3 100644 --- a/commitizen/version_schemes.py +++ b/commitizen/version_schemes.py @@ -226,8 +226,8 @@ def bump( prerelease_offset: int = 0, devrelease: int | None = None, is_local_version: bool = False, - force_bump: bool = False, build_metadata: str | None = None, + force_bump: bool = False, ) -> Self: """Based on the given increment a proper semver will be generated. @@ -261,6 +261,7 @@ def bump( base = self.increment_base(increment) dev_version = self.generate_devrelease(devrelease) + build_metadata = self.generate_build_metadata(build_metadata) release = list(self.release) if len(release) < 3: release += [0] * (3 - len(release))