feat: handle no changes scenario in commit generation script
This commit is contained in:
parent
d9396a176d
commit
cacf18e723
@ -45,6 +45,7 @@ Guidelines:
|
||||
- Do not include explanations—only output commit message in under 100 characters.
|
||||
- Use this git commit convention to get uncommitted changes:
|
||||
{git_commit_convention_content}
|
||||
- If there are no uncommitted changes, return "No changes"
|
||||
- After getting uncommitted changes, analyze and generate a commit message Follow this convention:
|
||||
{convention_content}
|
||||
- Commit Message should be in under 100 characters.
|
||||
@ -141,6 +142,9 @@ async def commit_and_push_submodules():
|
||||
print(f"Processing submodule: {name} at {abs_path}")
|
||||
|
||||
commit_msg = gen_commit(abs_path)
|
||||
if commit_msg == "No changes":
|
||||
print(f"No changes for {name} at {abs_path}")
|
||||
continue
|
||||
|
||||
proc = await asyncio.create_subprocess_exec(
|
||||
"git",
|
||||
|
Loading…
Reference in New Issue
Block a user