fix(workflow): [2f488f42] Mache git commit bedingt nur bei Änderungen

This commit is contained in:
2026-01-27 10:42:30 +00:00
parent 59c778c602
commit d3f913d3de

View File

@@ -694,6 +694,12 @@ def report_status_to_notion(
subprocess.run(["git", "add", "."], check=True)
print("✅ Alle Änderungen gestaged (git add .).")
# Prüfen, ob es Änderungen zum Committen gibt
git_status_output = subprocess.run(["git", "status", "--porcelain"], capture_output=True, text=True, check=True).stdout.strip()
if not git_status_output:
print("⚠️ Keine Änderungen zum Committen gefunden. Überspringe git commit.")
return # Beende die Funktion, da nichts zu tun ist
# Commit-Nachricht erstellen
commit_subject = actual_summary.splitlines()[0] if actual_summary else "Notion Status Update"
commit_message = f"[{task_id.split('-')[0]}] {commit_subject}\n\n{actual_summary}"