Removed dead code and added detailed documentation: 1. Removed unused functions (61 lines deleted) - resolve_template() - Template resolution now handled by config.py - apply_patch_with_3way() - Patch application now handled by patcher.py 2. Added comprehensive function documentation - check_append_only_discussion: Detailed docstring explaining validation logic - ensure_summary: Explains companion file creation and auto-staging 3. Added execution flow documentation - STEP 1: Collect staged files - STEP 2: Process discussion files (validation + summary creation) - STEP 3: Run AI automation (runner.py) with examples and debug info - STEP 4: Run workflow automation (workflow.py) with vote tracking details 4. Improved inline comments - Explained what each automation phase does - Documented exit codes and behavior - Added examples of file transformations - Noted debug artifact locations Result: - Hook reduced from 141 lines to 109 lines (cleaner) - Every section now clearly documented - Easier for users to understand automation flow - Better debugging guidance 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| pre-commit | ||