Skip to content

Commit ee51156

Browse files
authored
Create contribution.md
1 parent 23a8afe commit ee51156

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contribution.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 代码贡献指南
22
1. 非常欢迎和感谢对本项目发起Pull Request的同学,本项目代码风格为使用2个空格代表一个Tab,因此在提交代码时请注意一下,否则很容易在IDE格式化代码后与原代码产生大量diff,这样会给其他人阅读代码带来极大的困扰。为了便于设置,本项目引入editorconfig插件,请使用eclipse的同学在贡献代码前安装相关插件,IntelliJ IDEA新版本自带支持,如果没有可自行安装插件。
33
1. 本项目可以采用两种方式接受代码贡献:
4-
* 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程,因此在发起Pull Request的时候请选择develop分支,详细步骤参考后文,推荐使用此种方式贡献代码。
4+
   * 第一种就是基于[Git Flow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)开发流程,因此在发起Pull Request的时候请选择dev分支,详细步骤参考后文,推荐使用此种方式贡献代码。
55
* (***暂停此种方式,请使用第一种***)另外一种贡献代码的方式就是加入SDK Developers开发组,前提是对自己的代码足够自信就可以申请加入,加入之后可以随时直接提交代码,但要注意对所做的修改或新增的代码进行单元测试,保证提交代码没有明显问题。
66
1. 另外,提交代码前请检查代码是否已经格式化,并且保证新增加或者修改的方法都有完整的参数说明,而public方法必须拥有相应的单元测试并通过测试。
77

@@ -28,7 +28,7 @@ $ git push
2828
```bash
2929
$ git remote add upstream https://github.com/wechat-group/weixin-java-tools
3030
$ git fetch upstream
31-
$ git checkout develop
32-
$ git rebase upstream/develop
33-
$ git push -f origin develop
31+
$ git checkout dev
32+
$ git rebase upstream/dev
33+
$ git push -f origin dev
3434
```

0 commit comments

Comments
 (0)