This is adapted from Angular's commit convention

TL;DR:

Message 必须与以下匹配:

/^(revert: )?(build|chore|ci|docs|feat|fix|perf|refactor|style|test|types|wip)(\\(.+\\))?: .{1,50}/

Examples

feat(pencil): add 'graphiteWidth' option
fix(graphite): stop graphite breaking when width < 0.1

Closes #28
fix(v-model): handle events on blur

Fixes #31
perf(core): improve vdom diffing by removing 'foo' option

BREAKING CHANGE: The 'foo' option has been removed.
revert: feat(compiler): add 'comments' option

This reverts commit 667ecc1654a317a13331b17617d973392f415f02.

完整 Message 格式

提交消息由 header、body 和 footer 组成,header 由 type、scope 和 summary 组成

<type>(<scope>): <summary>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

header 是强制的,<type> 和 <summary> 是强制的,而 <scope> 是可选的

body,除了 docs 类型的提交之外,所有的提交尽可能使用 body

footer 是可选的

Revert

如果恢复了以前的提交,应该以 revert: 开头,后跟「恢复的提交的标题」,在 body 中,应该填写:This reverts commit <hash>.<hash> 应该是恢复的提交的 SHA

revert: feat(compiler): add 'comments' option

This reverts commit 667ecc1654a317a13331b17617d973392f415f02.

The `src` and `srcset` attributes don't pose security threats in modern browser, so sanitization is not really necessary.