协作贡献
规范说明
首先,感谢大家对于 due 的关注和支持。为了加快 due 社区的建设和完善,这里对于如何提交代码作出以下说明:
- 提交的代码须严格遵守的 uber-go-guide 和 due 框架的代码风格和命名规范
- 提交的代码应附带相应的单元测试用例,并保证不低于 80%的覆盖率
- 提交代码时请注明该提交属于功能模块还是 BUG 修复
- 提交的功能模块类型代码如有相关的配置选项请完善 etc 中示例配置
- 提交的功能模块类型代码须提交对应的使用示例到 due-examples 中
贡献代码
准备工作: 如果你没有 github 账号, 您需要申请一个 github 账号, 接下来可以继续下一步.
-
Fork 代码
- 访问 https://github.com/dobyte/due
- 点击 "Fork" 按钮 (位于页面的右上方)
-
Clone 代码
git clone https://github.com/<your-github-account>/due
cd due
git remote add upstream 'https://github.com/dobyte/due'- 创建 feature 分支
git checkout -b feature/my-feature - 同步代码
git fetch upstream
git rebase upstream/main- 提交 commit
git add .
git commit
git push origin my-feature- 提交 PR
访问 https://github.com/dobyte/due,
点击 "Compare" 比较变更并点击 "Pull request" 提交 PR可以使用 github desktop 快速发起 PR
贡献者
due 社区的贡献者: