How to start contributing to open source, and lessons learned
Contributing to open source can look confusing at first. Practical steps to find your first issue, work with maintainers, and the lessons from my first contribution.
Read this article in Arabic
If you want to get into open source and are looking for a way to start, this article is for you. At first, contributing to an open-source project can seem hard or confusing, but with a few simple steps and knowing what to look for, you can start contributing to real projects with ease.
In this article I walk you through practical steps for your first contribution, and share the lessons I learned from my own first open-source contribution.
Step one: set criteria for choosing an issue
When you decide to start, it helps to set criteria for choosing the right task. As a new contributor, look for simple issues you can finish quickly. The goal at this stage is to learn the process, not to tackle complex problems that take a lot of time or effort.
It is also good to look for repositories with a healthy number of stars. Projects with many stars are usually more stable and active, which means other developers and the maintainers are paying attention to them.
Step two: find the right issue
Finding an issue is one of the most important parts of contributing. Here are the best ways to find one that suits you:
1. Search on GitHub
GitHub is the main home of open-source projects. Here is how to search for issues:
-
Use the search bar: search GitHub for issues that match your skills with labels such as:
- good first issue
- beginner-friendly
- first-timers only
- help wanted
-
Filter the results: use the sidebar to pick the programming language you want from the Language list, and make sure you choose issues, not code.
-
Use advanced search: GitHub’s advanced search lets you specify labels. For example, put “good first issue” in the Label field to see suitable issues.
2. Filter by project activity
When you have a list of issues, sort it by recently updated. That way you know the project is still active and you will get quick replies from the maintainer if you need help or a review.
3. Use sites made for finding issues
To make the search simpler, some sites collect beginner-friendly issues. One of the best known is:
- goodfirstissues.com: a curated set of issues suited to new contributors. Visit it and look for your first problem to work on.
Step three: working with maintainers
Once you find a suitable issue, the next step is to contact the project’s maintainer and ask for the issue to be assigned to you. Some tips:
-
Explain how you would solve it: when you ask to be assigned, share how you see the problem and how you would fix it. It shows you understand it.
-
Start right away: once the issue is assigned to you, start working on it immediately. Other contributors may be watching it, and if you wait, someone else may solve it first.
Step four: lessons from working on an issue
As you work on and solve the issue, you will learn a lot. Here are some important lessons from my own experience:
1. Read the contribution guide
Before starting on any project, read its contribution guide. It contains the rules and guidelines you must follow so your contribution meets the project’s standards.
2. Handling the pull request
When you submit a pull request, the maintainer may review it and ask for changes. Don’t open a new pull request after making them; update the code in your fork and push a new commit.
3. Using --no-verify to skip unrelated failures
Sometimes a commit fails because of tests that have nothing to do with your issue. In that case you can use --no-verify to skip those checks and continue.
Conclusion: making the most of your first contribution
Open source doesn’t only improve your programming skills. It also opens the door to a large community of developers and gives you the chance to contribute to real projects used by millions of people.
By following these steps and tips, you can start your journey as an open-source contributor with ease and confidence. Choose the right issue, communicate well with maintainers, and enjoy learning at every step.