Skip to content

Remove dead [hooks] branches from post-create deprecation - #2138

Merged
max-sixty merged 1 commit into
mainfrom
cleanup-post-create-dead-branches
Apr 12, 2026
Merged

max-sixty merged 1 commit into
mainfrom
cleanup-post-create-dead-branches

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Hooks are #[serde(flatten)] into UserConfig and ProjectConfig, so [hooks] and [projects."id".hooks] are never real configs — serde rejects hooks as an unknown key. The find_post_create_from_doc and migrate_post_create_doc helpers each checked those subtrees anyway.

Mirrors the simplification #2135 applied to find_pre_hook_table_form_from_doc: two branches only — top level and per-project subtree directly. Unit tests that exercised the dead formats are retargeted to the real flattened layout ([projects."id"] with post-create at the project level).

This was written by Claude Code on behalf of max-sixty

Hooks are `#[serde(flatten)]` into UserConfig and ProjectConfig, so
`[hooks]` and `[projects."id".hooks]` are never real configs — serde
rejects `hooks` as an unknown key. Mirror the simplification PR #2135
applied to `find_pre_hook_table_form_from_doc`: two branches only, top
level and per-project subtree directly.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit dd92c53 into main Apr 12, 2026
24 checks passed
@max-sixty
max-sixty deleted the cleanup-post-create-dead-branches branch April 12, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants