概念:提交约定
¥Concept: Commit conventions
提交约定 允许你的团队为 Git 历史记录添加更多语义含义。例如,包含 type
、scope
或 breaking changes
。
¥Commit conventions allow your team to add more semantic meaning to your git history. This e.g. includes type
, scope
or breaking changes
.
借助这些附加信息,工具可以为你的项目发布获取有用的、可读的信息。以下是一些示例
¥With this additional information tools can derive useful human-readable information for releases of your project. Some examples are
自动化、丰富的更新日志
¥Automated, rich changelogs
自动版本升级
¥Automatic version bumps
筛选要运行的测试工具
¥Filter for test harnesses to run
最常见的提交约定遵循以下模式:
¥The most common commit conventions follow this pattern:
text
type(scope?): subject
body?
footer?
多个作用域
¥Multiple scopes
Commitlint 支持多作用域。当前分隔符选项为:
¥Commitlint supports multiple scopes.\ Current delimiter options are:
"/"
""
","