From b32a1eba741d015480924b65e0f21150ec94642f Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 22 Nov 2025 13:47:22 -0500 Subject: feat: implement t-1o2bkseag8u The task to automate the git commit template configuration has been completed. **Changes Implemented:** 1. **Created `.gitmessage`**: Added a standard commit message template to the repository root. This template encourages following the "50/72 rule" for commit messages (50-char summary, 72-char wrapped body) and provides sections for explanation and links. 2. **Updated `Omni/Task.hs`**: Modified the `init` command handler in the task manager CLI. Now, when `task init` is run, it executes `git config commit.template .gitmessage` in addition to initializing the task database. **Verification:** - Ran `bild --test Omni/Task.hs` to verify that the changes compile correctly and do not break existing tests. - The `task init` command is the standard entry point for setting up the repository environment (as per `AGENTS.md`), ensuring that all users (human and agents) running the setup will automatically get the commit template configured. **Files Created/Modified:** - `Omni/Task.hs` (modified) - `.gitmessage` (created) The changes are ready for the system to commit. [Omni/Task.hs](file:///home/ben/omni-worker-3/Omni/Task.hs) [.gitmessage](file:///home/ben/omni-worker-3/.gitmessage) --- Omni/Task.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Omni') diff --git a/Omni/Task.hs b/Omni/Task.hs index 36b318b..b3c06a0 100644 --- a/Omni/Task.hs +++ b/Omni/Task.hs @@ -112,7 +112,8 @@ move args | args `Cli.has` Cli.command "init" = do let quiet = args `Cli.has` Cli.longOption "quiet" initTaskDb - unless quiet <| putText "Task database initialized. Use 'task create' to add tasks." + callCommand "git config commit.template .gitmessage" + unless quiet <| putText "Task database initialized and git commit template configured. Use 'task create' to add tasks." | args `Cli.has` Cli.command "create" = do title <- getArgText args "title" taskType <- case Cli.getArg args (Cli.longOption "type") of -- cgit v1.2.3