github/chapters/05-create-pull-request.md
2015-10-24 11:19:49 +08:00

38 lines
No EOL
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#创建Pull Request
除了创建项目之外我们也可以创建Pull Request来做贡献。
##第一个PR
我的第一个PR是给一个小的Node的CoAP相关的库的Pull Request。原因比较简单是因为它的README.md写错了导致我无法办法进行下一步。
const dgram = require('dgram')
- , coapPacket = require('coap-packet')
+ , package = require('coap-packet')
很简单,却又很有用的步骤,另外一个也是:
```
else
cat << END
$0: error: module ngx_pagespeed requires the pagespeed optimization library.
-Look in obj/autoconf.err for more details.
+Look in objs/autoconf.err for more details.
END
exit 1
fi
```
##CLA
CLA即Contributor License Agreement在为一些大的组织机构提交Pull Request的时候可能需要签署这个协议他们会在你的Pull Request里问你只有你到他们的网站去注册并同意协议才会接受你的PR
以下是我为Google提交的一个PR
![Google CLA](./img/google-cla.png)
以及Eclipse的一个PR
![Eclipse CLA](./img/eclipse-cla.png)
他们都要求我签署CLA