Skip to content

Commit 3908c66

Browse files
author
ying.liu
committed
add write-commit-message and style create-issue
1 parent 7e38730 commit 3908c66

File tree

3 files changed

+87
-30
lines changed

3 files changed

+87
-30
lines changed

dev-process/create-issue.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Create Issue
2+
3+
这是关于 Issue 的管理和描述的建议。
4+
5+
## Issue 管理
6+
7+
1. 测哪部份,给那部分开 issue,认领,分析完,再分发出去。例如测试前端,就给前端提 issue,前端分析是后台的,就给后台再开 issue
8+
2. 谁开的 issue、谁来验证、关闭,其他人不要关
9+
3. issue:包含 future 和 bug 两种类型
10+
4. 日清(每天下班时,保证当前之前的 issue 都已经认领完了,当天验证的 issue 都已经关闭了)+项目的每个成员都要参与(和看板一样,每日关注)
11+
12+
## isuue 编写的格式
13+
14+
每个 Issue 有一个简单概要的标题。描述部分尽量包含下面几个内容
15+
16+
### Issue 描述
17+
18+
- 出现设备
19+
- 出现版本
20+
- 出现浏览器(如果是 web 的话)
21+
- 出现的系统版本
22+
- 描述 Issue 能够影响到的范围
23+
- 出现的场景,以及现象的描述
24+
25+
### Issue 复现方式
26+
27+
- 具体软件硬件条件
28+
- 具体操作方式
29+
30+
### Issue 相关图片(如果有)

dev-process/how-to-write-issue.md

Lines changed: 0 additions & 30 deletions
This file was deleted.

dev-process/write-commit-message.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Write Good Commit Message
2+
3+
写出好的提交信息有助于提高代码可维护性。提交信息包含三个部分:标题(Subject),主体(Body)和相关 Issue。各个部分之间用空行隔开。参考了[write good git commit meesage](https://juffalow.com/other/write-good-git-commit-message).
4+
5+
## 提交信息建议
6+
7+
### 标题
8+
9+
好的标题应该回答这个问题: 如果生效,这个提交(commit)""
10+
在空的地方应该填入动词加名词的一个简单句子。不超过 50 个字母。
11+
12+
好的例子:
13+
14+
- 如果生效,这个提交(commit)“删除多余的文件”
15+
- 如果生效,这个提交(commit)“可以选择多个用户地址”
16+
- 如果生效,这个提交(commit)"fix bug when network is disconnected"
17+
18+
不好的例子
19+
20+
- 如果生效,这个提交(commit)“fix bug"
21+
- 如果生效,这个提交(commit)"user group"
22+
23+
建议标题的尽可能用英文,可以参考如下类别:
24+
25+
- Add = Create a capability e.g. feature, test, dependency.
26+
- Cut = Remove a capability e.g. feature, test, dependency.
27+
- Fix = Fix an issue e.g. bug, typo, accident, misstatement.
28+
- Bump = Increase the version of something e.g. dependency.
29+
- Make = Change the build process, or tooling, or infra.
30+
- Start = Begin doing something; e.g. create a feature flag.
31+
- Stop = End doing something; e.g. remove a feature flag.
32+
- Refactor = A code change that MUST be just a refactoring.
33+
- Reformat = Refactor of formatting, e.g. omit whitespace.
34+
- Optimize = Refactor of performance, e.g. speed up code.
35+
- Document = Refactor of documentation, e.g. help files.
36+
37+
### 主体
38+
39+
描述为什么做这个提交以及代码完成了哪些具体功能和做了哪些改动。主体包含多行, 行长度不要超过 72 个字符。
40+
41+
### Issue
42+
43+
列出相关的 Issue Number。
44+
45+
## 例子
46+
47+
```txt
48+
Fix error when protocol is missing
49+
50+
First, it checks if the protocol is set. If not, it changes the url and
51+
add the basic http protocol on the beginning.
52+
Second, it does a "preflight" request and follows all redirects and
53+
returns the last URL. The process then continues with this URL.
54+
55+
Resolves: #56, #78
56+
See also: #12, #34
57+
```

0 commit comments

Comments
 (0)