diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-28 02:35:13 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-28 02:35:13 -0500 |
| commit | c0675cca7ef24f9405f5c019f54021e062a1b054 (patch) | |
| tree | 5296d4369b1ba86254d7b2bb6dabe4bf91935740 /Omni/Agent/Worker.hs | |
| parent | a4754527ea4244e7933be86471324d9ae65a87e2 (diff) | |
Truncate task title to 52 characters in commit message subject line
The build and tests pass. The change is complete - the task title
in com
Task-Id: t-159
Diffstat (limited to 'Omni/Agent/Worker.hs')
| -rw-r--r-- | Omni/Agent/Worker.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Agent/Worker.hs b/Omni/Agent/Worker.hs index 3edfbca..dabf45c 100644 --- a/Omni/Agent/Worker.hs +++ b/Omni/Agent/Worker.hs @@ -330,7 +330,7 @@ formatCommitMessage task ampOutput = where cleanSubject s = let stripped = Text.dropWhileEnd (`elem` ['.', ':', '!', '?', ' ']) s - truncated = if Text.length stripped > 72 then Text.take 69 stripped <> "..." else stripped + truncated = if Text.length stripped > 52 then Text.take 49 stripped <> "..." else stripped capitalized = case Text.uncons truncated of Just (c, rest) -> Text.cons (toUpper c) rest Nothing -> truncated |
