Attach Commit to Recent Decisions
cph_decision_attach_commitAttaches commit hash and diff stat to recent decisions recorded within 30 minutes that lack a commit link, ensuring each decision is tied to its corresponding commit.
Instructions
Internal: Called by the post-commit git hook to link recent decisions to a commit.
Do NOT call this manually. The hook calls it automatically after every commit.
Attaches commit_hash and diff_stat to decisions recorded in the last 30 minutes that don't already have a commit attached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| commit_hash | Yes | ||
| diff_stat | No | Structural summary only: '3 files changed, 45 insertions' |