summaryrefslogtreecommitdiff
path: root/Omni/Agent/harvest-tasks.sh
diff options
context:
space:
mode:
authorOmni Worker <bot@omni.agent>2025-11-21 04:34:09 -0500
committerOmni Worker <bot@omni.agent>2025-11-21 04:34:09 -0500
commite111ed412e4d782c4f3fa7074c679bd60c1dc281 (patch)
treea58c3febd88a7c987421920f9d9058d75c2acef1 /Omni/Agent/harvest-tasks.sh
parent6349c3ab5c10be45f4b8f2621298c333e0480dae (diff)
parentf99aee1aa31f621a804e0c98ed4f84260da1b3eb (diff)
Merge branch 'live' into task/t-1ne7Qtj
Diffstat (limited to 'Omni/Agent/harvest-tasks.sh')
-rwxr-xr-xOmni/Agent/harvest-tasks.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/Omni/Agent/harvest-tasks.sh b/Omni/Agent/harvest-tasks.sh
index 282beab..44c2322 100755
--- a/Omni/Agent/harvest-tasks.sh
+++ b/Omni/Agent/harvest-tasks.sh
@@ -45,7 +45,14 @@ if [ "$UPDATED" -eq 1 ]; then
# Commit if there are changes
if [[ -n $(git status --porcelain .tasks/tasks.jsonl) ]]; then
git add .tasks/tasks.jsonl
- git commit -m "task: harvest updates from workers"
+
+ LAST_MSG=$(git log -1 --pretty=%s)
+ if [[ "$LAST_MSG" == "task: harvest updates from workers" ]]; then
+ echo "Squashing with previous harvest commit..."
+ git commit --amend --no-edit
+ else
+ git commit -m "task: harvest updates from workers"
+ fi
echo "Success: Task database updated and committed."
else
echo "No effective changes found."