diff options
| author | Omni Worker <bot@omni.agent> | 2025-11-21 04:44:32 -0500 |
|---|---|---|
| committer | Omni Worker <bot@omni.agent> | 2025-11-21 04:44:32 -0500 |
| commit | 5f709412759f8c3f7c81f1343fa9a94ece5117d9 (patch) | |
| tree | a0696d09a500b324515a5184472cc86a79f34f31 /Omni/Agent/harvest-tasks.sh | |
| parent | 65c0b02b23a8b3125b0c10112d48c1a637f01cf9 (diff) | |
| parent | 7801b1dc328b07a8589d651d4af843cc6acb4552 (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-x | Omni/Agent/harvest-tasks.sh | 9 |
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." |
