Add Task-Id trailer to pi-review.sh commits

t-287·WorkTask·
·
·
·Omni/Ide.hs
Created1 month ago·Updated1 month ago

Description

Edit

Commits made by pi-review.sh should include a git trailer for task traceability.

Current Format

Omni/Ide.hs: Add --help flag to pi-code.sh

Desired Format

Omni/Ide.hs: Add --help flag to pi-code.sh

Task-Id: t-281

Implementation

Change the git commit in pi-review.sh from:

git commit -m "$COMMIT_PREFIX: $TITLE"

To:

git commit -m "$COMMIT_PREFIX: $TITLE" -m "" -m "Task-Id: $TASK_ID"

Or use --trailer:

git commit -m "$COMMIT_PREFIX: $TITLE" --trailer "Task-Id: $TASK_ID"

Benefits

  • Can find all commits for a task: git log --grep='Task-Id: t-123'
  • Audit trail from task → commits
  • Works with git's standard trailer format

Timeline (2)

🔄[human]Open → InProgress1 month ago
🔄[human]InProgress → Done1 month ago