Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用emoji表情提交代码指南 #71

Open
muwenzi opened this issue Dec 20, 2016 · 5 comments

Comments

Projects
None yet
3 participants
@muwenzi
Copy link
Owner

commented Dec 20, 2016

Git collaboration workflow

Git常用操作小结

经常提交,减少冲突

提交信息类型说明:

开发

⭐️ new feature(xxxfile): add some files 增加新功能比如新增某个模块 :star:

🎨 UI update(xxxfile): 界面样式相关更新 :art:

🔥 API change(xxxfile): change some API 重大更新提示,比如修改字段等 :fire:

👕 refactor(xxxfile): 包括文件代码结构以及代码风格的重构 :shirt:

(optional) 🔨 refactor(xxxfile): 包括文件代码结构以及代码风格的重构 :hammer:

🚀 improvement(xxxfile): 重大改进,提升性能如修改某个方法或算法 :rocket:

Bug

🐛 bugfix(xxxfile): fix some bug :bug:

(optional) 🐞 bugfix(xxxfile): fix some bug :beetle:

🚑 hotfix(xxxfile): fix some online bug :ambulance:

其他

🔧 config(xxxfile): 修改配置文件 :wrench:

📝 docs(xxxfile): 添加文档说明 :memo:

test(xxxfile): 添加测试用例 :white_check_mark:

🔒 security(xxxfile): 提高代码的安全性 :lock:

版本

🎉 release(xxx): v4.7.0 :tada:

📦 build(xxx): for v4.7.0 :package:

dependency(xxx): add eslint :heavy_plus_sign:

dependency(xxx): remove dependency :heavy_minus_sign:

⬆️ dependency(xxx): upgrade react to 15.1.0 升级依赖库:arrow_up:

⬇️ dependency(xxx): degrade react to 15.1.0 降级依赖库:arrow_down:

后记

emoji 表情除了可以用在git commit message,还可以用在写 Release Note,可以参考:ant-design releases

参考资料

@linesh-simplicity

This comment has been minimized.

Copy link

commented Jun 9, 2018

可以可以。其实我也一直想有一个 emoji 在每个提交前面,不过不知道怎么在团队里面推广起来,怎么让大家每次都能简单地选择正确的 emoji 到正确的提交类型下(比如 feature/refactor 之类的)呢…不用理我,其实我也没试过。

上次刚进项目时用 emoji 提了几十个 commit,TL 恐吓我说有的 CI 可能会因此挂掉我就默默收手了😂

@Chyroc

This comment has been minimized.

Copy link

commented Jun 10, 2018

:white_check_mark:

@muwenzi

This comment has been minimized.

Copy link
Owner Author

commented Jun 10, 2018

@linesh-simplicity emoji 在命令行的支持不太好,这种提交方式实际操作中很难推广,推荐用这种方式:优雅的提交你的 Git Commit Message,也是目前前端项目比较流行的,最后如果是需要发布到npm的话也可以自动生成changelog,也可以自己定制化提交类型。

@muwenzi

This comment has been minimized.

Copy link
Owner Author

commented Jun 10, 2018

@Chyroc thank you!

@Chyroc

This comment has been minimized.

Copy link

commented Jun 14, 2018

:heavy_minus_sign: remove dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.