Contributing - 508364/NetLeaf GitHub Wiki
欢迎贡献 NetLeaf!
- 使用 4 空格缩进
- 大括号不换行
- 函数名使用小写加下划线
- 宏定义使用全大写加下划线
- 私有函数前缀
nl_
void nl_some_function(void) {
if (condition) {
do_something();
}
}使用 Conventional Commits 格式:
<type>(<scope>): <subject>
<description>
**Type:
- feat: 新功能
- fix: 修复
- docs: 文档
- style: 格式
- refactor: 重构
- test: 测试
- chore: 构建/工具
- Fork 项目
- 创建特性分支 (
git checkout -b feature/amazing-feature) - 提交更改 (
git commit -m 'feat: add some amazing feature') - 推送到分支 (
git push origin feature/amazing-feature) - 开启 Pull Request