套件概覽
一個用於解析 Git 提交訊息的 Flutter/Dart 套件,遵循常規提交規範。它可驗證並提取提交訊息中的類型、作用域、主題和正文字段,進而實現一致的變更日誌產生與自動化發佈工作流程。專為希望在專案中強制執行標準化提交格式的開發者設計,支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 與 Linux。此套件非常適合用於 CI/CD 流水線與開發工具。
適用情境
- 強制執行提交訊息標準
- 自動生成變更日誌
- 與 CI/CD 流水線整合
- 驗證拉取請求
- 支援語意化版本
- 程式化解析 git 日誌
主要特色
- Parses Conventional Commits format
- Extracts type, scope, and subject
- Supports multi-line commit messages
- Platform-agnostic (all major OS)
- Lightweight and fast
- Compatible with Melos and other tooling
適合對象
- Teams using Conventional Commits
- CI/CD automation
- Changelog generators
- Code quality enforcement
- Developer tooling
- Open-source project maintainers
使用建議
- 需要有效的常規提交格式
- 不產生提交
- 僅限解析
- 無內建驗證 UI
- 依賴外部工具以完成完整工作流程
- 不適用於提交建立