Hello everyone,
I’m here because I’d like to start submitting pull requests to open-source projects. I’ve been trying to look for some, but it’s very difficult to find a suitable first issue. Do you have any advice you could give me to help me get started with this?
Thank you very much for any advice you can give me.
Open Source projects often tag issues with tags along the lines of "good first issue". This means that the issue is easy enough for newcomers to get onboarded.
Could you explain why?
A common reason I have seen discussed is to improve one's portfolio. I must say, myself, that I have spoken to multiple corporations which have software that rests on the correctness of code that I have written, not just my contributions to std but in other libraries as well. While it definitely has started a conversation now and then that wouldn't otherwise have occurred, it has not been some golden ticket to getting myself hired.
In the past year, every FOSS maintainer has struggled with a deluge of low-quality PRs from people driving LLMs without looking or thinking about what they are doing. Out of habit, politeness, or some lingering faith in humanity, some of these PRs are merged anyways. But it has real costs on our time and energy to interact with this.
If, knowing this, you still want to contribute to some software, and you think you will be better than those reckless drivers, then pick something you personally have strong feelings about. That is the only way to assure you are able to invest the human element of actual attention and care. Think about how your contributions may be received before you send them. This kind of thought, true thought, with real emotion and reasoning, is the only thing that you, a human, are guaranteed to be able to contribute.
Assuming that you're looking for a project that you will take seriously (as @workingjubilee describes - this is an addendum to their advice, not a replacement), there's a "CFP - Projects" section in This Week In Rust where open-source projects who want help can advertise.
You can check the requests for help from those projects, read the attached issues to confirm that it's not been claimed by someone else and is something you want to work on (don't claim an issue just for the sake of doing "open source" work - claim one that you find interesting), and then talk to the project leads via the issue to claim the issue and get help on it.
The "good first issue" tags help, but the strongest filter is picking a project you actually use. You already know the rough edges, and you'll care enough to see the PR through review instead of abandoning it after one comment.
Workingjubilee's point about low-quality PRs is worth taking seriously. Read the contribution guide, run the tests, and keep the change small. A tidy one-line fix that gets merged beats a sprawling PR that burns a maintainer's afternoon.
It is especially good to offer a small fix that is still worth opening the PR... I generally don't care about you fixing typos in my comments, for instance, but I do care about you fixing typos in my user-facing docs, so the bar is very low here... and that is also short in the PR description.
This is one of the things most problematic about LLM-created PRs, to me. I have arrived at the conclusion, and I know many others have also, that generating PR descriptions using LLMs is worse than using them to generate code. The code, at least, is held to a minimum standard of "making sense" by a compiler. The PR description, however, can babble on forever without actually saying anything, which LLMs love to do over the tiniest changes. So it's very important to just write it yourself, as even a human-edited LLM description is just too long and meandering.
... I have written PRs that required a treatise for a few lines of code, but it's rarely a good place to start.
I find this very strange. What is your motivation for that?
I can understand using some open-source code and finding a problem with it or an idea for a new feature you would like to use.
But why the desire to work on some random project you have no particular interest in?
My aim is to be able to contribute to the Linux kernel, so I need to gain some experience with open-source projects,
Sorry to be that harsh and direct: In my opinion, this is a complete wrong motivation.
Contributing to open source projects happens broadly by two different ways:
a.) You are an active user of some open source product, encounter a problem, are willing to dig into the source, identify the root cause, fix the problem, and then create an PR and eventually your request is accepted. But be prepared that your request gets rejected.
b.) For some reasons you are an expert in some specific field, are willing to invest years into a topic or are be paid in this topic, and you're running your own open-source project or it happens that your work ends on a regular basis in some foreign open source project.
As you see, in both cases, the "contributing" is only the last, smallest part of the whole thing.
The idea, randomly walking on github and peeking for some issues here and there and creating pull requests, is wrong headed.
Why?
I myself have contributed to the Linux kernel by refactoring an AMD HID driver.
It has since been removed due to its obsolescence.
So there are currently 0 LOC written by me in the Linux kernel, even though I contributed to it.
(There's still the amd-sfh-hid driver, to which I contributed by providing quirks and testing, but no code of it was written by me).
If you want to be able to contribute to the Linux kernel, then go directly to contributing to the kernel; each open source project works slightly differently, and the Linux kernel has its own contribution guide which doesn't involve pull requests at all.
The general outline remains the same, however; find something that needs improvement, work on it, and demonstrate to the project that you're helping them make things better. Expect a lot of push-back on any change you make, and don't take it personally - in the end, upstream projects know that you can disappear at any moment for any reason, and they're trying to make sure that they can keep maintaining it forever even if you don't stick around.