summaryrefslogtreecommitdiff
path: root/Omni/Agent/harvest-tasks.sh
diff options
context:
space:
mode:
authorOmni Worker <bot@omni.agent>2025-11-21 04:44:32 -0500
committerOmni Worker <bot@omni.agent>2025-11-21 04:44:32 -0500
commit5f709412759f8c3f7c81f1343fa9a94ece5117d9 (patch)
treea0696d09a500b324515a5184472cc86a79f34f31 /Omni/Agent/harvest-tasks.sh
parent65c0b02b23a8b3125b0c10112d48c1a637f01cf9 (diff)
parent7801b1dc328b07a8589d651d4af843cc6acb4552 (diff)
Merge live into task/t-rWacMb1av
Amp-Thread-ID: https://ampcode.com/threads/T-7109f8d0-feb4-4a24-bc4b-37743227e2cb Co-authored-by: Amp <amp@ampcode.com>
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."