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

Commit df3a87d

Browse files
marcossantiagoLee-W
authored andcommitted
feat: allow files-only to set config version and create changelog
1 parent de44a0a commit df3a87d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎commitizen/commands/bump.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ def __call__(self): # noqa: C901
148148
version_files,
149149
check_consistency=self.check_consistency,
150150
)
151-
if is_files_only:
152-
raise ExpectedExit()
153151

154152
if self.changelog:
155153
changelog_cmd = Changelog(
@@ -164,6 +162,10 @@ def __call__(self): # noqa: C901
164162
c = cmd.run(f"git add {changelog_cmd.file_name}")
165163

166164
self.config.set_key("version", str(new_version))
165+
166+
if is_files_only:
167+
raise ExpectedExit()
168+
167169
c = git.commit(message, args=self._get_commit_args())
168170
if c.return_code != 0:
169171
raise BumpCommitFailedError(f'git.commit error: "{c.err.strip()}"')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /