From 4273518cf94e3fc2a5081f4192f666c5768d3300 Mon Sep 17 00:00:00 2001 From: liblaf <30631553+liblaf@users.noreply.github.com> Date: Sat, 16 Mar 2024 23:29:42 +0800 Subject: [PATCH] fix: enhance displaying type of change Improved the display of the type of change by including its description for better clarity and understanding. --- src/aic/prompt/conventional.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/aic/prompt/conventional.py b/src/aic/prompt/conventional.py index 0a34a335..09fa1205 100644 --- a/src/aic/prompt/conventional.py +++ b/src/aic/prompt/conventional.py @@ -130,7 +130,9 @@ def instructions(self) -> str: content += f" - {t}: {t.description}\n" pass else: - content += f"- The type of change is `{self.type_}`.\n" + content += ( + f"- The type of change is `{self.type_}`: {self.type_.description}.\n" + ) if self.scope is None: content += "- Determine the scope of change (e.g. component of file name) or omit the scope of change based on the changes.\n"