{"id":294887,"date":"2019-09-09T07:10:14","date_gmt":"2019-09-09T14:10:14","guid":{"rendered":"https:\/\/css-tricks.com\/?p=294887"},"modified":"2019-09-09T07:10:15","modified_gmt":"2019-09-09T14:10:15","slug":"how-to-contribute-to-an-open-source-project","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/how-to-contribute-to-an-open-source-project\/","title":{"rendered":"How to Contribute to an Open Source Project"},"content":{"rendered":"

The following is going to get slightly opinionated and aims to guide someone on their journey into open source. As a prerequisite, you should have basic familiarity with the command line and Git. If you know the concepts and want to dive right into the step by step how-to guide, check out this part of the article<\/a>.<\/p>\n

Truly, there is no one way to contribute to an open source project, and to be involved often means more than code slinging. In this article, though, we\u2019re going to focus on the nitty-gritty of contributing a pull request (PR<\/abbr>) to someone else\u2019s project on GitHub. <\/p>\n

<\/p>\n

Let’s set the stage…<\/h3>\n

You come across someone’s project on Github and you love it! You may even decide to use it in your own project. But there\u2019s one small thing you notice… it could be a bug. It could be an enhancement to what\u2019s already there. Maybe you looked through the code and found a nice, optimized way of writing things that\u2019s a little more legible, even as small as an extra indentation in the code.<\/p>\n

Here are some initial suggestions and instructions on where to go from here.<\/p>\n

Look for a CONTRIBUTING.md<\/code> document or Contributing Guide in the documentation<\/h3>\n

Many open source projects know that other people might want to contribute. If they find themselves answering the same question again and again, this document intends to make it easier to get everyone on the same page.<\/p>\n

Some things you might find in a Contributing guide:<\/p>\n