We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f5a7c commit 5f09bcdCopy full SHA for 5f09bcd
commitizen/commands/bump.py
@@ -7,6 +7,8 @@
7
NO_COMMITS_FOUND = 3
8
NO_VERSION_SPECIFIED = 4
9
NO_PATTERN_MAP = 7
10
+COMMIT_FAILED = 8
11
+TAG_FAILED = 9
12
13
14
class Bump:
@@ -114,6 +116,12 @@ def __call__(self):
114
116
115
117
config.set_key("version", new_version.public)
118
bump.update_version_in_files(current_version, new_version.public, files)
- git.commit(message, args="-a")
- git.tag(new_tag_version)
119
+ c = git.commit(message, args="-a")
120
+ if c.err:
121
+ out.error(c.err)
122
+ raise SystemExit(COMMIT_FAILED)
123
+ c = git.tag(new_tag_version)
124
125
126
+ raise SystemExit(TAG_FAILED)
127
out.success("Done!")
0 commit comments