Pull requests (PRs) is my favorite thing about GitHub.1 I have created and merged numerous PRs over the years. If you are new to PRs and contributing to other people’s packages, I strongly recommend you to read the following materials:
- The presentation “Collaborative Coding” by Charlotte Wickham
- The blog post “Contributing Code to the Tidyverse” by Jim Hester
Jim’s post is certainly not limited to contributing to Tidyverse, but contains rules that can be generally applied to most other open-source projects. I don’t have much to add to what he has said, but only one little thing: how to jump-start a pull request, especially for a project that has a relatively large codebase or contributors who are not familiar with your codebase.
Usually I encourage users to submit PRs and try my best to review and improve them if possible. To get them started when I’m busy, I often point out the critical lines of code where they can start hacking. Although it is not my most representative example, yihui/knitr#1425 is the most recent one, in which I asked @yutannihilation to try to fix the issue by himself, and later he came back with hadley/evaluate#81, which I haven’t had a chance to review yet.
A more recent and better example is gohugoio/hugo#3825, which is my PR to Hugo. To be honest, I know nothing about the Go language, but when I reported the issue gohugoio/hugo#3824, the current maintainer of Hugo @bep told me the source file I should modify in the Hugo codebase. Fortunately, I know some JavaScript, so I came up with a PR about 20 minutes later, which was merged 3 hours later. This was my third PR to Hugo.
So you do not really always have to understand a language or codebase to make a contribution. Some problems are small enough to be fixed with only a couple of lines of code, and you can probably do it by yourself before the busy core developers have the bandwidth to process your issues.
Again, please read Charlotte’s presentation and Jim’s post before making your first PR.
-
Well, I really do not appreciate the name “pull request”. It is highly confusing from the perspective of contributors. GitLab has done it correctly: merge request! ↩︎
Donate
As a freelancer (currently working as a contractor) and a dad of three kids, I truly appreciate your donation to support my writing and open-source software development! Your contribution helps me cope with financial uncertainty better, so I can spend more time on producing high-quality content and software. You can make a donation through methods below.
-
Venmo:
@yihui_xie, or Zelle:xie@yihui.name -
Paypal
-
If you have a Paypal account, you can follow the link https://paypal.me/YihuiXie or find me on Paypal via my email
xie@yihui.name. Please choose the payment type as “Family and Friends” (instead of “Goods and Services”) to avoid extra fees. -
If you don’t have Paypal, you may donate through this link via your debit or credit card. Paypal will charge a fee on my side.
-
-
Other ways:
WeChat Pay (微信支付:谢益辉) Alipay (支付宝:谢益辉) 

When sending money, please be sure to add a note “gift” or “donation” if possible, so it won’t be treated as my taxable income but a genuine gift. Needless to say, donation is completely voluntary and I appreciate any amount you can give.
Please feel free to email me if you prefer a different way to give. Thank you very much!
I’ll give back a significant portion of the donations to the open-source community and charities. For the record, I received about $30,000 in total (before tax) in 2024-25, and gave back about $15,000 (after tax).