Skip to content

Upstream Fix

You'll fix a bug or add the small thing you keep wishing a project had, and get your code merged into a project you don't own.

About

The best contributions come from annoyance. Something you use breaks or lacks a thing, and instead of working around it again you fix it upstream. This is your first merged code change in a project you don't own, and it takes longer than you'd think, because you have to find the right spot, match their style, write the test, wait for review, and revise, which usually adds up to weeks. What counts is merged code. What doesn't count is docs, typos, or a PR that's still open.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
Two to six weeks
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Uncommon badges in Open Source & Community to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Pick one bug or small feature in a project you use and open an issue first. Say what you'd change and that you'd like to do it, then wait for a yes or a 'sounds fine'. Skipping this step is how three weeks of work gets closed as not planned. Small means under 100 lines changed. Take a screenshot of the issue and the maintainer's reply. Photo
  2. 2
    Build the project and run its test suite before you touch anything. If tests fail before you start, note which ones so you don't get blamed for them later. Read the CONTRIBUTING file and match their formatter and commit style. Take a screenshot of the passing test run. Photo
  3. 3
    Make the change with a test that fails without it and passes with it. Write the test first if you can. Keep the diff tight, with no reformatting, no renaming neighbors, and no fixing unrelated things you noticed along the way. Film the test failing on the old code and then passing on yours, or take a screenshot of each run. Photo or video
  4. 4
    Open the PR referencing the issue, with a before and after. Put 'Fixes #123' in the description. Show the behavior before and after in two lines of output or two screenshots, and explain any choice a reviewer might question. Take a screenshot of the open PR. Photo
  5. 5
    Handle every review comment within two days and without arguing. Reviewers are usually right about their own codebase. If you disagree, say why once, then do what they ask. Push follow-up commits rather than force-pushing over their review, unless they ask you to. Take a screenshot of a resolved review thread. Photo
  6. 6
    Get it merged and write down what took longest. Was it finding the right place, the review wait, or the test? Write three lines. Then check whether your fix shipped in a release and note the version. Take a screenshot of the merged PR and the release note if it's in one. Photo