This week I decided to do something I had been eyeing for a while - contributing to DEV’s Forem repository.
Ultimately the pull request I raised is only one line - but it took a fair while to get there. This post outlines that process.
Initially I decided I was going to set Forem up locally, but after watching things slowly install in my terminal for a couple of minutes I decided I wanted to see if I could try out using the browser IDE, GitPod, instead.
GitPod wasn’t super fast either, but I didn’t have to do any work and it set itself up without any problems. I think this is super cool!
The bug I was originally going to fix needed me to be logged in. (I realised later I couldn’t actually reproduce the bug, so I probably should have checked that first).
Unfortunately, clicking on the Github log-in button didn't work. Ben’s article on GitPod links to the GitPod page in the documentation, and that documentation links back to Ben’s article, so for a little while I was confused if I was missing a step somewhere.
Eventually I figured it out. The problem was two-fold:
Backend Guidesection. I initially didn’t think to look there since I saw this Github step as more of a “getting started” thing than a backend-specific thing.
Unfortunately once I did log in, I found that that there’s currently a bug in running Forem using GitPod. I jumped back into setting it up locally, and a couple of setup steps later, got Forem working 🎉
In my previous attempts at open source, I have found finding an issue to be a bit overwhelming and stressful, and usually where I end up giving up. Usually I end up doing something like:
I might read the description of the issue, and have absolutely no clue where to start. Sometimes there might be someone working on it already, or the issue has been paused due to a blocker or unresolved question. So it can take a while to find a issue that looks "doable" to me. I also don’t have much Ruby on Rails experience, so unfortunately that also reduces the number of issues that I can feel comfortable working on.
At first I filtered by a couple of different labels -
ready for dev,
I interpreted easy issues as things that would be easy to work on - however the definition in the contribution guide is a little bit different:
Issues are usually confined to isolated areas of existing code.
And so effectively you can end up with issues like creating a profile card that shows on hover without any designs, which doesn't feel easy (from my perspective) to do. I think it's maybe a matter of adjusting my expectations of what is considered to be an "easy" issue.
In the end I found a bug with a
good first issue label, and the fix itself was only one line. I initially didn't filter by this label because I didn’t want to take away issues from newer developers - hopefully in the future I can work on some bigger / harder issues!
This whole process was probably 50% setup, 30% trying to find an issue, and then 20% working on it. Now that I’ve cleared this first hurdle, I’m hoping that finding that second issue and raising the second PR will be a little bit easier.