Skip to content

Commit 465acb9

Browse files
committed
✨ feat(core): icons parse [patch candidate]
1 parent 24dfb9e commit 465acb9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 1.1.4
2+
current_version = 1.1.5
33
commit = True
44
tag = False
55

control_commit/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ def main() -> None:
227227
logger.debug(f"Commit message already has icon '{icon}'.")
228228
break
229229

230-
if icon_present or commit_msg.__contains__("Bump version:"):
230+
if commit_msg.__contains__("Bump version:"):
231+
logger.debug("Commit message with icon is valid.")
232+
sys.exit(0) # Valid commit message with icon; proceed
233+
elif icon_present:
231234
# Validate the commit message without the icon
232235
if not validate_commit_message(commit_msg_without_icon):
233236
logger.error("Commit message validation failed after removing icon. Aborting commit.")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "scripts"
3-
version = "1.1.4"
3+
version = "1.1.5"
44
description = "CICD Core Scripts"
55
authors = ["B <[email protected]>"]
66
license = "Apache 2.0"

0 commit comments

Comments
 (0)