BACK TO DIRECTORY
hookintermediate

Changelog Generator

Parses conventional commit messages (feat:, fix:, docs:, etc.) and automatically updates the CHANGELOG.md file with properly categorized entries. Maintains the Keep a Changelog format, groups changes by type, and includes the commit date and author. Runs as a post-commit hook to keep the changelog always in sync with the codebase.

389 STARS
5.7k DOWNLOADS
claude-templates
changelogconventional-commitspost-commitdocs

CONFIGURATION

json
1{
2 "hooks": {
3 "post-commit": {
4 "command": "node scripts/update-changelog.js",
5 "description": "Update CHANGELOG.md from conventional commit messages",
6 "on_failure": "warn",
7 "timeout": 10000
8 }
9 },
10 "conventional_commit_types": {
11 "feat": "Added",
12 "fix": "Fixed",
13 "docs": "Documentation",
14 "style": "Styling",
15 "refactor": "Changed",
16 "perf": "Performance",
17 "test": "Testing",
18 "build": "Build",
19 "ci": "CI/CD",
20 "chore": "Maintenance",
21 "revert": "Reverted"
22 },
23 "changelog_config": {
24 "file": "CHANGELOG.md",
25 "header": "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).\n",
26 "include_commit_hash": true,
27 "include_author": true,
28 "include_date": true,
29 "group_by_type": true,
30 "skip_types": ["chore", "style", "ci"]
31 }
32}