Git提交信息规范化

MuYusen 于 2020-01-05 发布 本文总阅读量

Git提交信息规范化

目的

Git版本规范

分支

Tag

采用三段式,v里程碑_code_序号,如v1.2.1

changelog

版本正式发布后,需要生产changelog文档,便于后续问题追溯。

Git提交信息

git 的 commitmessage信息格式采用目前主流的Angular规范,这是目前使用最广的写法,比较合理和系统化,并且有配套的工具。

commit message格式说明

Commit message一般包括三部分:Header、Body和Footer。

type(scope):subject

Body

实例 一

 fix(ivy): reuse compilation scope for incremental template changes. 

Previously if only a component template changed then we would know to
rebuild its component source file. But the compilation was incorrect if the
component was part of an NgModule, since we were not capturing the
compilation scope information that had a been acquired from the NgModule
and was not being regenerated since we were not needing to recompile
the NgModule.

Now we register compilation scope information for each component, via the
`ComponentScopeRegistry` interface, so that it is available for incremental
compilation.

The `ComponentDecoratorHandler` now reads the compilation scope from a
`ComponentScopeReader` interface which is implemented as a compound
reader composed of the original `LocalModuleScopeRegistry` and the
`IncrementalState`.

Fixes #31654

PR Close #31932

实例 二

 refactor(core): move renderer2 migration lint rule into google3 folder (#31817)

Moves the `renderer_to_renderer2` migration google3 tslint rule
into the new `google3` directory. This is done for consistency
as we recently moved all google3 migration rules into a new
`google3` folder (see: f69e4e6).

PR Close #31817

实例三

docs(router): rename incorrect class names (#31815)

PR Close #31815