← 返回
未分类 中文

Git Changelog Generator

Generate structured changelogs from git history using conventional commits, with support for multiple formats, AI-enhanced descriptions, and customizable ran...
Generate structured changelogs from git history using conventional commits, with support for multiple formats, AI-enhanced descriptions, and customizable ran...
charlie-morrison charlie-morrison 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 333
下载
💾 1
安装
1
版本
#latest

概述

Git Changelog Generator

Generate structured changelogs from git history. Supports conventional commits, semantic versioning, and multiple output formats. Use when preparing releases, writing release notes, or documenting project history.

Usage

# Generate changelog for latest unreleased changes
python3 scripts/generate_changelog.py

# Generate changelog between two tags
python3 scripts/generate_changelog.py --from v1.2.0 --to v1.3.0

# Generate for last N commits
python3 scripts/generate_changelog.py --last 20

# Generate since a date
python3 scripts/generate_changelog.py --since 2026-04-01

Output Formats

# Markdown (default)
python3 scripts/generate_changelog.py --format markdown

# Keep a Changelog format (keepachangelog.com)
python3 scripts/generate_changelog.py --format keepachangelog

# GitHub Release format
python3 scripts/generate_changelog.py --format github-release

# JSON (for programmatic use)
python3 scripts/generate_changelog.py --format json

How It Works

  1. Collect — reads git log between specified ranges
  2. Parse — extracts conventional commit types (feat, fix, refactor, docs, test, chore, perf, ci)
  3. Categorize — groups changes by type with human-readable headers
  4. Enrich — adds PR links, issue references, author attribution, breaking change warnings
  5. Format — outputs in the requested format

Conventional Commit Support

Parses standard prefixes:

  • feat: → Features
  • fix: → Bug Fixes
  • refactor: → Code Refactoring
  • docs: → Documentation
  • test: → Tests
  • perf: → Performance
  • ci: → CI/CD
  • chore: → Maintenance
  • BREAKING CHANGE: → Breaking Changes (highlighted)

Non-conventional commits are categorized as "Other Changes" with AI-assisted categorization.

Parameters

ParameterDescriptionDefault
---------------------------------
--fromStart tag/commitLast tag
--toEnd tag/commitHEAD
--lastLast N commitsAll since last tag
--sinceStart date (YYYY-MM-DD)None
--formatOutput formatmarkdown
--outputWrite to filestdout
--repoRepository pathCurrent directory
--include-authorsShow commit authorsfalse
--include-hashesShow commit hashesfalse
--group-byGroup by type or scopetype

AI Enhancement

When used as an agent skill, the AI can:

  • Rewrite terse commit messages into human-readable descriptions
  • Identify the most impactful changes and highlight them
  • Generate a summary paragraph for release announcements
  • Detect breaking changes even without conventional commit markers
  • Cross-reference with issue trackers for richer context

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 20:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,211
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 688 📥 331,716
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 199 📥 68,362