{"componentChunkName":"component---src-templates-docs-tsx","path":"/docs/commit-lint","webpackCompilationHash":"1daf920fd56dc476eb98","result":{"data":{"markdownRemark":{"html":"<h2 id=\"提交信息格式\">提交信息格式<a href=\"#%E6%8F%90%E4%BA%A4%E4%BF%A1%E6%81%AF%E6%A0%BC%E5%BC%8F\" aria-hidden class=\"anchor\">#</a></h2>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">&lt;type&gt;(&lt;scope&gt;): &lt;subject&gt;\n// 空一行\n&lt;body&gt;\n// 空一行\n&lt;footer&gt;</code></pre></div>\n<p>提交信息应该包含Header(必填)、Body(选填)和Footer(选填)</p>\n<h2 id=\"header\">Header<a href=\"#header\" aria-hidden class=\"anchor\">#</a></h2>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">&lt;type&gt;(&lt;scope&gt;): &lt;subject&gt;</code></pre></div>\n<h3 id=\"type\">type<a href=\"#type\" aria-hidden class=\"anchor\">#</a></h3>\n<p>用来説明commit的类别, 可选值如下</p>\n<ul>\n<li>\n<p><code>feat</code>: 新功能</p>\n</li>\n<li>\n<p><code>fix</code>: BUG修复</p>\n</li>\n<li>\n<p><code>docs</code>: 文档</p>\n</li>\n<li>\n<p><code>style</code>: 代码格式(不影响代码运行的变动)</p>\n</li>\n<li>\n<p><code>refactor</code>: 重构</p>\n</li>\n<li>\n<p><code>test</code>: 关于测试</p>\n</li>\n<li>\n<p><code>chore</code>: 构建过程或辅助工具的变动</p>\n</li>\n<li>\n<p><code>revert</code>: 还原代码</p>\n</li>\n</ul>\n<h3 id=\"scope\">scope<a href=\"#scope\" aria-hidden class=\"anchor\">#</a></h3>\n<p>表示影响的范围 选填</p>\n<h3 id=\"subject\">subject<a href=\"#subject\" aria-hidden class=\"anchor\">#</a></h3>\n<p>commit 目的的简短描述</p>\n<h2 id=\"body\">Body<a href=\"#body\" aria-hidden class=\"anchor\">#</a></h2>\n<p>本次 commit 的详细描述，可以分成多行</p>\n<h2 id=\"footer\">Footer<a href=\"#footer\" aria-hidden class=\"anchor\">#</a></h2>\n<p>只用于两种情况 关联Issue 和 关闭Issue</p>\n<p>关联Issue:\n格式: Issue #1, #2, #3\n关闭Issue:\n格式: Close #1, #2, #3</p>\n<h2 id=\"示例\">示例<a href=\"#%E7%A4%BA%E4%BE%8B\" aria-hidden class=\"anchor\">#</a></h2>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">feat(document module): 添加**功能\n \n详细説明\n\n- 功能1\n- 功能2\n\nIssue #1, #2\nClose #1</code></pre></div>","tableOfContents":"<ul>\n<li><a href=\"/docs/commit-lint/#%E6%8F%90%E4%BA%A4%E4%BF%A1%E6%81%AF%E6%A0%BC%E5%BC%8F\">提交信息格式</a></li>\n<li><a href=\"/docs/commit-lint/#header\">Header</a></li>\n<li><a href=\"/docs/commit-lint/#body\">Body</a></li>\n<li><a href=\"/docs/commit-lint/#footer\">Footer</a></li>\n<li><a href=\"/docs/commit-lint/#%E7%A4%BA%E4%BE%8B\">示例</a></li>\n</ul>","frontmatter":{"title":{"zh_CN":"Commit信息规范","en_US":"Commit信息规范"},"order":1,"type":"Specification"},"fields":{"path":"/docs/commit-lint.en-US.md","slug":"/docs/commit-lint","modifiedTime":1576230292799,"avatarList":[{"href":"/wangxingkang","text":"wangxingkang","src":"https://avatars1.githubusercontent.com/u/14227679?s=40&v=4"}]}},"allMarkdownRemark":{"edges":[{"node":{"frontmatter":{"title":{"zh_CN":"国际化","en_US":"国际化"},"order":4,"type":"入门","time":null},"fields":{"slug":"/docs/i18n-cn","path":"/docs/i18n.zh-CN.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"Globalization","en_US":"Globalization"},"order":4,"type":"Getting Started","time":null},"fields":{"slug":"/docs/i18n","path":"/docs/i18n.en-US.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"开始使用","en_US":"开始使用"},"order":0,"type":"入门","time":"2019-07-19T00:00:00.000Z"},"fields":{"slug":"/docs/getting-started-cn","path":"/docs/getting-started.zh-CN.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"开始使用","en_US":"开始使用"},"order":0,"type":"Getting Started","time":"2019-07-19T00:00:00.000Z"},"fields":{"slug":"/docs/getting-started","path":"/docs/getting-started.en-US.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"常见问题","en_US":"常见问题"},"order":2,"type":"入门","time":null},"fields":{"slug":"/docs/faq-cn","path":"/docs/faq.zh-CN.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"常见问题","en_US":"常见问题"},"order":2,"type":"Getting Started","time":null},"fields":{"slug":"/docs/faq","path":"/docs/faq.en-US.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"贡献指南","en_US":"贡献指南"},"order":3,"type":"入门","time":null},"fields":{"slug":"/docs/contributing-cn","path":"/docs/contributing.zh-CN.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"贡献指南","en_US":"贡献指南"},"order":3,"type":"Getting Started","time":null},"fields":{"slug":"/docs/contributing","path":"/docs/contributing.en-US.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"Commit信息规范","en_US":"Commit信息规范"},"order":1,"type":"规范説明","time":null},"fields":{"slug":"/docs/commit-lint-cn","path":"/docs/commit-lint.zh-CN.md"}}},{"node":{"frontmatter":{"title":{"zh_CN":"Commit信息规范","en_US":"Commit信息规范"},"order":1,"type":"Specification","time":null},"fields":{"slug":"/docs/commit-lint","path":"/docs/commit-lint.en-US.md"}}}]}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"/docs/commit-lint","demo":"/commit-lint/demo/"}}}