feat(scripts): modify gen_commit.py to enhance commit message generation
This commit is contained in:
@@ -40,7 +40,8 @@ def gen_commit(project_path):
|
|||||||
agent = OpenInterpreter()
|
agent = OpenInterpreter()
|
||||||
agent.auto_run = True
|
agent.auto_run = True
|
||||||
with open(
|
with open(
|
||||||
f"{project_path}/scripts/interpreter/resources/commit_convention.txt", "r"
|
os.path.join(os.path.dirname(__file__), "resources/commit_convention.txt"),
|
||||||
|
"r",
|
||||||
) as f:
|
) as f:
|
||||||
file_content = f.read()
|
file_content = f.read()
|
||||||
agent.system_message = f"""
|
agent.system_message = f"""
|
||||||
|
|||||||
Reference in New Issue
Block a user