Skip to content

Commit 22315e5

Browse files
committed
adding automatic committing
1 parent 32e9514 commit 22315e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[bumpversion]
22
current_version = 1.1.0
3+
commit = True
34
tag = False
45
tag_name = {new_version}
56
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ bump: bump-check bump-install ## Bump version using specified <VERSION> (call:
189189
$(BUMP_CMD) $(BUMP_XARGS) $(BUMP_VERSION_LEVEL) && \
190190
POST_RELEASE_TIME=$$(head -n 1 RELEASE.txt | cut -d " " -f 2) && \
191191
echo "Replace $${PRE_RELEASE_TIME} → $${POST_RELEASE_TIME}" && \
192-
$(_SED) -i "s/$${PRE_RELEASE_TIME}/$${POST_RELEASE_TIME}/g" $(BUMP_CFG) \
192+
$(_SED) -i "s/$${PRE_RELEASE_TIME}/$${POST_RELEASE_TIME}/g" $(BUMP_CFG) && \
193+
git add $(BUMP_CFG) && \
194+
git commit --amend --no-edit \
193195
'
194196

195197
.PHONY: bump-install

0 commit comments

Comments
 (0)