diff options
| author | Ben Sima <ben@bensima.com> | 2025-11-22 13:47:22 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-11-22 13:47:22 -0500 |
| commit | b32a1eba741d015480924b65e0f21150ec94642f (patch) | |
| tree | ee7add0116ac4b59314fdda1b0219ba85e0c92ac /Omni | |
| parent | 6f4b2c97a24967508f3970b46999052fd1f44e67 (diff) | |
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)
Diffstat (limited to 'Omni')
| -rw-r--r-- | Omni/Task.hs | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
