You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2018/11/09 07:28:51 UTC

[incubator-doris-website] branch master updated: add how-to-write commit message

This is an automated email from the ASF dual-hosted git repository.

lide pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d68457  add how-to-write commit message
0d68457 is described below

commit 0d6845777844f55e4c24ae305b13fd117f7d05e4
Author: lide <li...@baidu.com>
AuthorDate: Fri Nov 9 15:28:34 2018 +0800

    add how-to-write commit message
---
 pages/policy/pull-request.md | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/pages/policy/pull-request.md b/pages/policy/pull-request.md
index 41e1013..e2d5818 100644
--- a/pages/policy/pull-request.md
+++ b/pages/policy/pull-request.md
@@ -74,9 +74,19 @@ status=published
 
 ![create PR](../images/create-pr.png)
 
-#### (3)填写 comment
+#### (3)填写 Commit Message
 这里请填写 comment 的总结和详细内容,然后点击 `Create pull request` 进行创建。
 
+关于如何写 Commit Message,下面列出了一些 Tips:
+
+* 请用英文 动词 + 宾语 的形式,动词不用过去式,语句用祈使句;
+* 消息主题(Subject)和具体内容(Body)都要写,它们之间要有空行分割(GitHub PR界面上分别填写即可)。
+* 消息主题长度不要超过**50**个字符;
+* 消息内容每行不要超过 72 个字符,超过的需要手动换行;
+* 消息内容用于解释做了什么、为什么做以及怎么做的。
+
+更详细的内容请参考 <https://chris.beams.io/posts/git-commit>
+
 ![create PR](../images/create-pr2.png)
 
 #### (4)完成创建


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org