用Github管理debug进度

Github上有个按钮 Issues 可以用来管理和跟进project存在的问题:
Issues

点进去后:
这里写图片描述

存在的问题被清晰地归类存档,如 3 Open, 6 Closed。还有标签 bug, enhancement。

让我们进入一个已经closed的issue:
这里写图片描述

就会见到这个issue的题目和具体描述,以及标签,比如这个是个bug。
还有Assignee(受托者),这个issue的受托者是ruigulala。

这里重点讲述一下reference,就是图中的 fix #7
对于一个问题,我们会用代码来解决它,这时就可以通过reference功能来关联issue和committed code。
比如,为解决这个issue(#7),ruigulala会修改代码,并commit:
这里写图片描述

By prefacing your commits with “Fixes”, “Fixed”, “Fix”, “Closes”, “Closed”, or “Close” when the commit is merged into master, it will also automatically close the issue.
References make it possible to deeply connect the work being done with the bug being tracked, and are a great way to add visibility into the history of your project.

Gihub文档里的这段话意思是,在你把代码merge到master分支时,加上这些前缀:Include the issue number inside of the commit message. 同时附上问题编号。这样在Issue就自动reference到了这些code了。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值